PHP Class Carbon_Fields\Field\Html_Field

Allows to create a field that displays any HTML in a container.
Inheritance: extends Field
Afficher le fichier Open project: htmlburger/carbon-fields

Méthodes publiques

Свойство Type Description
$field_html

Méthodes publiques

Méthode Description
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.

Method Details

delete() public méthode

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

get_label() public méthode

The label for the HTML field is hidden by design.
public get_label ( ) : string
Résultat string

is_required() public méthode

The HTML field is non-required by design.
public is_required ( ) : false
Résultat false

load() public méthode

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

save() public méthode

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

set_html() public méthode

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() public méthode

Underscore template of this field
public template ( )

to_json() public méthode

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.
Résultat array

Property Details

$field_html public_oe property

public $field_html