PHP Class Gregwar\Formidable\Factory

Author: Grégoire Passault ([email protected])
Inheritance: extends Gregwar\Formidable\Language\LanguageAware
Afficher le fichier Open project: gregwar/formidable Class Usage Examples

Protected Properties

Свойство Type Description
$formClass Form clas
$parserClass Parser class
$typeClasses Field types

Méthodes publiques

Méthode Description
__construct ( ) Constructs the factory
getField ( $name ) Get a field of a given type
getForm ( $pathOrContent, array $vars = [], $cache = false ) Get a form in this factory
getObject ( $name ) Get an object
getParser ( $content, $offset ) Get a parser
registerType ( $type, $class ) Register a type

Méthodes protégées

Méthode Description
inject ( $object )

Method Details

__construct() public méthode

Constructs the factory
public __construct ( )

getField() public méthode

Get a field of a given type
public getField ( $name )

getForm() public méthode

Get a form in this factory
public getForm ( $pathOrContent, array $vars = [], $cache = false )
$vars array

getObject() public méthode

Get an object
public getObject ( $name )

getParser() public méthode

Get a parser
public getParser ( $content, $offset )

inject() protected méthode

protected inject ( $object )

registerType() public méthode

Register a type
public registerType ( $type, $class )

Property Details

$formClass protected_oe property

Form clas
protected $formClass

$parserClass protected_oe property

Parser class
protected $parserClass

$typeClasses protected_oe property

Field types
protected $typeClasses