PHP 클래스 ToggleCustomFieldType

부터: 3.8.5
상속: extends AdminPageFramework_FieldType_checkbox
파일 보기 프로젝트 열기: michaeluno/admin-page-framework

공개 프로퍼티들

프로퍼티 타입 설명
$aFieldTypeSlugs Defines the field type slugs used for this field type.

보호된 프로퍼티들

프로퍼티 타입 설명
$aDefaultKeys Defines the default key-values of this field type settings.

공개 메소드들

메소드 설명
getField ( $aField ) 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.

비공개 메소드들

메소드 설명
_getToggleElement ( $aField ) : string Returns the HTML output of the toggle element.
_getTogglesOptionsFormatted ( $aOptions, $aField ) : array These can be set with the data attributes.

메소드 상세

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 )

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