class UI extends JsonConfig (View source)

UI Object

The parent object for all UI config objects. Adds JsonSerializable and methods for setting options.

Methods

__construct( Options $options, array $config = array())

Creates a new JsonConfig object

from  JsonConfig
mixed
__get( string $option)

Get the value of a set option via magic method.

from  JsonConfig
getOptions()

Gets the Options object for the JsonConfig

from  JsonConfig
setOption( string $option, mixed $value)

Shortcut method to set the value of an option and return $this.

from  JsonConfig
setOptions( array $config)

Parses the config array by passing the values through each method to check validity against if the option exists.

from  JsonConfig
array
jsonSerialize()

Custom serialization of the JsonConfig object.

from  JsonConfig
string
getType()

Returns the UI object type

UI
label( string $label)

The label to display next to the category picker.

UI
labelSeparator( string $labelSeparator)

A separator string appended to the label, to visually separate the label from the control.

UI
labelStacking( string $labelStacking)

Whether the label should display above or beside the control.

UI
cssClass( string $cssClass)

The CSS class to assign to the control, for custom styling.

Details

in JsonConfig at line 40
__construct( Options $options, array $config = array())

Creates a new JsonConfig object

Parameters

Options $options
array $config

Exceptions

InvalidConfigProperty
InvalidConfigValue

in JsonConfig at line 64
mixed __get( string $option)

Get the value of a set option via magic method.

Parameters

string $option Name of option.

Return Value

mixed

Exceptions

InvalidConfigProperty

in JsonConfig at line 75
Options getOptions()

Gets the Options object for the JsonConfig

Return Value

Options

in JsonConfig at line 90
JsonConfig setOption( string $option, mixed $value)

Shortcut method to set the value of an option and return $this.

In order to maintain backwards compatibility, ConfigObjects will be unwrapped.

Parameters

string $option Option to set.
mixed $value Value of the option.

Return Value

JsonConfig

in JsonConfig at line 106
setOptions( array $config)

Parses the config array by passing the values through each method to check validity against if the option exists.

Parameters

array $config

Exceptions

InvalidConfigValue
InvalidConfigProperty

in JsonConfig at line 275
array jsonSerialize()

Custom serialization of the JsonConfig object.

Return Value

array

at line 41
string getType()

Returns the UI object type

Return Value

string

at line 55
UI label( string $label)

The label to display next to the category picker.

If unspecified, the label of the column the control operates on will be used.

Parameters

string $label Label to display

Return Value

UI

Exceptions

InvalidConfigValue

at line 67
UI labelSeparator( string $labelSeparator)

A separator string appended to the label, to visually separate the label from the control.

Parameters

string $labelSeparator

Return Value

UI

Exceptions

InvalidConfigValue

at line 83
UI labelStacking( string $labelStacking)

Whether the label should display above or beside the control.

Accepted values: - 'vertical' - 'horizontal'

Parameters

string $labelStacking

Return Value

UI

Exceptions

InvalidConfigValue

at line 100
UI cssClass( string $cssClass)

The CSS class to assign to the control, for custom styling.

Parameters

string $cssClass

Return Value

UI

Exceptions

InvalidConfigValue