Class schmunk42\giiant\generators\crud\Generator

Inheritanceschmunk42\giiant\generators\crud\Generator » yii\gii\generators\crud\Generator
Uses Traitsschmunk42\giiant\generators\crud\ModelTrait, schmunk42\giiant\generators\crud\ParamTrait, schmunk42\giiant\generators\crud\ProviderTrait
Available since version1.0

This generator generates an extended version of CRUDs.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$accessFilter bool Whether to add an access filter to controllers schmunk42\giiant\generators\crud\Generator
$actionButtonClass string schmunk42\giiant\generators\crud\Generator
$baseTraits schmunk42\giiant\generators\crud\Generator
$controllerNs \schmunk42\giiant\generators\crud\sting Controller base namespace schmunk42\giiant\generators\crud\Generator
$formLayout string Bootstrap CSS-class for form-layout schmunk42\giiant\generators\crud\Generator
$generateAccessFilterMigrations schmunk42\giiant\generators\crud\Generator
$gridMaxColumns int Maximum number of columns to show in grid schmunk42\giiant\generators\crud\Generator
$gridRelationMaxColumns int Maximum number of columns to show in grid schmunk42\giiant\generators\crud\Generator
$messageCategory string Translation catalogue schmunk42\giiant\generators\crud\Generator
$migrationClass schmunk42\giiant\generators\crud\Generator
$modelMessageCategory string Translation catalogue for model related translations schmunk42\giiant\generators\crud\Generator
$moduleNs schmunk42\giiant\generators\crud\Generator
$overwriteControllerClass bool Whether to overwrite extended controller classes schmunk42\giiant\generators\crud\Generator
$overwriteRestControllerClass bool Whether to overwrite rest/api controller classes schmunk42\giiant\generators\crud\Generator
$overwriteSearchModelClass bool Whether to overwrite search classes schmunk42\giiant\generators\crud\Generator
$pathPrefix string Prefix for controller route, eg. schmunk42\giiant\generators\crud\Generator
$providerList null Comma separated list of provider classes schmunk42\giiant\generators\crud\Generator
$requires array Array of composer packages (only to show information to the developer in the web UI) schmunk42\giiant\generators\crud\Generator
$savedForm string Form field for selecting and loading saved gii forms schmunk42\giiant\generators\crud\Generator
$singularEntities bool Whether to convert controller name to singular schmunk42\giiant\generators\crud\Generator
$skipRelations array Relations to be excluded in UI rendering schmunk42\giiant\generators\crud\Generator
$tablePrefix string Table prefix to be removed from class names when auto-detecting model names, eg. schmunk42\giiant\generators\crud\Generator
$tidyOutput array Whether to use phptidy on renderer files before saving schmunk42\giiant\generators\crud\Generator
$viewPath string Default view path schmunk42\giiant\generators\crud\Generator

Public Methods

Hide inherited methods

MethodDescriptionDefined By
activeField() Generates code for active field by using the provider queue. schmunk42\giiant\generators\crud\ProviderTrait
appendActiveField() schmunk42\giiant\generators\crud\ProviderTrait
attributeEditable() schmunk42\giiant\generators\crud\ProviderTrait
attributeFormat() schmunk42\giiant\generators\crud\ProviderTrait
columnFormat() schmunk42\giiant\generators\crud\ProviderTrait
createRelationRoute() schmunk42\giiant\generators\crud\ModelTrait
formAttributes() All form fields for saving in saved forms. schmunk42\giiant\generators\crud\Generator
generate() schmunk42\giiant\generators\crud\Generator
generateActionParamComments() {@inheritdoc} schmunk42\giiant\generators\crud\ParamTrait
generateActionParams() {@inheritdoc} schmunk42\giiant\generators\crud\ParamTrait
generateProviderCheckboxListData() schmunk42\giiant\generators\crud\ProviderTrait
generateRelationTo() schmunk42\giiant\generators\crud\ModelTrait
generateUrlParams() Generates URL parameters. schmunk42\giiant\generators\crud\ParamTrait
getColumnByAttribute() schmunk42\giiant\generators\crud\ModelTrait
getControllerID() schmunk42\giiant\generators\crud\Generator
getCoreProviders() schmunk42\giiant\generators\crud\ProviderTrait
getDescription() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
getModelByTableName() schmunk42\giiant\generators\crud\ModelTrait
getModelNameAttribute() schmunk42\giiant\generators\crud\ModelTrait
getModelRelations() Finds relations of a model class. schmunk42\giiant\generators\crud\ModelTrait
getModuleId() schmunk42\giiant\generators\crud\Generator
getName() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
getRelationByColumn() schmunk42\giiant\generators\crud\ModelTrait
getViewPath() schmunk42\giiant\generators\crud\Generator
hints() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
init() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
isPivotRelation() schmunk42\giiant\generators\crud\ModelTrait
partialView() schmunk42\giiant\generators\crud\ProviderTrait
prependActiveField() schmunk42\giiant\generators\crud\ProviderTrait
relationGrid() schmunk42\giiant\generators\crud\ProviderTrait
relationGridEditable() schmunk42\giiant\generators\crud\ProviderTrait
render() schmunk42\giiant\generators\crud\Generator
rules() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
stickyAttributes() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
successMessage() {@inheritdoc} schmunk42\giiant\generators\crud\Generator
validateClass() schmunk42\giiant\generators\crud\Generator
var_export54() schmunk42\giiant\generators\crud\Generator

