PHP Class Encore\Admin\Form\Builder

Afficher le fichier Open project: z-song/laravel-admin Class Usage Examples

Protected Properties

Свойство Type Description
$fields
$form
$id
$mode string Form action mode, could be create|view|edit.
$options

Méthodes publiques

Méthode 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 méthode

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

__toString() public méthode

public __toString ( )

close() public méthode

Close the current form.
public close ( ) : string
Résultat string

fields() public méthode

Get fields of this builder.
public fields ( ) : Collection
Résultat Illuminate\Support\Collection

hasFile() public méthode

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

isMode() public méthode

Returns builder is $mode.
public isMode ( $mode ) : boolean
$mode
Résultat boolean

open() public méthode

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

options() public méthode

public options ( $options = [] )

render() public méthode

public render ( )

setMode() public méthode

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

setResourceId() public méthode

Set resource Id.
public setResourceId ( $id ) : void
$id
Résultat void

submit() public méthode

public submit ( )

title() public méthode

public title ( ) : string
Résultat 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
Résultat string

$options protected_oe property

protected $options