Example #1
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>', 'db' => 'This is the ID of the MongoDB application component.', 'collectionName' => 'This is the name of the MongoDB collection that the new ActiveRecord class is associated with, e.g. <code>post</code>.', 'databaseName' => 'This is the name of the MongoDB database, which contains the collection that the new ActiveRecord class is associated with.
             You may leave this field blank, if your application uses single MongoDB database.', 'attributeList' => 'List of the collection attribute names separated by coma.
             You do not need to specify "_id" attribute here - it will be added automatically.', 'modelClass' => 'This is the name of the ActiveRecord class to be generated. The class name should not contain
             the namespace part as it is specified in "Namespace". You may leave this field blank - in this case class name
             will be generated automatically.', 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.']);
 }
Example #2
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class, .e.g, <code>app\\controllers\\PostController</code>.', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'moduleID' => 'This is the ID of the module that the generated controller will belong to.
             If not set, it means the controller will belong to the application.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\search\\PostSearch</code>.']);
 }
Example #3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     $stickyAttributes = $this->model->stickyAttributes();
     if (in_array($this->attribute, $stickyAttributes)) {
         $this->sticky();
     }
     $hints = $this->model->hints();
     if (isset($hints[$this->attribute])) {
         $this->hint($hints[$this->attribute]);
     }
     $autoCompleteData = $this->model->autoCompleteData();
     if (isset($autoCompleteData[$this->attribute])) {
         if (is_callable($autoCompleteData[$this->attribute])) {
             $this->autoComplete(call_user_func($autoCompleteData[$this->attribute]));
         } else {
             $this->autoComplete($autoCompleteData[$this->attribute]);
         }
     }
 }
Example #4
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class (e.g. <code>app\\controllers\\PostController</code>),
             and class name should be in CamelCase with an uppercase first letter. Make sure the class
             is using the same namespace as specified by your application\'s controllerNamespace property.', 'viewPath' => 'Specify the directory for storing the view scripts for the controller. You may use path alias here, e.g.,
             <code>/var/www/basic/controllers/views/post</code>, <code>@app/views/post</code>. If not set, it will default
             to <code>@app/views/ControllerID</code>', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.']);
 }
Example #5
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['migrationPath' => 'Path to store generated file, e.g., <code>@app/migrations</code>', 'db' => 'This is the ID of the DB application component.', 'tableName' => 'This is the name of the DB table that the new ActiveRecord class is associated with, e.g. <code>post</code>.
             The table name may consist of the DB schema part if needed, e.g. <code>public.post</code>.
             The table name may end with asterisk to match multiple table names, e.g. <code>tbl_*</code>
             will match tables who name starts with <code>tbl_</code>.', 'migrationName' => 'The name of the new migration. This should only contain letters, digits and/or underscores.', 'migrationTime' => 'Time of the new migration. This should only has format <code>yymmdd_hhiiss</code>.', 'generateRelations' => 'This indicates whether the generator should generate relations based on
             foreign key constraints it detects in the database. Note that if your database contains too many tables,
             you may want to uncheck this option to accelerate the code generation process.', 'useTablePrefix' => 'This indicates whether the table name returned by the generated migration
             should consider the <code>tablePrefix</code> setting of the DB connection. For example, if the
             table name is <code>tbl_post</code> and <code>tablePrefix=tbl_</code>, the migration
             will use the table name as <code>{{%post}}</code>.']);
 }
Example #6
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>', 'db' => 'This is the ID of the Sphinx application component.', 'indexName' => 'This is the name of the Sphinx index that the new ActiveRecord class is associated with, e.g. <code>post</code>.
             The index name may end with asterisk to match multiple table names, e.g. <code>idx_*</code>
             will match indexes, which name starts with <code>idx_</code>. In this case, multiple ActiveRecord classes
             will be generated, one for each matching index name; and the class names will be generated from
             the matching characters. For example, index <code>idx_post</code> will generate <code>Post</code>
             class.', 'modelClass' => 'This is the name of the ActiveRecord class to be generated. The class name should not contain
             the namespace part as it is specified in "Namespace". You do not need to specify the class name
             if "Index Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.', 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'useIndexPrefix' => 'This indicates whether the index name returned by the generated ActiveRecord class
             should consider the <code>tablePrefix</code> setting of the Sphinx connection. For example, if the
             index name is <code>idx_post</code> and <code>tablePrefix=idx_</code>, the ActiveRecord class
             will return the table name as <code>{{%post}}</code>.']);
 }
