PHP Class ZF2rapid\Generator\CrudGenerator\InputFilterClassGenerator

Inheritance: extends Zend\Code\Generator\ClassGenerator, implements ZF2rapid\Generator\ClassGenerator\ClassGeneratorInterface
显示文件 Open project: zfrapid/zf2rapid

Protected Properties

Property Type Description
$config array
$loadedTable array
$tableName

Public Methods

Method Description
__construct ( null | string $tableName, array $loadedTable = [], 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 ) 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 method

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

addClassDocBlock() protected method

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

addInitMethod() protected method

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

addOptionsProperty() protected method

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

addOptionsSetter() protected method

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

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

filterUnderscoreToCamelCase() protected method

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

Property Details

$config protected_oe property

protected array $config
return array

$loadedTable protected_oe property

protected array $loadedTable
return array

$tableName protected_oe property

protected $tableName