PHP Class Gajus\Dora\Form

Inheritance: implements Psr\Log\LoggerAwareInterface
Datei anzeigen Open project: gajus/dora

Public Methods

Method Description
__construct ( array $data = null, null | string $template = 'Gajus\Dora\Template\Traditional' )
getData ( ) : array
getUid ( ) : string
input ( string $name, array $attributes = null, array $properties = null, string $template = 'replace-with-default' ) : Input Create Input associated with the Form instance data.
isSubmitted ( $check_csfr = true ) : boolean
setLogger ( Psr\Log\LoggerInterface $logger ) : null Sets a logger instance on the object
sign ( )

Method Details

__construct() public method

public __construct ( array $data = null, null | string $template = 'Gajus\Dora\Template\Traditional' )
$data array Data used to populate Input generated using an instance of this Form.
$template null | string Template class name.

getData() public method

public getData ( ) : array
return array

getUid() public method

public getUid ( ) : string
return string

input() public method

Create Input associated with the Form instance data.
public input ( string $name, array $attributes = null, array $properties = null, string $template = 'replace-with-default' ) : Input
$name string
$attributes array
$properties array
$template string
return Input

isSubmitted() public method

public isSubmitted ( $check_csfr = true ) : boolean
return boolean

setLogger() public method

Sets a logger instance on the object
public setLogger ( Psr\Log\LoggerInterface $logger ) : null
$logger Psr\Log\LoggerInterface
return null

sign() public method

public sign ( )