hints() public method

public hints ( )
コード例 #1
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['queryNs' => 'The namespace/directory in which the ActiveQuery class is beeing generated in.', 'includeTimestampBehavior' => 'Automatically includes a timestamp behavior to set the created_at and
             updated_at fields automatically. This option will also modify the rules accordingly.', 'createdColumnName' => 'The column name of the field that is set to the current time when a new record is
             added.', 'updatedColumnName' => 'The column name of the field that is set to the current time when a new record is
             added or an existing record is updated.']);
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['generateExtendedModelClass' => 'This indicates whether the generator should generate the Extended Model Class', 'generateNMRelatedFunction' => 'If checked the function <code>getColumnFromRelation</code> will be generated
             This function is used to select a column of a NM table. This function must be created on the class that
             is the primary on a relation. I.e.: On <code>Job</code> table, we can check this option to retrieve all
             the <code>Tags</code> from job_tag table.']);
 }
コード例 #3
0
ファイル: Generator.php プロジェクト: dlds/yii2-giixer
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the default namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>. It is used when no static (predefind) namespace is found', '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>.']);
 }
コード例 #4
0
ファイル: Generator.php プロジェクト: elitedivision/amos-core
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['generateModelClass' => 'This indicates whether the generator should generate the model class, this should usually be done only once. The model-base class is always generated.', 'tablePrefix' => 'Custom table prefix, eg <code>app_</code>.<br/><b>Note!</b> overrides <code>yii\\db\\Connection</code> prefix!']);
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['baseNs' => 'This is the namespace of the base ActiveRecord class to be generated, e.g., <code>app\\models\\base</code>']);
 }
コード例 #6
0
ファイル: Generator.php プロジェクト: andydodot/yii2-dodotgii
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['generateModelClass' => 'This indicates whether the generator should generate the model class, this should usually be done only once. The model-base class is always generated.', 'tablePrefix' => 'Custom table prefix, eg <code>app_</code>.<br/><b>Note!</b> overrides <code>yii\\db\\Connection</code> prefix!', '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>']);
 }
コード例 #7
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['generateModelClass' => 'This indicates whether the generator should generate the model class, this should usually be done only once. The model-base class is always generated.', 'tablePrefix' => 'Custom table prefix, eg <code>app_</code>.<br/><b>Note!</b> overrides <code>yii\\db\\Connection</code> prefix!', 'useTranslatableBehavior' => 'Use <code>2amigos/yii2-translateable-behavior</code> for tables with a relation to a translation table.', 'languageTableName' => 'The name of the table containing the translations. <code>{{table}}</code> will be replaced with the value in "Table Name" field.', 'languageCodeColumn' => 'The column name where the language code is stored.']);
 }
コード例 #8
0
ファイル: Generator.php プロジェクト: tolik505/bl
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['createBaseModel' => 'Create base model in related <code>base\\</code> path with your code, with you can edit', 'hideExistingBaseModel' => 'Do not propose to generate existing base models files']);
 }
