PHP Класс Carbon_Fields\Container\Widget_Container

Наследование: extends Container
Показать файл Открыть проект

Открытые методы

Метод Описание
__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