PHP Класс Themosis\Field\Fields\FieldBuilder

Наследование: extends Themosis\Foundation\DataContainer
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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