コード例 #9
0
ファイル: Generator.php プロジェクト: schmunk42/yii2-giiant
 /**
  * {@inheritdoc}
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['generateModelClass' => 'This indicates whether the generator should generate the model class, this should usually be done only once. The model-base class is always generated.', 'tablePrefix' => 'Custom table prefix, eg <code>app_</code>.<br/><b>Note!</b> overrides <code>yii\\db\\Connection</code> prefix!', 'useTranslatableBehavior' => 'Use <code>2amigos/yii2-translateable-behavior</code> for tables with a relation to a translation table.', 'languageTableName' => 'The name of the table containing the translations. <code>{{table}}</code> will be replaced with the value in "Table Name" field.', 'languageCodeColumn' => 'The column name where the language code is stored.', 'generateHintsFromComments' => 'This indicates whether the generator should generate attribute hints
                 by using the comments of the corresponding DB columns.', 'useTimestampBehavior' => 'Use <code>TimestampBehavior</code> for tables with column(s) for created at and/or updated at timestamps.', 'createdAtColumn' => 'The column name where the created at timestamp is stored.', 'updatedAtColumn' => 'The column name where the updated at timestamp is stored.', 'useBlameableBehavior' => 'Use <code>BlameableBehavior</code> for tables with column(s) for created by and/or updated by user IDs.', 'createdByColumn' => "The column name where the record creator's user ID is stored.", 'updatedByColumn' => "The column name where the record updater's user ID is stored."], SaveForm::hint());
 }
コード例 #10
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), []);
 }
コード例 #11
0
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['useMessages' => 'This indicates whether getters and setters for relations with SourceMessage table should be generated. In true case
             relations will be generated in get-set way instead of default']);
 }
コード例 #12
0
 public function hints()
 {
     return array_merge(parent::hints(), ['iconName' => 'Name of the font-awesome icon (without "fa-")']);
 }
コード例 #13
0
ファイル: Generator.php プロジェクト: dlds/yii2-giixer
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['ns' => 'This is the default namespace of the ActiveRecord class to be generated, e.g., <code>app\\models</code>. It is used when no static (predefind) namespace is found', '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>.', 'generateMutation' => 'This indicates whether the generator should generate relation model between application language table (model) and generating model.', 'mutationJoinTableName' => 'This is the of "Mapping" table representing the many-to-many relationship between application languages and generating model.', 'mutationSourceTableName' => 'This is the name of the source table holds application languages used in many-to-many relationship.', 'mutationIgnoredFormAttributes' => 'One or more mutation join table attributes which will be ignored in create/update form. Divided by comma (attr1, attr2, ...)', 'generateSluggableBehavior' => 'This indicates whether the generator should generate Yii2 Sluggable behavior in main model class.', 'sluggableBehaviorTargetAttribute' => 'This is the name of the table attribute which should be used as target where generated slug will be stored.', 'sluggableBehaviorSourceAttribute' => 'This is the name of the table attribute which should be used as source for generating slug.', 'generateTimestampBehavior' => 'This indicates whether the generator should generate Yii2 Timestamp behavior in main model class.', 'timestampCreatedAtAttribute' => 'This is the name of the table attribute which should be used as created at timestamp value.', 'timestampUpdatedAtAttribute' => 'This is the name of the table attribute which should be used as updated at timestamp value.', 'generateSortableBehavior' => 'This indicates whether the generator should generate Dlds Sortable behavior in main model class.', 'sortableColumnAtAttribute' => 'This is the name of the table attribute which should be used as sortable column.', 'sortableIndexAtAttribute' => 'This is the name of the attribute which will hold sortable values in sortable element.', 'sortableRestrictionsAtAttribute' => 'This holds custom sortable restrictions array rule.', 'sortableKeyAtAttribute' => 'This defines table primary key if is different from standart.', 'timestampUpdatedAtAttribute' => 'This is the name of the table attribute which should be used as updated at timestamp value.', 'generateGalleryBehavior' => 'This indicates whether the generator should generate dlds/yii2-gallerymanager behavior in main model class.']);
 }
コード例 #14
0
ファイル: Generator.php プロジェクト: netis-pl/yii2-crud
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['singularModelClass' => 'If checked, will generate singular model class from a plural table name.', 'searchModelClass' => 'This is the name of the search model class to be generated.', 'searchNs' => 'This is the namespace of the ActiveSearch class
             to be generated, e.g., <code>app\\models</code>']);
 }
コード例 #15
0
ファイル: Generator.php プロジェクト: guillemc/yii2starter
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['labelField' => 'Field to serve as the model label. E.g. title, name, username, etc. ' . 'Multiple fields are allowed, separated by commas. In this case the first matching field will be the one to be used.', 'timestampFields' => 'Fields that act as timestamps. E.g. created_at, updated_at. ' . 'No rules will be generated for these fields.']);
 }
コード例 #16
0
ファイル: Generator.php プロジェクト: webvimark/generators
 /**
  * @inheritdoc
  */
 public function hints()
 {
     return array_merge(parent::hints(), ['tPrefix' => 'For example <code>PageModule</code>']);
 }