WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct ($options=array(), $name= '', $id= '') | |
Construct. More... | |
draw () | |
Draw. More... | |
options ($options) | |
Build the options. More... | |
Public Member Functions inherited from WPDKHTMLTag | |
__construct ($tag_name) | |
addData ($name, $value) | |
Add data attribute. More... | |
addClass ($class) | |
Add CSS Class. More... | |
display () | |
Display. More... | |
html () | |
Return the HTML markup for this tag. More... | |
draw () | |
Draw. More... | |
setPropertiesByArray ($properties=array()) | |
Set properties by array. More... | |
Public Member Functions inherited from WPDKObject | |
__className () | |
Returns the class object. More... | |
__parentClass () | |
Returns the class object for the receiver’s superclass. More... | |
__isClass ($class) | |
Brief. More... | |
__isSubclassOfClass ($class) | |
Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More... | |
Static Public Member Functions | |
static | selected ($haystack, $current) |
WordPress selected() replacement. More... | |
Static Public Member Functions inherited from WPDKHTMLTag | |
static | sanitizeAttributes ($attributes) |
Sanitize attributes. More... | |
static | sanitizeData ($attributes) |
Sanitize data attributes. More... | |
static | sanitizeClasses ($classes) |
Sanitize CSS Classes list. More... | |
static | sanitizeStyles ($styles) |
Sanitize CSS Classes list. More... | |
static | attributeInline ($attributes, $additional_attributes=false) |
Inline Data attribute. More... | |
static | dataInline ($data, $additional_data=false) |
Inline Data attribute. More... | |
static | classInline ($classes, $additional_classes=false) |
Inline CSS class. More... | |
static | styleInline ($styles, $additional_styles=false) |
Inline CSS class. More... | |
static | mergeClasses ($class, $class2=null, $_=null) |
Merge. More... | |
Static Public Member Functions inherited from WPDKObject | |
static | __delta ($last_version, $old_version) |
Object delta compare for combine. More... | |
static | delta ($last_version, $old_version) |
static | __dump ($var, $monitor=false) |
Dump a variable. More... | |
Data Fields | |
$autofocus | |
$disabled | |
$form | |
$multiple | |
$name | |
$size | |
$value | |
$_first_item = '' | |
First item disabled. More... | |
Data Fields inherited from WPDKHTMLTag | |
$__version = '1.1.1' | |
Version. More... | |
$accesskey = '' | |
$class = array() | |
$content = '' | |
Content. More... | |
$contenteditable | |
$contextmenu | |
$data = array() | |
Data attribute. More... | |
$dir | |
$draggable | |
$dropzone | |
$hidden | |
$id | |
$lang | |
$onclick | |
$spellcheck | |
$style | |
$tabindex | |
$tagName | |
Tag name. More... | |
$title | |
Data Fields inherited from WPDKObject | |
$__version = '1.0.0' | |
The version number assigned to the class. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from WPDKHTMLTag | |
beforeContent () | |
Before content. More... | |
afterContent () | |
After content. More... | |
Protected Attributes inherited from WPDKHTMLTag | |
$attributes = array() | |
Attributes list. More... | |
$close | |
Close tag. More... | |
$open | |
Open tag. More... | |
Wrapper model for tag SELECT. Remeber to add this tag in WPDKHTMLTagName
Definition at line 1789 of file wpdk-html-tag.php.
__construct | ( | $options = array() , |
|
$name = '' , |
|||
$id = '' |
|||
) |
Construct.
Create an instance of WPDKHTMLTagSelect class
array | callback | $options | A key value pairs array with value/text or a callback function |
string | $name | Attribute name |
string | $id | Attribute id |
Definition at line 1825 of file wpdk-html-tag.php.
draw | ( | ) |
Draw.
Override parent method for draw the options with selectd values.
Definition at line 1874 of file wpdk-html-tag.php.
options | ( | $options | ) |
Build the options.
Return the HTML markup for the option and optgroup tag.
array | $options | A key value pairs array. If the value is an array then an optio group is created. |
Definition at line 1896 of file wpdk-html-tag.php.
|
static |
WordPress selected() replacement.
Return HTML selected
attribute or empty string. Commodity to extends selected() WordPress function with array check.
string | array | $haystack | Single value or array |
mixed | $current | (true) The other value to compare if not just true <select name="test"> <option <?php echo WPDKHTMLTagSelect::selected( 'value', $value ) ?>>Value</option> ... </select> <select name="test"> <option <?php echo WPDKHTMLTagSelect::selected( array( '1', '14', '16'), $value ) ?>>Value</option> ... </select> |
Definition at line 1956 of file wpdk-html-tag.php.
string $_first_item = '' |
First item disabled.
Used to display a special first item (disable and display none and non selectable) to use instead label
Definition at line 1809 of file wpdk-html-tag.php.
$autofocus |
Definition at line 1793 of file wpdk-html-tag.php.
$disabled |
Definition at line 1794 of file wpdk-html-tag.php.
$form |
Definition at line 1795 of file wpdk-html-tag.php.
$multiple |
Definition at line 1796 of file wpdk-html-tag.php.
$name |
Definition at line 1797 of file wpdk-html-tag.php.
$size |
Definition at line 1798 of file wpdk-html-tag.php.
$value |
Definition at line 1799 of file wpdk-html-tag.php.