PHP 클래스 Themosis\Field\FieldFactory

파일 보기 프로젝트 열기: themosis/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$view Illuminate\View\Factory A view instance.

공개 메소드들

메소드 설명
__construct ( Illuminate\View\Factory $view ) Define a FieldFactory instance.
checkbox ( string $name, string | array $options, array $features = [], array $attributes = [] ) : CheckboxField Return a CheckboxField instance.
collection ( string $name, array $features = [] ) : CollectionField Define a CollectionField instance.
color ( string $name, array $features = [], array $attributes = [] ) : ColorField Define a ColorField instance.
date ( string $name, array $features = [], array $attributes = [] ) : DateField Return a DateField instance.
editor ( string $name, array $features = [], array $settings = [] ) : EditorField Define an EditorField instance.
infinite ( string $name, array $fields, array $features = [] ) : InfiniteField Define an InfiniteField instance.
make ( string $class, array $fieldProperties ) : object Call the appropriate field class.
media ( string $name, array $features = [] ) : MediaField Return a MediaField instance.
number ( string $name, array $features = [], array $attributes = [] ) : NumberField Return a NumberField instance.
password ( string $name, array $features = [], array $attributes = [] ) : PasswordField Return a PasswordField instance.
radio ( string $name, string | array $options, array $features = [], array $attributes = [] ) : RadioField Return a RadioField instance.
select ( string $name, array $options, array $features = [], array $attributes = [] ) : SelectField Define a SelectField instance.
text ( string $name, array $features = [], array $attributes = [] ) : TextField Return a TextField instance.
textarea ( string $name, array $features = [], array $attributes = [] ) : TextareaField Return a TextareaField instance.

메소드 상세

__construct() 공개 메소드

Define a FieldFactory instance.
public __construct ( Illuminate\View\Factory $view )
$view Illuminate\View\Factory A view instance.

checkbox() 공개 메소드

Return a CheckboxField instance.
public checkbox ( string $name, string | array $options, array $features = [], array $attributes = [] ) : CheckboxField
$name string The name attribute of the checkbox input.
$options string | array The checkbox options.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\CheckboxField

collection() 공개 메소드

Define a CollectionField instance.
public collection ( string $name, array $features = [] ) : CollectionField
$name string The name attribute.
$features array Custom field features - title, info, type, limit.
리턴 Themosis\Field\Fields\CollectionField

color() 공개 메소드

Define a ColorField instance.
public color ( string $name, array $features = [], array $attributes = [] ) : ColorField
$name string The name attribute.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\ColorField

date() 공개 메소드

Return a DateField instance.
public date ( string $name, array $features = [], array $attributes = [] ) : DateField
$name string The name attribute of the date input.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\DateField

editor() 공개 메소드

Define an EditorField instance.
public editor ( string $name, array $features = [], array $settings = [] ) : EditorField
$name string The name attribute if the editor field.
$features array Custom field features - title, info.
$settings array The 'wp_editor' settings.
리턴 Themosis\Field\Fields\EditorField

infinite() 공개 메소드

Define an InfiniteField instance.
public infinite ( string $name, array $fields, array $features = [] ) : InfiniteField
$name string The name attribute of the infinite inner inputs.
$fields array The fields to repeat.
$features array Custom field features - title, info, limit.
리턴 Themosis\Field\Fields\InfiniteField

make() 공개 메소드

Call the appropriate field class.
public make ( string $class, array $fieldProperties ) : object
$class string The custom field class name.
$fieldProperties array The defined field properties. Muse be an associative array.
리턴 object Themosis\Field\Fields\IField

media() 공개 메소드

Return a MediaField instance.
public media ( string $name, array $features = [] ) : MediaField
$name string The name attribute of the hidden input.
$features array Custom field features - title, info, type (image, application, audio, video)
리턴 Themosis\Field\Fields\MediaField

number() 공개 메소드

Return a NumberField instance.
public number ( string $name, array $features = [], array $attributes = [] ) : NumberField
$name string The name attribute of the number input.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\NumberField

password() 공개 메소드

Return a PasswordField instance.
public password ( string $name, array $features = [], array $attributes = [] ) : PasswordField
$name string The name attribute of the password input.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\PasswordField

radio() 공개 메소드

Return a RadioField instance.
public radio ( string $name, string | array $options, array $features = [], array $attributes = [] ) : RadioField
$name string The name attribute.
$options string | array The radio options.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\RadioField

select() 공개 메소드

Define a SelectField instance.
public select ( string $name, array $options, array $features = [], array $attributes = [] ) : SelectField
$name string The name attribute of the select custom field.
$options array The select options tag.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\SelectField

text() 공개 메소드

Return a TextField instance.
public text ( string $name, array $features = [], array $attributes = [] ) : TextField
$name string The name attribute of the text input.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\TextField

textarea() 공개 메소드

Return a TextareaField instance.
public textarea ( string $name, array $features = [], array $attributes = [] ) : TextareaField
$name string The name attribute of the textarea.
$features array Custom field features - title, info.
$attributes array Input html attributes.
리턴 Themosis\Field\Fields\TextareaField

프로퍼티 상세

$view 보호되어 있는 프로퍼티

A view instance.
protected Factory,Illuminate\View $view
리턴 Illuminate\View\Factory