PHP Класс mootensai\enhancedgii\crud\Generator

С версии: 2.0
Автор: Yohanes Candrajaya ([email protected])
Наследование: extends yii\gii\Generator
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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 ( )

Описание методов

attributeLabels() публичный метод

public attributeLabels ( )

generate() публичный метод

public generate ( )

generateActionParamComments() публичный метод

Generates parameter tags for phpdoc
public generateActionParamComments ( ) : array
Результат array parameter tags for phpdoc

generateActionParams() публичный метод

Generates action parameters
public generateActionParams ( ) : string
Результат string

generateActiveField() публичный метод

Generates code for active field
public generateActiveField ( string $attribute, $fk, $tableSchema = null, $relations = null, $isTree = false ) : string
$attribute string
Результат string

generateColumnFormat() публичный метод

Generates column format
public generateColumnFormat ( ColumnSchema $column ) : string
$column yii\db\ColumnSchema
Результат string

generateDetailViewField() публичный метод

Generates code for Grid View field
public generateDetailViewField ( string $attribute, $fk, yii\db\TableSchema $tableSchema = null ) : string
$attribute string
$tableSchema yii\db\TableSchema
Результат string

generateFK() публичный метод

public generateFK ( $tableSchema = null )

generateGridViewField() публичный метод

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
Результат string

generateGridViewFieldIndex() публичный метод

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
Результат string

generateSearchConditions() публичный метод

Generates search conditions
public generateSearchConditions ( ) : array
Результат array

generateSearchLabels() публичный метод

Generates the attribute labels for the search model.
public generateSearchLabels ( ) : array
Результат array the generated attribute labels (name => label)

generateSearchRules() публичный метод

Generates validation rules for the search model.
public generateSearchRules ( ) : array
Результат array the generated validation rules

generateTabularFormField() публичный метод

Generates code for Kartik Tabular Form field
public generateTabularFormField ( string $attribute, $fk, $tableSchema = null ) : string
$attribute string
Результат string

generateUrlParams() публичный метод

Generates URL parameters
public generateUrlParams ( ) : string
Результат string

getControllerID() публичный метод

public getControllerID ( ) : string
Результат string the controller ID (without the module ID prefix)

getDescription() публичный метод

public getDescription ( )

getName() публичный метод

public getName ( )

getNameAttribute() публичный метод

public getNameAttribute ( )

getNameAttributeFK() публичный метод

public getNameAttributeFK ( $tableName )

getSearchAttributes() публичный метод

public getSearchAttributes ( ) : array
Результат array searchable attributes

getViewPath() публичный метод

public getViewPath ( ) : string
Результат string the controller view path

hints() публичный метод

public hints ( )

requiredTemplates() публичный метод

public requiredTemplates ( )

rules() публичный метод

public rules ( )

stickyAttributes() публичный метод

public stickyAttributes ( )

Описание свойств

$UUIDColumn публичное свойство

public $UUIDColumn

$baseControllerClass публичное свойство

public $baseControllerClass

$blameableValue публичное свойство

public $blameableValue

$cancelable публичное свойство

public $cancelable

$controllerClass публичное свойство

public $controllerClass

$createdAt публичное свойство

public $createdAt

$createdBy публичное свойство

public $createdBy

$deletedAt публичное свойство

public $deletedAt

$deletedBy публичное свойство

public $deletedBy

$expandable публичное свойство

public $expandable

$generateLabelsFromComments публичное свойство

public $generateLabelsFromComments

$generateMigrations публичное свойство

public $generateMigrations

$generateQuery публичное свойство

public $generateQuery

$generateRelations публичное свойство

public $generateRelations

$generateSearchModel публичное свойство

public $generateSearchModel

$hiddenColumns публичное свойство

public $hiddenColumns

$indexWidgetType публичное свойство

public $indexWidgetType

$loggedUserOnly публичное свойство

public $loggedUserOnly

$nameAttribute публичное свойство

public $nameAttribute

$nsController публичное свойство

public $nsController

$nsModel публичное свойство

public $nsModel

$nsSearchModel публичное свойство

public $nsSearchModel

$optimisticLock публичное свойство

public $optimisticLock

$pdf публичное свойство

public $pdf

$pluralize публичное свойство

public $pluralize

$queryBaseClass публичное свойство

public $queryBaseClass

$queryClass публичное свойство

public $queryClass

$queryNs публичное свойство

public $queryNs

$relations публичное свойство

public $relations

$saveAsNew публичное свойство

public $saveAsNew

$searchModelClass публичное свойство

public $searchModelClass

$skippedColumns публичное свойство

public $skippedColumns

$timestampValue публичное свойство

public $timestampValue

$updatedAt публичное свойство

public $updatedAt

$updatedBy публичное свойство

public $updatedBy

$useTablePrefix публичное свойство

public $useTablePrefix

$viewPath публичное свойство

public $viewPath