Example #7
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the Model class to be generated, e.g., <code>Core\\Model</code>', 'tableName' => 'This is the name of the DB table that the new Model class is associated with, e.g. <code>User</code>.
             The table name may consist of the DB schema part if needed, e.g. <code>public.post</code>.
             The table name may end with asterisk to match multiple table names, e.g. <code>tbl_*</code>
             will match tables who name starts with <code>tbl_</code>. In this case, multiple ActiveRecord classes
             will be generated, one for each matching table name; and the class names will be generated from
             the matching characters. For example, table <code>tbl_post</code> will generate <code>Post</code>
             class.', 'modelClass' => 'This is the name of the ActiveRecord class to be generated. The class name should not contain
             the namespace part as it is specified in "Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.', 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'generateRelations' => 'This indicates whether the generator should generate relations based on
             foreign key constraints it detects in the database. Note that if your database contains too many tables,
             you may want to uncheck this option to accelerate the code generation process.']);
 }
Example #8
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class (e.g. <code>app\\controllers\\PostController</code>),
             and class name should be in CamelCase with an uppercase first letter. Make sure the class
             is using the same namespace as specified by your application\'s controllerNamespace property.', 'viewPath' => 'Specify the directory for storing the view scripts for the controller. You may use path alias here, e.g.,
             <code>/var/www/basic/controllers/views/post</code>, <code>@app/views/post</code>. If not set, it will default
             to <code>@app/views/ControllerID</code>', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.', 'enablePjax' => 'This indicates whether the generator should wrap the <code>GridView</code> or <code>ListView</code>
             widget on the index page with <code>yii\\widgets\\Pjax</code> widget. Set this to <code>true</code> if you want to get
             sorting, filtering and pagination without page refreshing.']);
 }
Example #9
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>', 'db' => 'This is the ID of the DB application component.', 'tableName' => 'This is the name of the DB table that the new ActiveRecord class is associated with, e.g. <code>post</code>.
             The table name may consist of the DB schema part if needed, e.g. <code>public.post</code>.
             The table name may end with asterisk to match multiple table names, e.g. <code>tbl_*</code>
             will match tables who name starts with <code>tbl_</code>. In this case, multiple ActiveRecord classes
             will be generated, one for each matching table name; and the class names will be generated from
             the matching characters. For example, table <code>tbl_post</code> will generate <code>Post</code>
             class.', 'modelClass' => 'This is the name of the ActiveRecord class to be generated. The class name should not contain
             the namespace part as it is specified in "Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.', 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'generateRelations' => 'This indicates whether the generator should generate relations based on
             foreign key constraints it detects in the database. Note that if your database contains too many tables,
             you may want to uncheck this option to accelerate the code generation process.', 'generateLabelsFromComments' => 'This indicates whether the generator should generate attribute labels
             by using the comments of the corresponding DB columns.', 'useSchemaName' => 'This indicates whether to include the schema name in the ActiveRecord class
             when it\'s auto generated. Only non default schema would be used.']);
 }
