PHP Класс schmunk42\giiant\generators\crud\Generator

С версии: 1.0
Автор: Tobais Munk ([email protected])
Наследование: extends yii\gii\generators\crud\Generator
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$accessFilter whether to add an access filter to controllers
$actionButtonClass string
$baseTraits
$controllerNs controller base namespace
$fixOutput whether to use php-cs-fixer to generate PSR compatible output
$formLayout Bootstrap CSS-class for form-layout
$generateAccessFilterMigrations
$gridMaxColumns maximum number of columns to show in grid
$gridRelationMaxColumns maximum number of columns to show in grid
$indexGridClass
$messageCategory translation catalogue
$migrationClass
$modelMessageCategory translation catalogue for model related translations
$moduleNs
$overwriteControllerClass whether to overwrite extended controller classes
$overwriteRestControllerClass whether to overwrite rest/api controller classes
$overwriteSearchModelClass whether to overwrite search classes
$pathPrefix prefix for controller route, eg. when generating controllers into subfolders
$providerList comma separated list of provider classes
$requires array of composer packages (only to show information to the developer in the web UI)
$savedForm form field for selecting and loading saved gii forms
$singularEntities whether to convert controller name to singular
$skipRelations relations to be excluded in UI rendering
$tablePrefix table prefix to be removed from class names when auto-detecting model names, eg. app_ converts table app_foo into Foo
$tidyOutput whether to use phptidy on renderer files before saving
$viewPath default view path

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

Метод Описание
formAttributes ( ) : array all form fields for saving in saved forms.
generate ( )
getControllerID ( ) : string
getDescription ( )
getModuleId ( ) : string
getName ( )
getViewPath ( ) : string
hints ( )
init ( )
render ( $template, $params = [] )
rules ( )
stickyAttributes ( )
successMessage ( )
validateClass ( $attribute, $params )
var_export54 ( $var, $indent = '' ) TODO: replace with VarDumper::export

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

formAttributes() публичный Метод

all form fields for saving in saved forms.
public formAttributes ( ) : array
Результат array

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

public generate ( )

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

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

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

public getDescription ( )

getModuleId() публичный Метод

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

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

public getName ( )

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

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

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

public hints ( )

init() публичный Метод

public init ( )

render() публичный Метод

public render ( $template, $params = [] )

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

public rules ( )

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

public stickyAttributes ( )

successMessage() публичный Метод

public successMessage ( )

validateClass() публичный Метод

public validateClass ( $attribute, $params )

var_export54() публичный Метод

TODO: replace with VarDumper::export
public var_export54 ( $var, $indent = '' )

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

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

whether to add an access filter to controllers
public $accessFilter

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

public string $actionButtonClass
Результат string

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

public $baseTraits

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

controller base namespace
public $controllerNs

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

whether to use php-cs-fixer to generate PSR compatible output
public $fixOutput

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

Bootstrap CSS-class for form-layout
public $formLayout

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

public $generateAccessFilterMigrations

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

maximum number of columns to show in grid
public $gridMaxColumns

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

maximum number of columns to show in grid
public $gridRelationMaxColumns

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

public $indexGridClass

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

translation catalogue
public $messageCategory

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

public $migrationClass

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

translation catalogue for model related translations
public $modelMessageCategory

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

public $moduleNs

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

whether to overwrite extended controller classes
public $overwriteControllerClass

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

whether to overwrite rest/api controller classes
public $overwriteRestControllerClass

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

whether to overwrite search classes
public $overwriteSearchModelClass

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

prefix for controller route, eg. when generating controllers into subfolders
public $pathPrefix

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

comma separated list of provider classes
public $providerList

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

array of composer packages (only to show information to the developer in the web UI)
public $requires

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

form field for selecting and loading saved gii forms
public $savedForm

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

whether to convert controller name to singular
public $singularEntities

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

relations to be excluded in UI rendering
public $skipRelations

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

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

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

whether to use phptidy on renderer files before saving
public $tidyOutput

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

default view path
public $viewPath