PHP Class AdamWathan\Form\FormBuilder

Mostra file Open project: adamwathan/form Class Usage Examples

Protected Properties

Property Type Description
$boundData
$csrfToken
$errorStore
$oldInput

Public Methods

Method 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 ( )

Protected Methods

Method Description
escape ( $value )
getBoundValue ( $name, $default )
getOldInput ( $name )
hasBoundData ( )
hasOldInput ( )
hasToken ( )
unbindData ( )

Method Details

bind() public method

public bind ( $data )

button() public method

public button ( $value, $name = null )

checkbox() public method

public checkbox ( $name, $value = 1 )

close() public method

public close ( )

date() public method

public date ( $name )

dateTimeLocal() public method

public dateTimeLocal ( $name )

email() public method

public email ( $name )

escape() protected method

protected escape ( $value )

file() public method

public file ( $name )

getBoundValue() protected method

protected getBoundValue ( $name, $default )

getError() public method

public getError ( $name, $format = null )

getOldInput() protected method

protected getOldInput ( $name )

getValueFor() public method

public getValueFor ( $name )

hasBoundData() protected method

protected hasBoundData ( )

hasError() public method

public hasError ( $name )

hasOldInput() protected method

protected hasOldInput ( )

hasToken() protected method

protected hasToken ( )

hidden() public method

public hidden ( $name )

label() public method

public label ( $label )

open() public method

public open ( )

password() public method

public password ( $name )

radio() public method

public radio ( $name, $value = null )

select() public method

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

selectMonth() public method

public selectMonth ( $name )

setErrorStore() public method

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

setOldInputProvider() public method

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

setToken() public method

public setToken ( $token )

submit() public method

public submit ( $value = 'Submit' )

text() public method

public text ( $name )

textarea() public method

public textarea ( $name )

token() public method

public token ( )

unbindData() protected method

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