Example #10
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>', 'db' => 'This is the ID of the DB application component.', 'tableName' => 'This is the name of the DB table that the new ActiveRecord class is associated with, e.g. <code>post</code>.
             The table name may consist of the DB schema part if needed, e.g. <code>public.post</code>.
             The table name may end with asterisk to match multiple table names, e.g. <code>tbl_*</code>
             will match tables who name starts with <code>tbl_</code>. In this case, multiple ActiveRecord classes
             will be generated, one for each matching table name; and the class names will be generated from
             the matching characters. For example, table <code>tbl_post</code> will generate <code>Post</code>
             class.', 'modelClass' => 'This is the name of the ActiveRecord class to be generated. The class name should not contain
             the namespace part as it is specified in "Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.', 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'generateRelations' => 'This indicates whether the generator should generate relations based on
             foreign key constraints it detects in the database. Note that if your database contains too many tables,
             you may want to uncheck this option to accelerate the code generation process.', 'generateLabelsFromComments' => 'This indicates whether the generator should generate attribute labels
             by using the comments of the corresponding DB columns.', 'useTablePrefix' => 'This indicates whether the table name returned by the generated ActiveRecord class
             should consider the <code>tablePrefix</code> setting of the DB connection. For example, if the
             table name is <code>tbl_post</code> and <code>tablePrefix=tbl_</code>, the ActiveRecord class
             will return the table name as <code>{{%post}}</code>.', 'useSchemaName' => 'This indicates whether to include the schema name in the ActiveRecord class
             when it\'s auto generated. Only non default schema would be used.', 'generateQuery' => 'This indicates whether to generate ActiveQuery for the ActiveRecord class.', 'queryNs' => 'This is the namespace of the ActiveQuery class to be generated, e.g., <code>app\\models</code>', 'queryClass' => 'This is the name of the ActiveQuery class to be generated. The class name should not contain
             the namespace part as it is specified in "ActiveQuery Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveQuery classes will be generated.', 'queryBaseClass' => 'This is the base class of the new ActiveQuery class. It should be a fully qualified namespaced class name.', 'imagesDomain' => 'Images sub-domain pattern, e.g., <code>img.{$domain}</code> on domain <code>test.com</code>
             will be render as <code>img.test.com</code>, also you can set the full domain name, e.g., <code>images.example.com</code>.
             Be sure that the web root of this domain linked to your <code>imagesPath</code>.', 'imagesPath' => 'This is a path to upload images. May be path alias use this, e.g., <code>@app/web/img</code>', 'addingI18NStrings' => 'Enables the adding non existing I18N strings to the message category files.', 'messagesPaths' => 'This is a path to I18N messages, ability to set multiple directories separated by commas, e.g.
             <code>@backend/messages,@frontend/messages</code>']);
 }
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['tableName' => 'You can use "*" for all tables, or "," to separate tables', 'migrationName' => 'Note that you should check the result migration code after generation and perform some corrections if needed, mostly due to inconsistency between MySQL and PHP types.', 'useSafe' => 'DB logic implemented in "Safe Mode" will be enclosed within a DB transaction', 'migrationDataType' => 'Please select the data you want to include in the migration', 'dropTable' => 'Drop Table if exists in DB']);
 }
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the Eloquent class to be generated, e.g., <code>app\\models</code>', 'path' => 'This is the full server path for the location of the Eloquent models', 'db' => 'This is the ID of the DB application component.', 'tableName' => 'This is the name of the DB table that the new Eloquent class is associated with, e.g. <code>post</code>.
             The table name may consist of the DB schema part if needed, e.g. <code>public.post</code>.
             The table name may end with asterisk to match multiple table names, e.g. <code>tbl_*</code>
             will match tables who name starts with <code>tbl_</code>. In this case, multiple Eloquent classes
             will be generated, one for each matching table name; and the class names will be generated from
             the matching characters. For example, table <code>tbl_post</code> will generate <code>Post</code>
             class.', 'modelClass' => 'This is the name of the Eloquent class to be generated. The class name should not contain
             the namespace part as it is specified in "Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple Eloquent classes will be generated.', 'baseClass' => 'This is the base class of the new Eloquent class. It should be a fully qualified namespaced class name.', 'generateRelations' => 'This indicates whether the generator should generate relations based on
             foreign key constraints it detects in the database. Note that if your database contains too many tables,
             you may want to uncheck this option to accelerate the code generation process.', 'generateLabelsFromComments' => 'This indicates whether the generator should generate attribute labels
             by using the comments of the corresponding DB columns.', 'useTablePrefix' => 'This indicates whether the table name returned by the generated Eloquent class
             should consider the <code>tablePrefix</code> setting of the DB connection. For example, if the
             table name is <code>tbl_post</code> and <code>tablePrefix=tbl_</code>, the Eloquent class
             will return the table name as <code>{{%post}}</code>.']);
 }
