Methods summary
public
array
|
#
prepareDynamicValue( string $value )
Prepare the dynamic default value
Prepare the dynamic default value
Parameters
Returns
array
Overrides
|
protected
boolean
|
#
isValidValue( array $value )
Set the value
Parameters
Returns
boolean
Overrides
|
public
boolean
|
#
hasValue( mixed $value )
Does this element have the given value?
Does this element have the given value?
Parameters
Returns
boolean
Overrides
|
public
array
|
#
getEmptyValue( )
Get the empty value for this element
Get the empty value for this element
Returns
array
Overrides
|
public
array
|
#
getValue( )
Get the filtered value
Returns
array
Overrides
|
public
string
|
#
getValueHtml( )
Get the value formatted for HTML
Get the value formatted for HTML
Returns
string
Overrides
|
public
string
|
#
getValueText( string $separator = ', ' )
Get the value formatted in plain text
Get the value formatted in plain text
Parameters
Returns
string
Overrides
|
protected
string
|
|
protected
array
|
#
convertValueFromStorage( string $value )
Convert given the value from storage format
Convert given the value from storage format
Parameters
Returns
array
Overrides
|
public
boolean
|
#
isEmpty( )
If the value is not an array or is an empty array it's empty
If the value is not an array or is an empty array it's empty
Returns
boolean
Overrides
|
protected
array
|
#
getFieldAttributes( array $context = array() )
Get the HTML attributes for the field
Get the HTML attributes for the field
Parameters
Returns
array
Overrides
|
protected
integer
|
#
getOptionsCount( )
Get the total number of options, including optgroup options
Get the total number of options, including optgroup options
Returns
integer
|
protected
array
|
#
getFieldClasses( array $context = array() )
Get the classes for the field
Get the classes for the field
Parameters
Returns
array
Overrides
|
protected
string
|
#
getFieldHtml( array $context = array() )
Get the HTML for the field
Get the HTML for the field
Parameters
Returns
string
Overrides
|
protected static
array
|
#
getDefaultOptions( )
Get the default options for this element
Get the default options for this element
Returns
array
Overrides
|
public static
array
|
#
getDefaultConfig( string|null $key = null )
Get the default element configuration
Get the default element configuration
Parameters
- $key
- Get the config by key, if omitted the full config is returned
Returns
array
Overrides
|