PHP 클래스 mootensai\enhancedgii\crud\Generator

부터: 2.0
저자: Yohanes Candrajaya ([email protected])
상속: extends yii\gii\Generator
파일 보기 프로젝트 열기: mootensai/yii2-enhanced-gii

공개 프로퍼티들

프로퍼티 타입 설명
$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