WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct ($item_control) | |
Construct. More... | |
display () | |
Display. More... | |
draw () | |
Draw. More... | |
html () | |
Get HTML. More... | |
Data Fields | |
const | DEFAULT_SIZE_ATTRIBUTE = 30 |
Attribute size. More... | |
const | APPEND_SELECT_LIST_REMOVE = 'append_select_list_remove' |
const | APPEND_SELECT_LIST_ADD = 'append_select_list_add' |
Protected Member Functions | |
attrs () | |
Attributes. More... | |
data () | |
Data attributes. More... | |
classes () | |
CSS Class. More... | |
contentWithKey ($key) | |
Get content form array. More... | |
inputType ($type=WPDKHTMLTagInputType::TEXT, $class= '') | |
Common input control. More... | |
label () | |
Standard label for controls. More... | |
guide () | |
Guide. More... | |
Protected Attributes | |
$attrs = array() | |
Attributes. More... | |
$class = array() | |
CSS classes. More... | |
$data = array() | |
Data attributes. More... | |
$id = '' | |
Attribute ID. More... | |
$item = '' | |
WPDK UI Control array descriptor. More... | |
$name = '' | |
Name attribute. More... | |
$style = '' | |
CSS inline style. More... | |
Definition at line 71 of file wpdk-ui-controls.php.
__construct | ( | $item_control | ) |
Construct.
Create an instance of WPDKUIControl class
array | $item_control | Control array |
Definition at line 169 of file wpdk-ui-controls.php.
|
protected |
Attributes.
Return a string with complete list of generic attributes as title
, id
, etc...
Definition at line 207 of file wpdk-ui-controls.php.
|
protected |
CSS Class.
Return a string with complete list of CSS class
Definition at line 255 of file wpdk-ui-controls.php.
|
protected |
Get content form array.
Return the content by specific key. If the content is an instance of class WPDKUIControl then get the HTML. If the content is an array (Controls Layout array) porcess it as sub-control.
string | $key | String key in array |
Definition at line 317 of file wpdk-ui-controls.php.
|
protected |
Data attributes.
Return a string with complete list of data attributes as data-name = "value"
. For example:
<div data-my_attribute="my_value"></div>
The data asttributes are readable and writeable from jQuery with:
$( 'div' ).data( 'my_attribute' );
Definition at line 239 of file wpdk-ui-controls.php.
display | ( | ) |
draw | ( | ) |
|
protected |
Guide.
Return the HTML markup for the guide engine
Definition at line 554 of file wpdk-ui-controls.php.
html | ( | ) |
Get HTML.
Return the HTML markup for control
Definition at line 291 of file wpdk-ui-controls.php.
|
protected |
Common input control.
This is a utility method to display a common input type
string | WPDKHTMLTagInputType | $type | Optional. Type of input |
string | $class | Optional. CSS additional class |
Definition at line 387 of file wpdk-ui-controls.php.
|
protected |
Standard label for controls.
Return an instance of WPDKHTMLTagLabel class or null if no label provided.
Definition at line 447 of file wpdk-ui-controls.php.
|
protected |
|
protected |
CSS classes.
A string or an array with CSS classes
Definition at line 111 of file wpdk-ui-controls.php.
|
protected |
Data attributes.
A string or an array with list of data attributes
Definition at line 119 of file wpdk-ui-controls.php.
|
protected |
|
protected |
WPDK UI Control array descriptor.
A key value pairs array with the WPDK ui control description
Definition at line 135 of file wpdk-ui-controls.php.
|
protected |
|
protected |
CSS inline style.
A string with inlibe CSS styles
Definition at line 151 of file wpdk-ui-controls.php.
const APPEND_SELECT_LIST_ADD = 'append_select_list_add' |
Useful constant to append a [Add] button on select list control
Definition at line 93 of file wpdk-ui-controls.php.
const APPEND_SELECT_LIST_REMOVE = 'append_select_list_remove' |
Useful constant to append a [Remove] button on select list control
Definition at line 86 of file wpdk-ui-controls.php.
const DEFAULT_SIZE_ATTRIBUTE = 30 |
Attribute size.
Default attribute size for input tag
Definition at line 79 of file wpdk-ui-controls.php.