Class schmunk42\giiant\commands\BatchController
Inheritance | schmunk42\giiant\commands\BatchController » yii\console\Controller |
---|
Public Properties
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$appConfig | array | Application configuration for creating temporary applications | schmunk42\giiant\commands\BatchController |
$modelGenerator | \schmunk42\giiant\commands\instance | Of class schmunk42\giiant\generators\model\Generator | schmunk42\giiant\commands\BatchController |
Public Methods
Method | Description | Defined By |
---|---|---|
actionCruds() | Run batch process to generate CRUDs all given tables | schmunk42\giiant\commands\BatchController |
actionIndex() | Run batch process to generate models and CRUDs for all given tables | schmunk42\giiant\commands\BatchController |
actionModels() | Run batch process to generate models all given tables | schmunk42\giiant\commands\BatchController |
beforeAction() | Loads application configuration and checks tables parameter | schmunk42\giiant\commands\BatchController |
options() | schmunk42\giiant\commands\BatchController |
Protected Methods
Method | Description | Defined By |
---|---|---|
getYiiConfiguration() | Returns Yii's initial configuration array | schmunk42\giiant\commands\BatchController |
Property Details
Application configuration for creating temporary applications
Base class for crud controllers
Namespace path for crud controller
Route prefix for crud controller actions
List of code provider classes (fully namespaced path required)
Namespace path for crud search models
Suffix to append to the search model, setting "Search" will result in a model named "PostSearch"
List of relations to skip, when generating view
-views
Namespace path for crud views
Whether the strings will be generated using Yii::t()
or normal strings.
Whether to overwrite extended models (from ModelBase)
The message category used by Yii::t()
when $enableI18N
is true
.
Defaults to app
.
Base class for the generated models
Suffix to append to the base model, setting "Base" will result in a model named "PostBase"
Traits for base-models
Database application component
Indicates whether to generate ActiveQuery for the ActiveRecord class
Of class schmunk42\giiant\generators\model\Generator
Namespace path for model classes
The base class of the new ActiveQuery class
The namespace of the ActiveQuery class to be generated
Whether to generate and overwrite all files
Whether the entity names will be singular or the same as the table name.
Mapping for table name to model class names
Eg. app_
Table names for generating models and CRUDs
The generator template name
Method Details
Run batch process to generate CRUDs all given tables
public void actionCruds ( ) | ||
throws | \yii\console\Exception |
---|
Run batch process to generate models and CRUDs for all given tables
public void actionIndex ( ) |
Run batch process to generate models all given tables
public void actionModels ( ) | ||
throws | \yii\console\Exception |
---|
Loads application configuration and checks tables parameter
public bool beforeAction ( $action ) | ||
$action | \yii\base\Action |
Returns Yii's initial configuration array
protected array getYiiConfiguration ( ) |
public void options ( $id ) | ||
$id |