Example #13
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['path' => 'Specify the directory for storing the migration for your  block. You may use path alias here, e.g.,
             <code>@app/migrations</code>', 'pages' => 'Select pages for which you want to generate migration. You may select multiple pages.']);
 }
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['db' => 'This is the ID of the DB application component.', 'tableName' => 'Use "*" for all table, mask support - as "tablepart*", or you can separate table names by comma ', 'tableIgnore' => 'You can separate some table names by comma, for ignor ', 'templatePath' => 'Path for you templates/fixtures', 'datalimit' => '', 'genmode' => 'You can generate fixture templates or fixtures based on table data ']);
 }
Example #15
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['blockName' => 'You should set name for your block', 'blockModel' => 'You should provide a fully qualified class name, e.g., <code>nullref\\cms\\components\\Block</code>.', 'widgetModel' => 'You should provide a fully qualified class name, e.g., <code>nullref\\cms\\components\\Widget</code>.', 'destinationPath' => 'Specify the directory for storing the files for your new block. You may use path alias here, e.g.,
             <code>app\\components\\blocks\\newBlock</code>']);
 }
Example #16
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['tableName' => 'The Name of the new Table (will create migration m#####_####_create_TABLE_NAME)', 'includeDefaultColumns' => 'Default columns are defined in the configuration for the gii module', 'baseClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'columns' => 'The names of the columns', 'types' => 'Database Types like Yii versions of string, int, or database types such as varchar. See Yii values: <a href="http://www.yiiframework.com/doc-2.0/yii-db-schema.html">http://www.yiiframework.com/doc-2.0/yii-db-schema.html</a>']);
 }
Example #17
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class (e.g. <code>app\\controllers\\PostController</code>),
             and class name should be in CamelCase with an uppercase first letter. Make sure the class
             is using the same namespace as specified by your application\'s controllerNamespace property.', 'viewPath' => 'Specify the directory for storing the view scripts for the controller. You may use path alias here, e.g.,
             <code>/var/www/basic/controllers/views/post</code>, <code>@app/views/post</code>. If not set, it will default
             to <code>@app/views/ControllerID</code>', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.', 'actions' => 'Provide one or multiple action IDs to generate empty action method(s) in the controller. Separate multiple action IDs with commas or spaces.
             Action IDs should be in lower case. For example:
             <ul>
                 <li><code>index</code> generates <code>actionIndex()</code></li>
                 <li><code>create-order</code> generates <code>actionCreateOrder()</code></li>
             </ul>', 'nsSearchModel' => 'This is the namespace of the search model class to be generated, e.g., <code>app\\models</code>', 'nsController' => 'This is the namespace of the Controller class to be generated, e.g., <code>app\\controllers</code>']);
 }
Example #18
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the ActiveRecord class associated with the table that CRUD will be built upon.
             You should provide a fully qualified class name, e.g., <code>common\\models\\Work</code>.', 'pjax' => 'This indicates whether the generator should wrap the <code>GridView</code>
             widget on the index page with <code>yii\\widgets\\Pjax</code> widget. Set this to <code>true</code> if you want to get
             sorting, filtering and pagination without page refreshing.', 'condensed' => 'Whether the grid table will have a `condensed` style. Applicable only if `bootstrap` is `true`.', 'hover' => 'Whether the grid table will highlight row on `hover`. Applicable only if `bootstrap` is `true`.', 'showPageSummary' => 'Whether to show the page summary row for the table. This will be displayed above the footer.', 'resizableColumns' => 'Whether to allow resizing of columns', 'floatHeader' => 'Whether the grid table will have a floating table header.', 'perfectScrollbar' => 'Whether pretty perfect scrollbars using perfect scrollbar plugin is to be used.', 'toggleData' => 'Whether to enable toggling of grid data. Defaults to `true`.', 'showHeader' => 'Whether to show the header section of the grid table.', 'bootstrap' => 'Whether the grid view will have Bootstrap table styling.', 'bordered' => 'Whether the grid table will have a `bordered` style. Applicable only if `bootstrap` is `true`.', 'striped' => 'Whether the grid table will have a `striped` style. Applicable only if `bootstrap` is `true`.', 'extraActions' => 'Provide one or multiple action IDs to generate empty action method(s) in the controller. Separate multiple action IDs with commas or spaces.
             Action IDs should be in lower case. For example:
             <ul>
                 <li><code>index</code> generates <code>actionIndex()</code></li>
                 <li><code>create-order</code> generates <code>actionCreateOrder()</code></li>
             </ul>']);
 }
