PHP Класс Carbon_Fields\Field\File_Field

Allows selecting and saving a media attachment file, where the file ID is saved in the database.
Наследование: extends Field
Показать файл Открыть проект

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

Свойство Тип Описание
$button_label
$field_type empty for all types. available types: audio, video, image
$value_type alt, author, caption, dateFormatted, description, editLink, filename, height, icon, id, link, menuOrder, mime, name, status, subtype, title, type, uploadedTo, url, width
$window_button_label
$window_label

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

Метод Описание
admin_init ( ) Admin initialization actions
set_type ( string $type ) Change the type of the field
set_value_type ( string $value_type ) Change the value type of the field.
template ( ) The main Underscore template of this field
template_description ( ) Underscore template of the file description section.
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

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

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

Admin initialization actions
public admin_init ( )

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

Change the type of the field
public set_type ( string $type )
$type string

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

Change the value type of the field.
public set_value_type ( string $value_type )
$value_type string

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

The main Underscore template of this field
public template ( )

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

Underscore template of the file description section.

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

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

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

public $button_label

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

empty for all types. available types: audio, video, image
public $field_type

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

alt, author, caption, dateFormatted, description, editLink, filename, height, icon, id, link, menuOrder, mime, name, status, subtype, title, type, uploadedTo, url, width
public $value_type

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

public $window_button_label

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

public $window_label