PHP 클래스 Kirki_Controls_Sortable_Control, kirki

상속: extends Kirki_Customize_Control
파일 보기 프로젝트 열기: aristath/kirki

공개 프로퍼티들

프로퍼티 타입 설명
$type string The control type.

공개 메소드들

메소드 설명
__construct ( WP_Customize_Manager $manager, string $id, array $args = [] ) Constructor.
customize_sanitize ( string $value ) : array Unserialize the setting before saving on DB.
enqueue ( ) Enqueue control related scripts/styles.
to_json ( ) Refresh the parameters passed to the JavaScript via JSON.

보호된 메소드들

메소드 설명
content_template ( ) An Underscore (JS) template for this control's content (but not its container).

메소드 상세

__construct() 공개 메소드

Supplied $args override class property defaults. If $args['settings'] is not defined, use the $id as the setting ID.
public __construct ( WP_Customize_Manager $manager, string $id, array $args = [] )
$manager WP_Customize_Manager Customizer bootstrap instance.
$id string Control ID.
$args array {@see \WP_Customize_Control::__construct}.

content_template() 보호된 메소드

Class variables for this control class are available in the data JS object; export custom variables by overriding {@see \Kirki_Customize_Control::to_json()}.
또한 보기: WP_Customize_Control::print_template()
protected content_template ( )

customize_sanitize() 공개 메소드

Unserialize the setting before saving on DB.
public customize_sanitize ( string $value ) : array
$value string Serialized settings.
리턴 array

enqueue() 공개 메소드

Enqueue control related scripts/styles.
public enqueue ( )

to_json() 공개 메소드

Refresh the parameters passed to the JavaScript via JSON.
public to_json ( )

프로퍼티 상세

$type 공개적으로 프로퍼티

The control type.
public string $type
리턴 string