PHP 클래스 Themosis\Field\Fields\FieldBuilder

상속: extends Themosis\Foundation\DataContainer
파일 보기 프로젝트 열기: themosis/framework 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$properties array The field properties.
$type string The type of the input handling the value.
$view Illuminate\View\Factory A view instance.

공개 메소드들

메소드 설명
__construct ( array $properties, Illuminate\View\Factory $view ) FieldBuilder instance.
getFieldType ( ) : string Method that return the field input type.

보호된 메소드들

메소드 설명
defaultCheckableValue ( ) Define a default value as array for checkable fields.
fieldType ( ) Method to override in the child class to define its input type property.
getAllowedMimeTypes ( ) : array Return a simplified list of allowed mime types.
parseAttributes ( ) : array Parse and prepare the field tag attributes.
parseFeatures ( ) : array Parse and prepare field feature properties.
setLimit ( ) Define the limit of media files or rows we can add.
setType ( ) Set the type data of the media to insert.

메소드 상세

__construct() 공개 메소드

FieldBuilder instance.
public __construct ( array $properties, Illuminate\View\Factory $view )
$properties array Field instance properties.
$view Illuminate\View\Factory

defaultCheckableValue() 보호된 메소드

Define a default value as array for checkable fields.
protected defaultCheckableValue ( )

fieldType() 보호된 메소드

Method to override in the child class to define its input type property.
protected fieldType ( )

getAllowedMimeTypes() 보호된 메소드

This will automatically authorize user defined mime types.
protected getAllowedMimeTypes ( ) : array
리턴 array

getFieldType() 공개 메소드

Method that return the field input type.
public getFieldType ( ) : string
리턴 string

parseAttributes() 보호된 메소드

Parse and prepare the field tag attributes.
protected parseAttributes ( ) : array
리턴 array The parsed attributes.

parseFeatures() 보호된 메소드

Parse and prepare field feature properties.
protected parseFeatures ( ) : array
리턴 array

setLimit() 보호된 메소드

Define the limit of media files or rows we can add.
protected setLimit ( )

setType() 보호된 메소드

If no type is defined, default to an array containing the 'image' mime type only. Need to "serialize" the array for output as a string value. We can use a separated list with commas.
protected setType ( )

프로퍼티 상세

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

The field properties.
protected array $properties
리턴 array

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

The type of the input handling the value.
protected string $type
리턴 string

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

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