Example #19
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['path' => 'Specify the directory for storing the migration for your  block. You may use path alias here, e.g.,
             <code>@app/migrations</code>']);
 }
Example #20
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'Model类,与数据库表关联,需要填写完整名称空间,比如: <code>app\\models\\Post</code>.', 'controllerClass' => 'Controller类,需要填写完整名称空间,比如: (<code>app\\controllers\\PostController</code>),
             第一个字母需要大写. 并且以"Controller"结尾.', 'viewPath' => '视图文件目录,可以指定一个视图文件目录,比如:
             <code>/var/www/basic/controllers/views/post</code>.如果不填,将默认为:<code>@app/views/ControllerID</code>', 'baseControllerClass' => '给生成的Controller指定一个父类,必须填写完整名称空间比如:, <code>yii\\web\\Controller</code>.', 'searchModelClass' => 'ModelSearch类,继承Model类,用户查询,必须填写完整名称空间,比如: <code>app\\models\\PostSearch</code>.']);
 }
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return ArrayHelper::merge(parent::hints(), ['modelClass' => 'Class name of base model', 'strategy' => 'Merging strategy of existing fixtures', 'query' => 'You can use $modelClass variable in this expression']);
 }
Example #22
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['loginModelClass' => 'This is the model class for admin panel login form. You should provide a fully qualified class name, e.g., <code>app\\models\\admin\\LoginForm</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class (e.g. <code>app\\controllers\\admin\\SiteController</code>),
             and class name should be in CamelCase with an uppercase first letter. Make sure the class
             is using the same namespace as specified by your application\'s controllerNamespace property.', 'viewPath' => 'This is the root view path to keep the generated view files. You may provide either a directory or a path alias, e.g., <code>@app/views/admin</code>.', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.']);
 }
