PHP Класс Carbon_Fields\Field\Html_Field

Allows to create a field that displays any HTML in a container.
Наследование: extends Field
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$field_html

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

Метод Описание
delete ( ) Delete the field value.
get_label ( ) : string Retrieve field label.
is_required ( ) : false Whether this field is required.
load ( ) Load the field value.
save ( ) Save the field value.
set_html ( string | callable $callback_or_html ) Set the field HTML or callback that returns the HTML.
template ( ) Underscore template of this field
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

Описание методов

delete() публичный Метод

Skipped, no value to be deleted.
public delete ( )

get_label() публичный Метод

The label for the HTML field is hidden by design.
public get_label ( ) : string
Результат string

is_required() публичный Метод

The HTML field is non-required by design.
public is_required ( ) : false
Результат false

load() публичный Метод

Skipped, no value to be loaded.
public load ( )

save() публичный Метод

Skipped, no value to be saved.
public save ( )

set_html() публичный Метод

Set the field HTML or callback that returns the HTML.
public set_html ( string | callable $callback_or_html )
$callback_or_html string | callable HTML or callable that returns the HTML.

template() публичный Метод

Underscore template of this field
public template ( )

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

Описание свойств

$field_html публичное свойство

public $field_html