PHP Class SampleCustomFieldType

Inheritance: extends AdminPageFramework_FieldType
Show file Open project: michaeluno/admin-page-framework

Public Properties

Property Type Description
$aFieldTypeSlugs Defines the field type slugs used for this field type.

Protected Properties

Property Type Description
$aDefaultKeys Defines the default key-values of this field type.

Protected Methods

Method Description
getEnqueuingScripts ( ) Returns an array holding the urls of enqueuing scripts.
getEnqueuingStyles ( ) Returns an array holding the urls of enqueuing styles.
getField ( $aField ) : string Returns the output of the field type.
getIEStyles ( ) Returns IE specific CSS rules.
getScripts ( ) Returns the field type specific JavaScript script.
getStyles ( ) Returns the field type specific CSS rules.
setUp ( ) Loads the field type necessary components.

Private Methods

Method Description
_getHiddenContents ( array $aField ) : string Returns a generated hidden HTML output which appears when a redio button is selected.
getRevealerScript ( $sFieldContainerID, $sDefaultSelectionID ) : string

Method Details

getEnqueuingScripts() protected method

Returns an array holding the urls of enqueuing scripts.
protected getEnqueuingScripts ( )

getEnqueuingStyles() protected method

Returns an array holding the urls of enqueuing styles.
protected getEnqueuingStyles ( )

getField() protected method

Returns the output of the field type.
protected getField ( $aField ) : string
return string The field output.

getIEStyles() protected method

Returns IE specific CSS rules.
protected getIEStyles ( )

getScripts() protected method

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

getStyles() protected method

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

setUp() protected method

Loads the field type necessary components.
protected setUp ( )

Property Details

$aDefaultKeys protected property

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

$aFieldTypeSlugs public property

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