Class app\gii\generators\appmodule\Generator
| Inheritance | app\gii\generators\appmodule\Generator » yii\gii\Generator |
|---|---|
| Available since version | 2.0 |
Данный генератор генерит скелет модуля приложения. В дополнение к стандартному функционалу генерит вложенный административный модуль, файл настроек и файл перевода.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $moduleClass | app\gii\generators\appmodule\Generator | ||
| $moduleID | app\gii\generators\appmodule\Generator |
Public Methods
Property Details
Method Details
| void attributeLabels( ) |
| void generate( ) |
| string getAdminControllerNamespace( ) | ||
| return | string | Admin module controllers namespace |
|---|---|---|
| string getAdminModuleClass( ) | ||
| return | string | Admin module class |
|---|---|---|
| string getAdminModuleNs( ) | ||
| return | string | Admin module namespace |
|---|---|---|
Returns class name without namespace
| string getClassName( $class ) | ||
| $class | string | Classname with namespace |
| string getControllerNamespace( ) | ||
| return | string | The controller namespace of the module. |
|---|---|---|
| void getDescription( ) |
| string getModuleNs( ) | ||
| return | string | Module namespace |
|---|---|---|
| boolean getModulePath( ) | ||
| return | boolean | The directory that contains the module class |
|---|---|---|
| void getName( ) |
| void hints( ) |
| void requiredTemplates( ) |
| void rules( ) |
| void successMessage( ) |
Validates $moduleClass to make sure it is a fully qualified class name.
| void validateModuleClass( ) |