本文整理汇总了PHP中yii\gii\Generator::attributeHints方法的典型用法代码示例。如果您正苦于以下问题:PHP Generator::attributeHints方法的具体用法?PHP Generator::attributeHints怎么用?PHP Generator::attributeHints使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\gii\Generator
的用法示例。
在下文中一共展示了Generator::attributeHints方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: attributeHints
public function attributeHints()
{
return ArrayHelper::merge(parent::attributeHints(), []);
}
示例2: hints
/**
* @inheritdoc
*/
public function hints()
{
return ArrayHelper::merge(parent::attributeHints(), ['indexFormat' => 'The format for naming the indices. <br />Keys: <ul><li>{{table}}: the table the index is created on</li><li>{{index}}: the unique name of the index, made up from the column names</li></ul>', 'foreignKeyFormat' => 'The format for naming the foreign keys. <br />Keys: <ul><li>{{table}}: the table the foreign key is created on</li><li>{{ref_table}}: the unique name of the foreign key, made up from the referenced table and column name</li></ul>', 'db' => 'The name of the Database component', 'baseClass' => 'The is the base class of the new migration. It should be a fully qualified namespaced class name.', 'usePrefix' => '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>.', 'safe' => 'If checked, the migration will use the <code>safeUp(); safeDown();</code> functions, instead of <code>up(); down();</code> ones.', 'migrationName' => 'Short name for the migration.', 'migrationPath' => 'Path of the folder containing the migrations.']);
}