本文整理汇总了PHP中yii\gii\Generator::stickyAttributes方法的典型用法代码示例。如果您正苦于以下问题:PHP Generator::stickyAttributes方法的具体用法?PHP Generator::stickyAttributes怎么用?PHP Generator::stickyAttributes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类yii\gii\Generator
的用法示例。
在下文中一共展示了Generator::stickyAttributes方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* @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]);
}
}
}
示例2: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['viewPath', 'scenarioName']);
}
示例3: stickyAttributes
public function stickyAttributes()
{
return ArrayHelper::merge(parent::stickyAttributes(), ['db', 'migrationPath']);
}
示例4: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['ns', 'db', 'baseClass', 'generateRelations', 'generateLabelsFromComments']);
}
示例5: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['db', 'migrationPath', 'usePrefix', 'tableIgnore']);
}
示例6: stickyAttributes
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['moduleDir']);
}
示例7: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['migrationPath', 'db', 'useTablePrefix', 'tableOptions', 'useSafe', 'migrationDataType', 'dropTable']);
}
示例8: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['db', 'templatePath', 'tableIgnore']);
}
示例9: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['db', 'skippedColumns', 'hiddenColumns', 'nameAttribute', 'nsModel', 'nsSearchModel', 'nsController', 'nsTraits', 'baseModelClass', 'queryNs', 'queryBaseClass', 'optimisticLock', 'createdBy', 'updatedBy', 'deletedBy', 'createdAt', 'timestampValue', 'updatedAt', 'deletedAt', 'blameableValue', 'UUIDColumn', 'baseControllerClass', 'indexWidgetType', 'viewPath']);
}
示例10: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['baseModelClass']);
}
示例11: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return ArrayHelper::merge(parent::stickyAttributes(), ['indexFormat', 'foreignKeyFormat', 'migrationPath', 'db', 'baseClass']);
}
示例12: stickyAttributes
/**
* @inheritdoc
*/
public function stickyAttributes()
{
return array_merge(parent::stickyAttributes(), ['ns', 'db', 'baseClass', 'generateRelations', 'generateLabelsFromComments', 'queryNs', 'queryBaseClass', 'addingI18NStrings', 'messagesPaths', 'imagesPath', 'imagesDomain']);
}