mootensai\enhancedgii\crud\Generator::hints PHP Method

hints() public method

public hints ( )
    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.', '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', 'cancelable' => 'Set the generator to generate cancel button to return to grid view at form', '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.', 'saveAsNew' => 'Creates a new model by another data, so user don\'t need to input all field from scratch.']);
    }