Метод | Описание | |
---|---|---|
__construct ( $text = '', $value = '', $enabled = true, $selected = false ) | Constructor. | |
getAttribute ( $name ) : string | ||
getAttributes ( ) : |
||
getEnabled ( ) : boolean | ||
getHasAttributes ( ) : boolean | ||
getSelected ( ) : boolean | ||
getText ( ) : string | ||
getValue ( ) : string | ||
hasAttribute ( $name ) : boolean | ||
removeAttribute ( $name ) : string | Removes the named attribute. | |
setAttribute ( $name, $value ) | ||
setEnabled ( $value ) | ||
setSelected ( $value ) | ||
setText ( $value ) | ||
setValue ( $value ) |
Метод | Описание | |
---|---|---|
_getZappableSleepProps ( &$exprops ) | Returns an array with the names of all variables of this object that should NOT be serialized because their value is the default one or useless to be cached for the next page loads. |
public __construct ( $text = '', $value = '', $enabled = true, $selected = false ) |
protected _getZappableSleepProps ( &$exprops ) |
public getAttribute ( $name ) : string | ||
Результат | string | the named attribute value, null if attribute does not exist |
public getAttributes ( ) : |
||
Результат | custom attributes |
public getEnabled ( ) : boolean | ||
Результат | boolean | whether the item is enabled |
public getHasAttributes ( ) : boolean | ||
Результат | boolean | whether the item has any custom attribute |
public getSelected ( ) : boolean | ||
Результат | boolean | whether the item is selected |
public hasAttribute ( $name ) : boolean | ||
Результат | boolean | whether the named attribute exists |
public removeAttribute ( $name ) : string | ||
Результат | string | attribute value removed, empty string if attribute does not exist. |