PHP Class mootensai\enhancedgii\crud\Generator

Since: 2.0
Author: Yohanes Candrajaya ([email protected])
Inheritance: extends yii\gii\Generator
Datei anzeigen Open project: mootensai/yii2-enhanced-gii

Public Properties

Property Type Description
$UUIDColumn
$baseControllerClass
$blameableValue
$cancelable
$controllerClass
$createdAt
$createdBy
$deletedAt
$deletedBy
$expandable
$generateLabelsFromComments
$generateMigrations
$generateQuery
$generateRelations
$generateSearchModel
$hiddenColumns
$indexWidgetType
$loggedUserOnly
$nameAttribute
$nsController
$nsModel
$nsSearchModel
$optimisticLock
$pdf
$pluralize
$queryBaseClass
$queryClass
$queryNs
$relations
$saveAsNew
$searchModelClass
$skippedColumns
$timestampValue
$updatedAt
$updatedBy
$useTablePrefix
$viewPath

Public Methods

Method Description
attributeLabels ( )
generate ( )
generateActionParamComments ( ) : array Generates parameter tags for phpdoc
generateActionParams ( ) : string Generates action parameters
generateActiveField ( string $attribute, $fk, $tableSchema = null, $relations = null, $isTree = false ) : string Generates code for active field
generateColumnFormat ( ColumnSchema $column ) : string Generates column format
generateDetailViewField ( string $attribute, $fk, yii\db\TableSchema $tableSchema = null ) : string Generates code for Grid View field
generateFK ( $tableSchema = null )
generateGridViewField ( string $attribute, array $fk, yii\db\TableSchema $tableSchema = null ) : string Generates code for Grid View field
generateGridViewFieldIndex ( string $attribute, array $fk, yii\db\TableSchema $tableSchema = null ) : string Generates code for Grid View field
generateSearchConditions ( ) : array Generates search conditions
generateSearchLabels ( ) : array Generates the attribute labels for the search model.
generateSearchRules ( ) : array Generates validation rules for the search model.
generateTabularFormField ( string $attribute, $fk, $tableSchema = null ) : string Generates code for Kartik Tabular Form field
generateUrlParams ( ) : string Generates URL parameters
getControllerID ( ) : string
getDescription ( )
getName ( )
getNameAttribute ( )
getNameAttributeFK ( $tableName )
getSearchAttributes ( ) : array
getViewPath ( ) : string
hints ( )
requiredTemplates ( )
rules ( )
stickyAttributes ( )

Method Details

attributeLabels() public method

public attributeLabels ( )

generate() public method

public generate ( )

generateActionParamComments() public method

Generates parameter tags for phpdoc
public generateActionParamComments ( ) : array
return array parameter tags for phpdoc

generateActionParams() public method

Generates action parameters
public generateActionParams ( ) : string
return string

generateActiveField() public method

Generates code for active field
public generateActiveField ( string $attribute, $fk, $tableSchema = null, $relations = null, $isTree = false ) : string
$attribute string
return string

generateColumnFormat() public method

Generates column format
public generateColumnFormat ( ColumnSchema $column ) : string
$column yii\db\ColumnSchema
return string

generateDetailViewField() public method

Generates code for Grid View field
public generateDetailViewField ( string $attribute, $fk, yii\db\TableSchema $tableSchema = null ) : string
$attribute string
$tableSchema yii\db\TableSchema
return string

generateFK() public method

public generateFK ( $tableSchema = null )

generateGridViewField() public method

Generates code for Grid View field
public generateGridViewField ( string $attribute, array $fk, yii\db\TableSchema $tableSchema = null ) : string
$attribute string
$fk array
$tableSchema yii\db\TableSchema
return string

generateGridViewFieldIndex() public method

Generates code for Grid View field
public generateGridViewFieldIndex ( string $attribute, array $fk, yii\db\TableSchema $tableSchema = null ) : string
$attribute string
$fk array
$tableSchema yii\db\TableSchema
return string

generateSearchConditions() public method

Generates search conditions
public generateSearchConditions ( ) : array
return array

generateSearchLabels() public method

Generates the attribute labels for the search model.
public generateSearchLabels ( ) : array
return array the generated attribute labels (name => label)

generateSearchRules() public method

Generates validation rules for the search model.
public generateSearchRules ( ) : array
return array the generated validation rules

generateTabularFormField() public method

Generates code for Kartik Tabular Form field
public generateTabularFormField ( string $attribute, $fk, $tableSchema = null ) : string
$attribute string
return string

generateUrlParams() public method

Generates URL parameters
public generateUrlParams ( ) : string
return string

getControllerID() public method

public getControllerID ( ) : string
return string the controller ID (without the module ID prefix)

getDescription() public method

public getDescription ( )

getName() public method

public getName ( )

getNameAttribute() public method

public getNameAttribute ( )

getNameAttributeFK() public method

public getNameAttributeFK ( $tableName )

getSearchAttributes() public method

public getSearchAttributes ( ) : array
return array searchable attributes

getViewPath() public method

public getViewPath ( ) : string
return string the controller view path

hints() public method

public hints ( )

requiredTemplates() public method

public requiredTemplates ( )

rules() public method

public rules ( )

stickyAttributes() public method

public stickyAttributes ( )

Property Details

$UUIDColumn public_oe property

public $UUIDColumn

$baseControllerClass public_oe property

public $baseControllerClass

$blameableValue public_oe property

public $blameableValue

$cancelable public_oe property

public $cancelable

$controllerClass public_oe property

public $controllerClass

$createdAt public_oe property

public $createdAt

$createdBy public_oe property

public $createdBy

$deletedAt public_oe property

public $deletedAt

$deletedBy public_oe property

public $deletedBy

$expandable public_oe property

public $expandable

$generateLabelsFromComments public_oe property

public $generateLabelsFromComments

$generateMigrations public_oe property

public $generateMigrations

$generateQuery public_oe property

public $generateQuery

$generateRelations public_oe property

public $generateRelations

$generateSearchModel public_oe property

public $generateSearchModel

$hiddenColumns public_oe property

public $hiddenColumns

$indexWidgetType public_oe property

public $indexWidgetType

$loggedUserOnly public_oe property

public $loggedUserOnly

$nameAttribute public_oe property

public $nameAttribute

$nsController public_oe property

public $nsController

$nsModel public_oe property

public $nsModel

$nsSearchModel public_oe property

public $nsSearchModel

$optimisticLock public_oe property

public $optimisticLock

$pdf public_oe property

public $pdf

$pluralize public_oe property

public $pluralize

$queryBaseClass public_oe property

public $queryBaseClass

$queryClass public_oe property

public $queryClass

$queryNs public_oe property

public $queryNs

$relations public_oe property

public $relations

$saveAsNew public_oe property

public $saveAsNew

$searchModelClass public_oe property

public $searchModelClass

$skippedColumns public_oe property

public $skippedColumns

$timestampValue public_oe property

public $timestampValue

$updatedAt public_oe property

public $updatedAt

$updatedBy public_oe property

public $updatedBy

$useTablePrefix public_oe property

public $useTablePrefix

$viewPath public_oe property

public $viewPath