PHP Class Encore\Admin\Form\Builder

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

Protected Properties

Property Type Description
$fields
$form
$id
$mode string Form action mode, could be create|view|edit.
$options

Public Methods

Method Description
__construct ( Form $form )
__toString ( )
close ( ) : string Close the current form.
fields ( ) : Collection Get fields of this builder.
hasFile ( ) : boolean Determine if form fields has files.
isMode ( $mode ) : boolean Returns builder is $mode.
open ( array $options = [] ) : string Open up a new HTML form.
options ( $options = [] )
render ( )
setMode ( string $mode = 'create' ) : void Set the builder mode.
setResourceId ( $id ) : void Set resource Id.
submit ( )
title ( ) : string

Method Details

__construct() public method

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

__toString() public method

public __toString ( )

close() public method

Close the current form.
public close ( ) : string
return string

fields() public method

Get fields of this builder.
public fields ( ) : Collection
return Illuminate\Support\Collection

hasFile() public method

Determine if form fields has files.
public hasFile ( ) : boolean
return boolean

isMode() public method

Returns builder is $mode.
public isMode ( $mode ) : boolean
$mode
return boolean

open() public method

Open up a new HTML form.
public open ( array $options = [] ) : string
$options array
return string

options() public method

public options ( $options = [] )

render() public method

public render ( )

setMode() public method

Set the builder mode.
public setMode ( string $mode = 'create' ) : void
$mode string
return void

setResourceId() public method

Set resource Id.
public setResourceId ( $id ) : void
$id
return void

submit() public method

public submit ( )

title() public method

public title ( ) : string
return string

Property Details

$fields protected_oe property

protected $fields

$form protected_oe property

protected $form

$id protected_oe property

protected $id

$mode protected_oe property

Form action mode, could be create|view|edit.
protected string $mode
return string

$options protected_oe property

protected $options