PHP Класс NoUISliderCustomFieldType

С версии: 3.8.6
Наследование: extends AdminPageFramework_FieldType_text
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$aFieldTypeSlugs Defines the field type slugs used for this field type.

Защищенные свойства (Protected)

Свойство Тип Описание
$aDefaultKeys Defines the default key-values of this field type settings.

Открытые методы

Метод Описание
getField ( $aField ) : string Returns the output of the field type.
setUp ( ) Loads the field type necessary components.

Защищенные методы

Метод Описание
construct ( )
getEnqueuingScripts ( ) : array Returns an array holding the urls of enqueuing scripts.
getEnqueuingStyles ( ) : array
getScripts ( ) Returns the field type specific JavaScript script.
getStyles ( ) Returns the field type specific CSS rules.

Приватные методы

Метод Описание
_getAttributesFormatted ( $aField ) : array Formats the attributes argument.
_getConnectArgumentFormatted ( $aOptions, $aField ) : array | null Formats the connect argument to avoid errors on the JS script side.
_getHandlePositions ( $aOptions, $aField ) : array Retrieves the value of the start argument which determines the position of the slider handle.
_getLabelsFormatted ( $aLabels, $aField ) : array | string Formats the label argument.
_getNoUISliderOptionsFormatted ( $aOptions, $aField ) : array
_getSliderElementClassSelectors ( $aField ) : string

Описание методов

construct() защищенный Метод

protected construct ( )

getEnqueuingScripts() защищенный Метод

Returns an array holding the urls of enqueuing scripts.
protected getEnqueuingScripts ( ) : array
Результат array

getEnqueuingStyles() защищенный Метод

protected getEnqueuingStyles ( ) : array
Результат array

getField() публичный Метод

Returns the output of the field type.
public getField ( $aField ) : string
Результат string

getScripts() защищенный Метод

Returns the field type specific JavaScript script.
protected getScripts ( )

getStyles() защищенный Метод

Returns the field type specific CSS rules.
protected getStyles ( )

setUp() публичный Метод

Loads the field type necessary components.
public setUp ( )

Описание свойств

$aDefaultKeys защищенное свойство

Defines the default key-values of this field type settings.
protected $aDefaultKeys

$aFieldTypeSlugs публичное свойство

Defines the field type slugs used for this field type.
public $aFieldTypeSlugs