Property | Type | Description | |
---|---|---|---|
$aFieldTypeSlugs | Defines the field type slugs used for this field type. |
Property | Type | Description | |
---|---|---|---|
$aDefaultKeys | Defines the default key-values of this field type settings. |
Method | Description | |
---|---|---|
getField ( $aField ) | Returns the output of the field type. | |
setUp ( ) | Loads the field type necessary components. |
Method | Description | |
---|---|---|
_getRemoveButtonScript ( $sInputID, array $aButtonAttributes, $sType = 'path' ) : string | Returns an inline script tag that removes the set value. | |
_getSelectButtonScript ( $sInputID, $abRepeatable, array $aButtonAttributes ) : string | Returns a tag element with a JavaScript script that enables select buttons. | |
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. |
Method | Description | |
---|---|---|
_getBaseAttributes ( $aField ) : array | Returns a base attribute array. | |
_getFileTreeOptionsFormatted ( $aOptions ) : array | ||
_getFormattedSelectButtonAttributes ( $sInputID, array $aButtonAttributes, $_bIsLabelSet ) : array | Returns a formatted upload button attributes array. | |
_getPathInputAttributes ( array $aField, $sPath, array $aBaseAttributes ) : array | Returns a path field input attribute array for the input tag that stores the user's selecting path. | |
_getPathNormalized ( $sPath ) : string | Normalize a file system path. | |
_getRootFormatted ( $sPath ) : string | ||
_getSelectButtonHTML ( $sInputID, array $aButtonAttributes ) : string | Returns an HTML output of a select button. | |
_getSelectorElement ( $sInputID, array $aOptions ) : string | Returns the HTML output of the selector element inserted in the tick-box. |
protected _getRemoveButtonScript ( $sInputID, array $aButtonAttributes, $sType = 'path' ) : string | ||
$aButtonAttributes | array | |
return | string |
protected _getSelectButtonScript ( $sInputID, $abRepeatable, array $aButtonAttributes ) : string | ||
$aButtonAttributes | array | |
return | string |
protected getEnqueuingScripts ( ) : array | ||
return | array |
protected getScripts ( ) |
protected $aDefaultKeys |