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


PHP ActiveRecord::attributeLabels方法代码示例

本文整理汇总了PHP中ActiveRecord::attributeLabels方法的典型用法代码示例。如果您正苦于以下问题:PHP ActiveRecord::attributeLabels方法的具体用法?PHP ActiveRecord::attributeLabels怎么用?PHP ActiveRecord::attributeLabels使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ActiveRecord的用法示例。


在下文中一共展示了ActiveRecord::attributeLabels方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: attributeLabels

 public function attributeLabels()
 {
     return CMap::mergeArray(parent::attributeLabels(), array('password_c' => t('Повторите пароль'), 'remember_me' => t('Запомнить меня')));
 }
开发者ID:blindest,项目名称:Yii-CMS-2.0,代码行数:4,代码来源:User.php

示例2: attributeLabels

 public function attributeLabels()
 {
     $labels = parent::attributeLabels();
     $labels['roles'] = 'Отображается для групп пользователей';
     $labels['date_active'] = 'Активировать по заданной дате';
     return $labels;
 }
开发者ID:blindest,项目名称:Yii-CMS-2.0,代码行数:7,代码来源:Banner.php

示例3: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     $this->_attrLabels = array('name' => Yii::t('ShopModule.core', 'Название'), 'full_path' => Yii::t('ShopModule.core', 'Полный путь'), 'description' => Yii::t('ShopModule.core', 'Описание'), 'image' => Yii::t('ShopModule.core', 'Изображение'));
     return CMap::mergeArray($this->_attrLabels, parent::attributeLabels());
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:8,代码来源:ShopCategory.php

示例4: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     $this->_attrLabels = array('id' => 'ID', 'order_id' => 'Order', 'user_id' => 'User', 'username' => 'Username', 'handler' => 'Handler', 'data_before' => 'Data Before', 'data_after' => 'Data After');
     return CMap::mergeArray($this->_attrLabels, parent::attributeLabels());
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:8,代码来源:OrderHistory.php

示例5: attributeLabels

 public function attributeLabels()
 {
     return CMap::mergeArray(array('manufacturers' => Yii::t('DiscountsModule.ShopDiscount', 'MANUFACTURERS'), 'userRoles' => Yii::t('DiscountsModule.ShopDiscount', 'USER_ROLES')), parent::attributeLabels());
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:4,代码来源:ShopDiscount.php

示例6: attributeLabels

 public function attributeLabels()
 {
     return CMap::mergeArray(parent::attributeLabels(), array('sections_ids' => t('Разделы'), 'tags' => t('Теги'), 'sports_ids' => t('Вид спорта')));
 }
开发者ID:blindest,项目名称:Yii-CMS-2.0,代码行数:4,代码来源:Page.php

示例7: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     $this->_attrLabels = array();
     return CMap::mergeArray($this->_attrLabels, parent::attributeLabels());
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:8,代码来源:Comments.php

示例8: attributeLabels

 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array(
         "password_c"   => "Пароль еще раз",
         "remember_me"  => "Запомни меня",
         "role"         => "Роль"
     ));
 }
开发者ID:nizsheanez,项目名称:kur.ru,代码行数:8,代码来源:User.php

示例9: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     $this->_attrLabels = array('id' => 'ID', 'name' => Yii::t('CartModule.core', 'Название'), 'sum' => Yii::t('CartModule.core', 'Скидка'));
     return CMap::mergeArray($this->_attrLabels, parent::attributeLabels());
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:8,代码来源:OrderProductHistroy.php

示例10: attributeLabels

 public function attributeLabels()
 {
     return CMap::mergeArray(parent::attributeLabels(), ['roles' => 'Группы пользователей', 'url_info' => 'Куда будет вести этот пункт меню']);
 }
开发者ID:blindest,项目名称:Yii-CMS-2.0,代码行数:4,代码来源:MenuSection.php

示例11: attributeLabels

 public function attributeLabels()
 {
     return CMap::mergeArray(parent::attributeLabels(), array('body' => 'Содержание письма'));
 }
开发者ID:blindest,项目名称:Yii-CMS-2.0,代码行数:4,代码来源:MailerTemplate.php


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