Example #23
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['db' => 'This is the ID of the DB application component.', 'tableName' => 'Use "*" for all table, mask support - as "tablepart*", or you can separate table names by comma ', 'tableIgnore' => 'You can separate some table names by comma, for ignor ', 'migrationPath' => 'Path for save migration file', 'usePrefix' => 'Use Table Prefix Replacer eg.{{%tablename}} instead of prefix_tablename', 'genmode' => 'All tables in separated files, or all in one file']);
 }
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['db' => 'This is the ID of the DB application component.', 'tableName' => 'This is the name of the DB table that the new ActiveRecord class is associated with, e.g. <code>post</code>.
             The table name may consist of the DB schema part if needed, e.g. <code>public.post</code>.
             The table name may end with asterisk to match multiple table names, e.g. <code>tbl_*</code>
             will match tables who name starts with <code>tbl_</code>. In this case, multiple ActiveRecord classes
             will be generated, one for each matching table name; and the class names will be generated from
             the matching characters. For example, table <code>tbl_post</code> will generate <code>Post</code>
             class.', 'nsTraits' => 'This is the namespace of the traits to be generated, e.g., <code>app\\traits</code>', 'nameAttribute' => 'This is the (set) of name column that you use to show as label, ' . 'separated by comma (,) for multiple table(asterisk on Table Name).', 'skippedColumns' => 'Fill this field with the column name that you dont want to generate form & labels for the table. 
             You can fill multiple columns, separated by comma (,). You may specify the column name
             although "Table Name" ends with asterisk, in which case all columns will not be generated at all models & CRUD.', 'hiddenColumns' => 'Fill this field with the column name that you want to generate form with the hidden field of the table. 
             You can fill multiple columns, separated by comma (,). You may specify the column name
             although "Table Name" ends with asterisk, in which case all columns will be generated with hidden field at the forms', 'nsModel' => 'This is the namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>', 'modelClass' => 'This is the name of the Model class to be generated. The class name should not contain
             the namespace part as it is specified in "Model Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.', 'baseModelClass' => 'This is the base class of the new ActiveRecord class. It should be a fully qualified namespaced class name.', 'nsSearchModel' => 'This is the namespace of the search model class to be generated, e.g., <code>app\\models</code>', 'searchModelClass' => 'This is the name of the search class to be generated. The class name should not contain
             the namespace part as it is specified in "Search Model Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple search model classes will be generated.', 'generateQuery' => 'This indicates whether to generate ActiveQuery for the ActiveRecord class.', 'generateLabelsFromComments' => 'This indicates whether the generator should generate attribute labels
             by using the comments of the corresponding DB columns.', 'useTablePrefix' => 'This indicates whether the table name returned by the generated ActiveRecord class
             should consider the <code>tablePrefix</code> setting of the DB connection. For example, if the
             table name is <code>tbl_post</code> and <code>tablePrefix=tbl_</code>, the ActiveRecord class
             will return the table name as <code>{{%post}}</code>.', 'generateSearchModel' => 'This indicates whether the generator should generate search model based on
             columns it detects in the database.', 'generateRelations' => 'This indicates whether the generator should generate relations based on
             foreign key constraints it detects in the database. Note that if your database contains too many tables,
             you may want to uncheck this option to accelerate the code generation process.', 'generateMigrations' => 'This indicates whether the generator should generate migrations based on
             table structure.', 'optimisticLock' => 'This indicates whether the generator should generate optimistic lock feature for Model. ' . 'Enter this field with optimistic lock column name. ' . 'Empty this field if you want to disable this feature.', 'createdAt' => 'This indicates whether the generator should generate Timestamp Behaviors feature for Model. ' . 'Enter this field with Created At column name. ' . 'Empty "Created At" & "Updated At" field if you want to disable this feature.', 'updatedAt' => 'This indicates whether the generator should generate Timestamp Behaviors feature for Model. ' . 'Enter this field with Updated At column name. ' . 'Empty "Created At" & "Updated At" field if you want to disable this feature.', 'timestampValue' => 'This will generate the </code>value</code> configuration entry for Timestamp Behaviors.  e.g., <code>new Expression(\'NOW()\')</code>', 'createdBy' => 'This indicates whether the generator should generate Blameable Behaviors feature for Model. ' . 'Enter this field with Created By column name. ' . 'Empty "Created By" & "Updated By" field if you want to disable this feature.', 'updatedBy' => 'This indicates whether the generator should generate Blameable Behaviors feature for Model. ' . 'Enter this field with Updated By column name. ' . 'Empty "Created By" & "Updated By" field if you want to disable this feature.', 'blameableValue' => 'This will generate the </code>value</code> configuration entry for Blameable Behaviors.  e.g., <code>new Expression(\'NOW()\')</code>', 'UUIDColumn' => 'This indicates whether the generator should generate UUID Behaviors feature for Model. ' . 'Enter this field with UUID column name. ' . 'Empty "UUID Column" field if you want to disable this feature.', 'deletedBy' => 'This indicates whether the generator should generate Soft Delete feature for Model. ' . 'Enter this field with Deleted By column name. ' . 'Empty "Deleted By" & "Deleted At" field if you want to disable this feature.', 'deletedAt' => 'This indicates whether the generator should generate Soft Delete feature for Model. ' . 'Enter this field with Updated By column name. ' . 'Empty "Deleted By" & "Deleted At" field if you want to disable this feature.', 'nsController' => 'This is the namespace of the Controller class to be generated, e.g., <code>app\\controllers</code>', 'controllerClass' => 'This is the name of the Controller class to be generated. The class name should not contain
             the namespace part as it is specified in "Controller Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple Controller classes will be generated.', 'nsModel' => 'This is the namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>', 'pluralize' => 'Set the generator to generate pluralize for label', 'expandable' => 'Set the generator to generate expandable/collapsible row for related at index', 'exportable' => 'Set the generator to generate exportable data for Grid View at index', 'pdf' => 'Set the generator to generate printable PDF generator at view', 'viewPath' => 'Specify the directory for storing the view scripts for the controller. You may use path alias here, e.g.,
             <code>/var/www/basic/controllers/views/post</code>, <code>@app/views/post</code>. If not set, it will default
             to <code>@app/views/ControllerID</code>', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.', 'skippedRelations' => 'Fill this field with the relation name that you dont want to generate CRUD for the table. 
             You can fill multiple relations, separated by comma (,). You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case all relations will be generated.', 'indexWidgetType' => 'This is the widget type to be used in the index page to display list of the models.
             You may choose either <code>GridView</code> or <code>ListView</code>', 'modelClass' => 'This is the name of the Model class to be generated. The class name should not contain
             the namespace part as it is specified in "Model Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveRecord classes will be generated.', 'queryNs' => 'This is the namespace of the ActiveQuery class to be generated, e.g., <code>app\\models</code>', 'queryClass' => 'This is the name of the ActiveQuery class to be generated. The class name should not contain
             the namespace part as it is specified in "ActiveQuery Namespace". You do not need to specify the class name
             if "Table Name" ends with asterisk, in which case multiple ActiveQuery classes will be generated.', 'queryBaseClass' => 'This is the base class of the new ActiveQuery class. It should be a fully qualified namespaced class name.']);
 }
Example #25
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the model class for collecting the form input. You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'viewName' => 'This is the view name with respect to the view path. For example, <code>site/index</code> would generate a <code>site/index.php</code> view file under the view path.', 'viewPath' => 'This is the root view path to keep the generated view files. You may provide either a directory or a path alias, e.g., <code>@app/views</code>.', 'scenarioName' => 'This is the scenario to be used by the model when collecting the form input. If empty, the default scenario will be used.']);
 }
