PHP 클래스 Encore\Admin\Widgets\Form

상속: implements Illuminate\Contracts\Support\Renderable
파일 보기 프로젝트 열기: z-song/laravel-admin

보호된 프로퍼티들

프로퍼티 타입 설명
$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[]