PHP Class Encore\Admin\Widgets\Form

Inheritance: implements Illuminate\Contracts\Support\Renderable
Afficher le fichier Open project: z-song/laravel-admin

Protected Properties

Свойство Type Description
$attributes array
$data array
$fields Encore\Admin\Form\Field[]

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
getVariables ( ) : array Get variables for render form.
initFormAttributes ( ) Initialize the form attributes.
pushField ( Field &$field ) Add a form field to form.

Method Details

__call() public méthode

Generate a Field object and add to form builder if Field exists.
public __call ( string $method, array $arguments ) : Field | null
$method string
$arguments array
Résultat Encore\Admin\Form\Field | null

__construct() public méthode

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

__toString() public méthode

Output as string.
public __toString ( ) : string
Résultat string

action() public méthode

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

attribute() public méthode

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

findFieldClass() public static méthode

Find field class with given name.
public static findFieldClass ( string $method ) : boolean | string
$method string
Résultat boolean | string

formatAttribute() public méthode

Format form attributes form array to html.
public formatAttribute ( array $attributes = [] ) : string
$attributes array
Résultat string

getVariables() protected méthode

Get variables for render form.
protected getVariables ( ) : array
Résultat array

hasFile() public méthode

Determine if form fields has files.
public hasFile ( ) : boolean
Résultat boolean

initFormAttributes() protected méthode

Initialize the form attributes.
protected initFormAttributes ( )

method() public méthode

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

pushField() protected méthode

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

render() public méthode

Render the form.
public render ( ) : string
Résultat string

Property Details

$attributes protected_oe property

protected array $attributes
Résultat array

$data protected_oe property

protected array $data
Résultat array

$fields protected_oe property

protected Field[],Encore\Admin\Form $fields
Résultat Encore\Admin\Form\Field[]