Example #26
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the name of the ActiveRecord class. <code>app\\models\\Post</code>', 'formModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostForm</code>.', 'baseClass' => 'This is the base class of the new Model class. It should be a fully qualified namespaced class name.', 'searchModelClass' => 'This is the name of the search model class to be generated. You should provide a fully
             qualified namespaced class name, e.g., <code>app\\models\\PostSearch</code>.', 'controllerClass' => 'This is the name of the controller class to be generated. You should
             provide a fully qualified namespaced class (e.g. <code>app\\controllers\\PostController</code>),
             and class name should be in CamelCase with an uppercase first letter. Make sure the class
             is using the same namespace as specified by your application\'s controllerNamespace property.', 'baseControllerClass' => 'This is the class that the new CRUD controller class will extend from.
             You should provide a fully qualified class name, e.g., <code>yii\\web\\Controller</code>.']);
 }
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['modelClass' => 'This is the model class. You should provide a fully qualified class name, e.g., <code>app\\models\\Post</code>.', 'fixtureClass' => 'This is the name for fixture class, e.g., <code>PostFixture</code>.', 'fixtureNs' => 'This is the namespace for fixture class file, e.g., <code>tests\\codeception\\fixtures</code>.', 'dataFile' => 'This is the name for the generated fixture data file, e.g., <code>post.php</code>.', 'dataPath' => 'This is the root path to keep the generated fixture data files. You may provide either a directory or a path alias, e.g., <code>@tests/codeception/fixtures/data</code>.', 'grabData' => 'If checked, the existed data from database will be grabbed into data file.']);
 }
Example #28
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the namespace of the controllers. If not set, it will default
             to <code>backend\\controllers</code>', 'defaultController' => 'Specify the default controller, e.g. <code>SiteController</code>.', 'layoutsPath' => 'Specify the directory for storing the view script for main layout. If not set, it will default
             to <code>@backend/views/layouts</code>']);
 }