PHP 클래스 Carbon_Fields\Container\Widget_Container

상속: extends Container
파일 보기 프로젝트 열기: htmlburger/carbon-fields

공개 메소드들

메소드 설명
__construct ( string $id ) Create a new widget
init ( ) Perform instance initialization after calling setup()
is_valid_attach ( ) : boolean Perform checks whether the container should be attached during the current request
render ( ) Output the container markup
to_json ( boolean $load ) : array Returns an array that holds the container data, suitable for JSON representation.

메소드 상세

__construct() 공개 메소드

Create a new widget
public __construct ( string $id )
$id string Unique ID of the widget

init() 공개 메소드

Perform instance initialization after calling setup()
public init ( )

is_valid_attach() 공개 메소드

Perform checks whether the container should be attached during the current request
public is_valid_attach ( ) : boolean
리턴 boolean True if the container is allowed to be attached

render() 공개 메소드

Output the container markup
public render ( )

to_json() 공개 메소드

This data will be available in the Underscore template and the Backbone Model.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
리턴 array