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

Наследование: implements Illuminate\Contracts\Support\Renderable
Показать файл Открыть проект

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

Свойство Тип Описание
$attributes array
$data array
$fields Encore\Admin\Form\Field[]

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

Метод Описание
__call ( string $method, array $arguments ) : Field | null Generate a Field object and add to form builder if Field exists.
__construct ( array $data = [] ) Form constructor.
__toString ( ) : string Output as string.
action ( string $action ) Action uri of the form.
attribute ( string | array $attr, string $value = '' ) Add form attributes.
findFieldClass ( string $method ) : boolean | string Find field class with given name.
formatAttribute ( array $attributes = [] ) : string Format form attributes form array to html.
hasFile ( ) : boolean Determine if form fields has files.
method ( string $method = 'POST' ) Method of the form.
render ( ) : string Render the form.

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

Метод Описание
getVariables ( ) : array Get variables for render form.
initFormAttributes ( ) Initialize the form attributes.
pushField ( Field &$field ) Add a form field to form.

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

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

Generate a Field object and add to form builder if Field exists.
public __call ( string $method, array $arguments ) : Field | null
$method string
$arguments array
Результат Encore\Admin\Form\Field | null

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

Form constructor.
public __construct ( array $data = [] )
$data array

__toString() публичный Метод

Output as string.
public __toString ( ) : string
Результат string

action() публичный Метод

Action uri of the form.
public action ( string $action )
$action string

attribute() публичный Метод

Add form attributes.
public attribute ( string | array $attr, string $value = '' )
$attr string | array
$value string

findFieldClass() публичный статический Метод

Find field class with given name.
public static findFieldClass ( string $method ) : boolean | string
$method string
Результат boolean | string

formatAttribute() публичный Метод

Format form attributes form array to html.
public formatAttribute ( array $attributes = [] ) : string
$attributes array
Результат string

getVariables() защищенный Метод

Get variables for render form.
protected getVariables ( ) : array
Результат array

hasFile() публичный Метод

Determine if form fields has files.
public hasFile ( ) : boolean
Результат boolean

initFormAttributes() защищенный Метод

Initialize the form attributes.
protected initFormAttributes ( )

method() публичный Метод

Method of the form.
public method ( string $method = 'POST' )
$method string

pushField() защищенный Метод

Add a form field to form.
protected pushField ( Field &$field )
$field Encore\Admin\Form\Field

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

Render the form.
public render ( ) : string
Результат string

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

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

protected array $attributes
Результат array

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

protected array $data
Результат array

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

protected Field[],Encore\Admin\Form $fields
Результат Encore\Admin\Form\Field[]