PHP Class Encore\Admin\Form\Field

Datei anzeigen Open project: z-song/laravel-admin Class Usage Examples

Protected Properties

Property Type Description
$attributes
$column
$css
$default
$form Encore\Admin\Form
$id
$js
$label
$options
$original
$rules
$script
$value
$variables

Public Methods

Method Description
__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.

Protected Methods

Method Description
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.

Method Details

__call() public method

public __call ( $method, $arguments )

__construct() public method

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

column() public method

Get column of the field.
public column ( ) : string
return string

fill() public method

Fill data to the field.
public fill ( $data ) : void
$data
return void

formatAttributes() protected method

Format the field attributes.
protected formatAttributes ( ) : string
return string

formatId() protected method

Format the field element id.
protected formatId ( string | array $column ) : string | array
$column string | array
return string | array

formatLabel() protected method

Format the label value.
protected formatLabel ( array $arguments = [] ) : string
$arguments array
return string

formatName() protected method

Format the name of the field.
protected formatName ( string $column ) : array | mixed | string
$column string
return array | mixed | string

getView() public method

Get view of this field.
public getView ( ) : string
return string

label() public method

Get label of the field.
public label ( ) : string
return string

options() public method

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

original() public method

Get original value of the field.
public original ( ) : mixed
return mixed

readOnly() public method

Set the field as readonly mode.
public readOnly ( )

render() public method

Render this filed.
public render ( ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
return Illuminate\Contracts\View\Factory | Illuminate\View\View

rules() public method

Get or set rules.
public rules ( null $rules = null ) : string
$rules null
return string

setForm() public method

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

setOriginal() public method

Set original value to the field.
public setOriginal ( $data ) : void
$data
return void

value() public method

Set or get value of the field.
public value ( null $value = null ) : mixed
$value null
return mixed

variables() protected method

Get the view variables of this field.
protected variables ( ) : array
return array

Property Details

$attributes protected_oe property

protected $attributes

$column protected_oe property

protected $column

$css protected_oe property

protected $css

$default protected_oe property

protected $default

$form protected_oe property

protected Form,Encore\Admin $form
return Encore\Admin\Form

$id protected_oe property

protected $id

$js protected_oe property

protected $js

$label protected_oe property

protected $label

$options protected_oe property

protected $options

$original protected_oe property

protected $original

$rules protected_oe property

protected $rules

$script protected_oe property

protected $script

$value protected_oe property

protected $value

$variables protected_oe property

protected $variables