PHP 클래스 schmunk42\giiant\commands\BatchController

저자: Tobias Munk ([email protected])
상속: extends yii\console\Controller
파일 보기 프로젝트 열기: schmunk42/yii2-giiant 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$crudAccessFilter whether to add accessFilter in behavior
$crudBaseControllerClass base class for crud controllers
$crudBaseTraits
$crudControllerNamespace namespace path for crud controller
$crudFixOutput whether to fix generated code (PSR-2). Note: May take some time, depending on file size and numbers.
$crudIndexGridClass
$crudIndexWidgetType
$crudMessageCategory the message category for CRUDs used by Yii::t() when $enableI18N is true. Defaults to app
$crudPathPrefix route prefix for crud controller actions
$crudProviders list of code provider classes (fully namespaced path required)
$crudSearchModelNamespace namespace path for crud search models
$crudSearchModelSuffix suffix to append to the search model, setting "Search" will result in a model named "PostSearch"
$crudSkipRelations list of relations to skip, when generating view-views
$crudTemplate
$crudTidyOutput whether to tidy generated code
$crudViewPath namespace path for crud views
$enableI18N whether the strings will be generated using Yii::t() or normal strings
$extendedModels whether to overwrite extended models (from ModelBase)
$languageCodeColumn the column name where the language code is stored
$languageTableName the name of the table containing the translations. {{table}} will be replaced with the value in "Table Name" field
$modelBaseClass base class for the generated models
$modelBaseClassSuffix suffix to append to the base model, setting "Base" will result in a model named "PostBase"
$modelBaseTraits traits for base-models
$modelDb database application component
$modelGenerateHintsFromComments This indicates whether the generator should generate attribute hints by using the comments of the corresponding DB columns
$modelGenerateLabelsFromComments This indicates whether the generator should generate attribute labels by using the comments of the corresponding DB columns
$modelGenerateQuery indicates whether to generate ActiveQuery for the ActiveRecord class
$modelMessageCategory the message category for models used by Yii::t() when $enableI18N is true. Defaults to app
$modelNamespace namespace path for model classes
$modelQueryBaseClass the base class of the new ActiveQuery class
$modelQueryNamespace the namespace of the ActiveQuery class to be generated
$modelRemoveDuplicateRelations
$overwrite whether to generate and overwrite all files
$singularEntities whether the entity names will be singular or the same as the table name
$tableNameMap mapping for table name to model class names
$tablePrefix eg. app_
$tables table names for generating models and CRUDs
$template the generator template name
$useTimestampBehavior whether to use yii\behaviors\TimestampBehavior in models
$useTranslatableBehavior whether to use or not 2amigos/yii2-translateable-behavior

보호된 프로퍼티들

프로퍼티 타입 설명
$appConfig application configuration for creating temporary applications
$modelGenerator of class schmunk42\giiant\generators\model\Generator

공개 메소드들

메소드 설명
actionCruds ( ) Run batch process to generate CRUDs all given tables.
actionIndex ( ) Run batch process to generate models and CRUDs for all given tables.
actionModels ( ) Run batch process to generate models all given tables.
beforeAction ( Action $action ) : boolean Loads application configuration and checks tables parameter.
options ( $id )

보호된 메소드들

메소드 설명
getYiiConfiguration ( ) : array Returns Yii's initial configuration array.

비공개 메소드들

메소드 설명
createDirectoryFromNamespace ( $ns ) Helper function to create.

메소드 상세

actionCruds() 공개 메소드

Run batch process to generate CRUDs all given tables.
public actionCruds ( )

actionIndex() 공개 메소드

Run batch process to generate models and CRUDs for all given tables.
public actionIndex ( )

actionModels() 공개 메소드

Run batch process to generate models all given tables.
public actionModels ( )

beforeAction() 공개 메소드

Loads application configuration and checks tables parameter.
public beforeAction ( Action $action ) : boolean
$action yii\base\Action
리턴 boolean

getYiiConfiguration() 보호된 메소드

Returns Yii's initial configuration array.
protected getYiiConfiguration ( ) : array
리턴 array

options() 공개 메소드

public options ( $id )

프로퍼티 상세

$appConfig 보호되어 있는 프로퍼티

application configuration for creating temporary applications
protected $appConfig

$crudAccessFilter 공개적으로 프로퍼티

whether to add accessFilter in behavior
public $crudAccessFilter

$crudBaseControllerClass 공개적으로 프로퍼티

base class for crud controllers
public $crudBaseControllerClass

$crudBaseTraits 공개적으로 프로퍼티

public $crudBaseTraits

$crudControllerNamespace 공개적으로 프로퍼티

