PHP Класс Encore\Admin\Form\Field

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$attributes
$column
$css
$default
$form Encore\Admin\Form
$id
$js
$label
$options
$original
$rules
$script
$value
$variables

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

Метод Описание
__call ( $method, $arguments )
__construct ( $column, $arguments = [] )
column ( ) : string Get column of the field.
fill ( $data ) : void Fill data to the field.
getView ( ) : string Get view of this field.
label ( ) : string Get label of the field.
options ( array $options = [] ) Set the field options.
original ( ) : mixed Get original value of the field.
readOnly ( ) Set the field as readonly mode.
render ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View Render this filed.
rules ( null $rules = null ) : string Get or set rules.
setForm ( Form $form )
setOriginal ( $data ) : void Set original value to the field.
value ( null $value = null ) : mixed Set or get value of the field.

Защищенные методы

Метод Описание
formatAttributes ( ) : string Format the field attributes.
formatId ( string | array $column ) : string | array Format the field element id.
formatLabel ( array $arguments = [] ) : string Format the label value.
formatName ( string $column ) : array | mixed | string Format the name of the field.
variables ( ) : array Get the view variables of this field.

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

__call() публичный метод

public __call ( $method, $arguments )

__construct() публичный метод

public __construct ( $column, $arguments = [] )

column() публичный метод

Get column of the field.
public column ( ) : string
Результат string

fill() публичный метод

Fill data to the field.
public fill ( $data ) : void
$data
Результат void

formatAttributes() защищенный метод

Format the field attributes.
protected formatAttributes ( ) : string
Результат string

formatId() защищенный метод

Format the field element id.
protected formatId ( string | array $column ) : string | array
$column string | array
Результат string | array

formatLabel() защищенный метод

Format the label value.
protected formatLabel ( array $arguments = [] ) : string
$arguments array
Результат string

formatName() защищенный метод

Format the name of the field.
protected formatName ( string $column ) : array | mixed | string
$column string
Результат array | mixed | string

getView() публичный метод

Get view of this field.
public getView ( ) : string
Результат string

label() публичный метод

Get label of the field.
public label ( ) : string
Результат string

options() публичный метод

Set the field options.
public options ( array $options = [] )
$options array

original() публичный метод

Get original value of the field.
public original ( ) : mixed
Результат mixed

readOnly() публичный метод

Set the field as readonly mode.
public readOnly ( )

render() публичный метод

Render this filed.
public render ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
Результат Illuminate\Contracts\View\Factory | Illuminate\View\View

rules() публичный метод

Get or set rules.
public rules ( null $rules = null ) : string
$rules null
Результат string

setForm() публичный метод

public setForm ( Form $form )
$form Encore\Admin\Form

setOriginal() публичный метод

Set original value to the field.
public setOriginal ( $data ) : void
$data
Результат void

value() публичный метод

Set or get value of the field.
public value ( null $value = null ) : mixed
$value null
Результат mixed

variables() защищенный метод

Get the view variables of this field.
protected variables ( ) : array
Результат array

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

$attributes защищенное свойство

protected $attributes

$column защищенное свойство

protected $column

$css защищенное свойство

protected $css

$default защищенное свойство

protected $default

$form защищенное свойство

protected Form,Encore\Admin $form
Результат Encore\Admin\Form

$id защищенное свойство

protected $id

$js защищенное свойство

protected $js

$label защищенное свойство

protected $label

$options защищенное свойство

protected $options

$original защищенное свойство

protected $original

$rules защищенное свойство

protected $rules

$script защищенное свойство

protected $script

$value защищенное свойство

protected $value

$variables защищенное свойство

protected $variables