PHP Class ZF2rapid\Generator\CrudGenerator\DeleteFormClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator, implements ZF2rapid\Generator\ClassGenerator\ClassGeneratorInterface
Mostra file Open project: zfrapid/zf2rapid

Protected Properties

Property Type Description
$config array
$entityClass string
$entityModule string
$loadedTables array
$paramModule string

Public Methods

Method Description
__construct ( null | string $paramModule, null | string $entityModule, string $entityClass, array $loadedTables = [], array $config = [] )
build ( string $className, string $moduleName ) Build the class

Protected Methods

Method 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

Method Details

__construct() public method

public __construct ( null | string $paramModule, null | string $entityModule, string $entityClass, array $loadedTables = [], array $config = [] )
$paramModule null | string
$entityModule null | string
$entityClass string
$loadedTables array
$config array

addClassDocBlock() protected method

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

addInitMethod() protected method

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

addOptionsProperty() protected method

protected addOptionsProperty ( string $columnName )
$columnName string

addOptionsSetter() protected method

protected addOptionsSetter ( string $columnName )
$columnName string

build() public method

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

filterCamelCaseToUnderscore() protected method

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

Property Details

$config protected_oe property

protected array $config
return array

$entityClass protected_oe property

protected string $entityClass
return string

$entityModule protected_oe property

protected string $entityModule
return string

$loadedTables protected_oe property

protected array $loadedTables
return array

$paramModule protected_oe property

protected string $paramModule
return string