namespace path for crud controller
public $crudControllerNamespace

$crudFixOutput 공개적으로 프로퍼티

whether to fix generated code (PSR-2). Note: May take some time, depending on file size and numbers.
public $crudFixOutput

$crudIndexGridClass 공개적으로 프로퍼티

public $crudIndexGridClass

$crudIndexWidgetType 공개적으로 프로퍼티

public $crudIndexWidgetType

$crudMessageCategory 공개적으로 프로퍼티

the message category for CRUDs used by Yii::t() when $enableI18N is true. Defaults to app
public $crudMessageCategory

$crudPathPrefix 공개적으로 프로퍼티

route prefix for crud controller actions
public $crudPathPrefix

$crudProviders 공개적으로 프로퍼티

list of code provider classes (fully namespaced path required)
public $crudProviders

$crudSearchModelNamespace 공개적으로 프로퍼티

namespace path for crud search models
public $crudSearchModelNamespace

$crudSearchModelSuffix 공개적으로 프로퍼티

suffix to append to the search model, setting "Search" will result in a model named "PostSearch"
public $crudSearchModelSuffix

$crudSkipRelations 공개적으로 프로퍼티

list of relations to skip, when generating view-views
public $crudSkipRelations

$crudTemplate 공개적으로 프로퍼티

public $crudTemplate

$crudTidyOutput 공개적으로 프로퍼티

whether to tidy generated code
public $crudTidyOutput

$crudViewPath 공개적으로 프로퍼티

namespace path for crud views
public $crudViewPath

$enableI18N 공개적으로 프로퍼티

whether the strings will be generated using Yii::t() or normal strings
public $enableI18N

$extendedModels 공개적으로 프로퍼티

whether to overwrite extended models (from ModelBase)
public $extendedModels

$languageCodeColumn 공개적으로 프로퍼티

the column name where the language code is stored
public $languageCodeColumn

$languageTableName 공개적으로 프로퍼티

the name of the table containing the translations. {{table}} will be replaced with the value in "Table Name" field
public $languageTableName

$modelBaseClass 공개적으로 프로퍼티

base class for the generated models
public $modelBaseClass

$modelBaseClassSuffix 공개적으로 프로퍼티

suffix to append to the base model, setting "Base" will result in a model named "PostBase"
public $modelBaseClassSuffix

$modelBaseTraits 공개적으로 프로퍼티

traits for base-models
public $modelBaseTraits

$modelDb 공개적으로 프로퍼티

database application component
public $modelDb

$modelGenerateHintsFromComments 공개적으로 프로퍼티

This indicates whether the generator should generate attribute hints by using the comments of the corresponding DB columns
public $modelGenerateHintsFromComments

$modelGenerateLabelsFromComments 공개적으로 프로퍼티

This indicates whether the generator should generate attribute labels by using the comments of the corresponding DB columns
public $modelGenerateLabelsFromComments

$modelGenerateQuery 공개적으로 프로퍼티

indicates whether to generate ActiveQuery for the ActiveRecord class
public $modelGenerateQuery

$modelGenerator 보호되어 있는 프로퍼티

of class schmunk42\giiant\generators\model\Generator
protected $modelGenerator

$modelMessageCategory 공개적으로 프로퍼티

the message category for models used by Yii::t() when $enableI18N is true. Defaults to app
public $modelMessageCategory

$modelNamespace 공개적으로 프로퍼티

namespace path for model classes
public $modelNamespace

$modelQueryBaseClass 공개적으로 프로퍼티

the base class of the new ActiveQuery class
public $modelQueryBaseClass

$modelQueryNamespace 공개적으로 프로퍼티

the namespace of the ActiveQuery class to be generated
public $modelQueryNamespace

$modelRemoveDuplicateRelations 공개적으로 프로퍼티

public $modelRemoveDuplicateRelations

$overwrite 공개적으로 프로퍼티

whether to generate and overwrite all files
public $overwrite

$singularEntities 공개적으로 프로퍼티

whether the entity names will be singular or the same as the table name
public $singularEntities

$tableNameMap 공개적으로 프로퍼티

mapping for table name to model class names
public $tableNameMap

$tablePrefix 공개적으로 프로퍼티

eg. app_
public $tablePrefix

$tables 공개적으로 프로퍼티

table names for generating models and CRUDs
public $tables

$template 공개적으로 프로퍼티

the generator template name
public $template

$useTimestampBehavior 공개적으로 프로퍼티

whether to use yii\behaviors\TimestampBehavior in models
public $useTimestampBehavior

$useTranslatableBehavior 공개적으로 프로퍼티

whether to use or not 2amigos/yii2-translateable-behavior
public $useTranslatableBehavior