PHP Class ToggleCustomFieldType

Since: 3.8.5
Inheritance: extends AdminPageFramework_FieldType_checkbox
Afficher le fichier Open project: michaeluno/admin-page-framework

Méthodes publiques

Свойство Type Description
$aFieldTypeSlugs Defines the field type slugs used for this field type.

Protected Properties

Свойство Type Description
$aDefaultKeys Defines the default key-values of this field type settings.

Méthodes publiques

Méthode Description
getField ( $aField ) Returns the output of the field type.
setUp ( ) Loads the field type necessary components.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
_getToggleElement ( $aField ) : string Returns the HTML output of the toggle element.
_getTogglesOptionsFormatted ( $aOptions, $aField ) : array These can be set with the data attributes.

Method Details

construct() protected méthode

protected construct ( )

getEnqueuingScripts() protected méthode

Returns an array holding the urls of enqueuing scripts.
protected getEnqueuingScripts ( ) : array
Résultat array

getEnqueuingStyles() protected méthode

protected getEnqueuingStyles ( ) : array
Résultat array

getField() public méthode

Returns the output of the field type.
public getField ( $aField )

getScripts() protected méthode

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

getStyles() protected méthode

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

setUp() public méthode

Loads the field type necessary components.
public setUp ( )

Property Details

$aDefaultKeys protected_oe property

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

$aFieldTypeSlugs public_oe property

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