当前位置: 首页>>代码示例>>PHP>>正文


PHP Generator::attributeHints方法代码示例

本文整理汇总了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(), []);
 }
开发者ID:infinitydevphp,项目名称:infinity-gii,代码行数:4,代码来源:Generator.php

示例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.']);
 }
开发者ID:blumster,项目名称:yii2-gii-migration-designer,代码行数:7,代码来源:Generator.php


注:本文中的yii\gii\Generator::attributeHints方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。