PHP Class ZF2rapid\Generator\CrudGenerator\DataFormFactoryGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator
Mostrar archivo Open project: zfrapid/zf2rapid Class Usage Examples

Protected Properties

Property Type Description
$config array
$foreignKeys array

Public Methods

Method Description
__construct ( string $className, string $moduleName, string $entityModule, string $entityClass, array $loadedTables = [], array $config = [] )

Protected Methods

Method Description
addClassDocBlock ( string $className ) Add a class doc block
addCreateServiceMethod ( string $className, string $moduleName, string $entityModule, string $entityClass ) Generate the create service method
filterCamelCaseToUnderscore ( string $text ) : string Filter camel case to underscore
filterUnderscoreToCamelCase ( string $text ) : string Filter camel case to underscore

Method Details

__construct() public method

public __construct ( string $className, string $moduleName, string $entityModule, string $entityClass, array $loadedTables = [], array $config = [] )
$className string
$moduleName string
$entityModule string
$entityClass string
$loadedTables array
$config array

addClassDocBlock() protected method

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

addCreateServiceMethod() protected method

Generate the create service method
protected addCreateServiceMethod ( string $className, string $moduleName, string $entityModule, string $entityClass )
$className string
$moduleName string
$entityModule string
$entityClass string

filterCamelCaseToUnderscore() protected method

Filter camel case to underscore
protected filterCamelCaseToUnderscore ( string $text ) : string
$text string
return string

filterUnderscoreToCamelCase() protected method

Filter camel case to underscore
protected filterUnderscoreToCamelCase ( string $text ) : string
$text string
return string

Property Details

$config protected_oe property

protected array $config
return array

$foreignKeys protected_oe property

protected array $foreignKeys
return array