PHP Class AdamWathan\Form\FormBuilder

Afficher le fichier Open project: adamwathan/form Class Usage Examples

Protected Properties

Свойство Type Description
$boundData
$csrfToken
$errorStore
$oldInput

Méthodes publiques

Méthode Description
bind ( $data )
button ( $value, $name = null )
checkbox ( $name, $value = 1 )
close ( )
date ( $name )
dateTimeLocal ( $name )
email ( $name )
file ( $name )
getError ( $name, $format = null )
getValueFor ( $name )
hasError ( $name )
hidden ( $name )
label ( $label )
open ( )
password ( $name )
radio ( $name, $value = null )
select ( $name, $options = [] )
selectMonth ( $name )
setErrorStore ( AdamWathan\Form\ErrorStore\ErrorStoreInterface $errorStore )
setOldInputProvider ( AdamWathan\Form\OldInput\OldInputInterface $oldInputProvider )
setToken ( $token )
submit ( $value = 'Submit' )
text ( $name )
textarea ( $name )
token ( )

Méthodes protégées

Méthode Description
escape ( $value )
getBoundValue ( $name, $default )
getOldInput ( $name )
hasBoundData ( )
hasOldInput ( )
hasToken ( )
unbindData ( )

Method Details

bind() public méthode

public bind ( $data )

button() public méthode

public button ( $value, $name = null )

checkbox() public méthode

public checkbox ( $name, $value = 1 )

close() public méthode

public close ( )

date() public méthode

public date ( $name )

dateTimeLocal() public méthode

public dateTimeLocal ( $name )

email() public méthode

public email ( $name )

escape() protected méthode

protected escape ( $value )

file() public méthode

public file ( $name )

getBoundValue() protected méthode

protected getBoundValue ( $name, $default )

getError() public méthode

public getError ( $name, $format = null )

getOldInput() protected méthode

protected getOldInput ( $name )

getValueFor() public méthode

public getValueFor ( $name )

hasBoundData() protected méthode

protected hasBoundData ( )

hasError() public méthode

public hasError ( $name )

hasOldInput() protected méthode

protected hasOldInput ( )

hasToken() protected méthode

protected hasToken ( )

hidden() public méthode

public hidden ( $name )

label() public méthode

public label ( $label )

open() public méthode

public open ( )

password() public méthode

public password ( $name )

radio() public méthode

public radio ( $name, $value = null )

select() public méthode

public select ( $name, $options = [] )

selectMonth() public méthode

public selectMonth ( $name )

setErrorStore() public méthode

public setErrorStore ( AdamWathan\Form\ErrorStore\ErrorStoreInterface $errorStore )
$errorStore AdamWathan\Form\ErrorStore\ErrorStoreInterface

setOldInputProvider() public méthode

public setOldInputProvider ( AdamWathan\Form\OldInput\OldInputInterface $oldInputProvider )
$oldInputProvider AdamWathan\Form\OldInput\OldInputInterface

setToken() public méthode

public setToken ( $token )

submit() public méthode

public submit ( $value = 'Submit' )

text() public méthode

public text ( $name )

textarea() public méthode

public textarea ( $name )

token() public méthode

public token ( )

unbindData() protected méthode

protected unbindData ( )

Property Details

$boundData protected_oe property

protected $boundData

$csrfToken protected_oe property

protected $csrfToken

$errorStore protected_oe property

protected $errorStore

$oldInput protected_oe property

protected $oldInput