PHP Class ZF2rapid\Generator\CrudGenerator\DataFormClassGenerator

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

Protected Properties

Свойство Type Description
$config array
$entityClass string
$entityModule string
$loadedTables array
$paramModule string

Méthodes publiques

Méthode Description
__construct ( null | string $paramModule, null | string $entityModule, $entityClass, array $loadedTables = [], 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 ) Generate an init method
addOptionsProperty ( string $columnName )
addOptionsSetter ( string $columnName )
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 $paramModule, null | string $entityModule, $entityClass, array $loadedTables = [], array $config = [] )
$paramModule null | string
$entityModule null | string
$loadedTables 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

Generate an init method
protected addInitMethod ( $className, $moduleName )
$className
$moduleName

addOptionsProperty() protected méthode

protected addOptionsProperty ( string $columnName )
$columnName string

addOptionsSetter() protected méthode

protected addOptionsSetter ( string $columnName )
$columnName string

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

$entityClass protected_oe property

protected string $entityClass
Résultat string

$entityModule protected_oe property

protected string $entityModule
Résultat string

$loadedTables protected_oe property

protected array $loadedTables
Résultat array

$paramModule protected_oe property

protected string $paramModule
Résultat string