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
파일 보기 프로젝트 열기: htmlburger/carbon-fields

공개 프로퍼티들

프로퍼티 타입 설명
$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