PHP Class ZF2rapid\Generator\CrudGenerator\InputFilterClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator, implements ZF2rapid\Generator\ClassGenerator\ClassGeneratorInterface
Afficher le fichier Open project: zfrapid/zf2rapid

Protected Properties

Свойство Type Description
$config array
$loadedTable array
$tableName

Méthodes publiques

Méthode Description
__construct ( null | string $tableName, array $loadedTable = [], array $config = [] )
build ( string $className, string $moduleName ) Build the class

Méthodes protégées

Méthode Description
addClassDocBlock ( string $className, string $moduleName ) Add a class doc block
addInitMethod ( $className, $moduleName ) Add the init() method to setup input elements
addOptionsProperty ( string $columnName, Zend\Db\Metadata\Object\ConstraintObject $foreignKey )
addOptionsSetter ( string $columnName, Zend\Db\Metadata\Object\ConstraintObject $foreignKey )
filterCamelCaseToUnderscore ( string $text ) : string Filter camel case to underscore
filterUnderscoreToCamelCase ( string $text ) : string Filter underscore to camel case

Method Details

__construct() public méthode

public __construct ( null | string $tableName, array $loadedTable = [], array $config = [] )
$tableName null | string
$loadedTable array
$config array

addClassDocBlock() protected méthode

Add a class doc block
protected addClassDocBlock ( string $className, string $moduleName )
$className string
$moduleName string

addInitMethod() protected méthode

Add the init() method to setup input elements
protected addInitMethod ( $className, $moduleName )
$className
$moduleName

addOptionsProperty() protected méthode

protected addOptionsProperty ( string $columnName, Zend\Db\Metadata\Object\ConstraintObject $foreignKey )
$columnName string
$foreignKey Zend\Db\Metadata\Object\ConstraintObject

addOptionsSetter() protected méthode

protected addOptionsSetter ( string $columnName, Zend\Db\Metadata\Object\ConstraintObject $foreignKey )
$columnName string
$foreignKey Zend\Db\Metadata\Object\ConstraintObject

build() public méthode

Build the class
public build ( string $className, string $moduleName )
$className string
$moduleName string

filterCamelCaseToUnderscore() protected méthode

Filter camel case to underscore
protected filterCamelCaseToUnderscore ( string $text ) : string
$text string
Résultat string

filterUnderscoreToCamelCase() protected méthode

Filter underscore to camel case
protected filterUnderscoreToCamelCase ( string $text ) : string
$text string
Résultat string

Property Details

$config protected_oe property

protected array $config
Résultat array

$loadedTable protected_oe property

protected array $loadedTable
Résultat array

$tableName protected_oe property

protected $tableName