Property Details

$accessFilter public property

Whether to add an access filter to controllers

public bool $accessFilter false
$actionButtonClass public property
public string $actionButtonClass 'yii\web\grid\ActionColumn'
$baseTraits public property
public $baseTraits null
$controllerNs public property

Controller base namespace

public \schmunk42\giiant\generators\crud\sting $controllerNs null
$formLayout public property

Bootstrap CSS-class for form-layout

public string $formLayout 'horizontal'
$generateAccessFilterMigrations public property
$gridMaxColumns public property

Maximum number of columns to show in grid

public int $gridMaxColumns 8
$gridRelationMaxColumns public property

Maximum number of columns to show in grid

public int $gridRelationMaxColumns 8
$messageCategory public property

Translation catalogue

public string $messageCategory 'cruds'
$migrationClass public property
public $migrationClass null
$modelMessageCategory public property

Translation catalogue for model related translations

public string $modelMessageCategory 'models'
$moduleNs public property
public $moduleNs null
$overwriteControllerClass public property

Whether to overwrite extended controller classes

public bool $overwriteControllerClass false
$overwriteRestControllerClass public property

Whether to overwrite rest/api controller classes

public bool $overwriteRestControllerClass false
$overwriteSearchModelClass public property

Whether to overwrite search classes

public bool $overwriteSearchModelClass false
$pathPrefix public property

Prefix for controller route, eg. when generating controllers into subfolders

public string $pathPrefix null
$providerList public property

Comma separated list of provider classes

public null $providerList null
$requires public property

Array of composer packages (only to show information to the developer in the web UI)

public array $requires = []
$savedForm public property

Form field for selecting and loading saved gii forms

public string $savedForm null
$singularEntities public property

Whether to convert controller name to singular

public bool $singularEntities false
$skipRelations public property

Relations to be excluded in UI rendering

public array $skipRelations = []
$tablePrefix public property

Table prefix to be removed from class names when auto-detecting model names, eg. app_ converts table app_foo into Foo

public string $tablePrefix null
$tidyOutput public property

Whether to use phptidy on renderer files before saving

public array $tidyOutput null
$viewPath public property

Default view path

public string $viewPath '@backend/views'

Method Details

formAttributes() public method

All form fields for saving in saved forms.

public array formAttributes ( )
generate() public method

public void generate ( )
getControllerID() public method

public string getControllerID ( )
return string

The controller ID (without the module ID prefix)

getDescription() public method

{@inheritdoc}

public void getDescription ( )
getModuleId() public method

public string getModuleId ( )
return string

The controller ID (without the module ID prefix)

getName() public method

{@inheritdoc}

public void getName ( )
getViewPath() public method

public string getViewPath ( )
return string

The action view file path

hints() public method

{@inheritdoc}

public void hints ( )
init() public method

{@inheritdoc}

public void init ( )
render() public method

public void render ( $template, $params = [] )
$template
$params
rules() public method

{@inheritdoc}

public void rules ( )
stickyAttributes() public method

{@inheritdoc}

public void stickyAttributes ( )
successMessage() public method

{@inheritdoc}

public void successMessage ( )
validateClass() public method

public void validateClass ( $attribute, $params )
$attribute
$params
var_export54() public method

public void var_export54 ( $var, $indent '' )
$var
$indent