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


PHP ActiveRecord::afterFind方法代码示例

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


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

示例1: afterFind

 protected function afterFind()
 {
     if ($this->protected_ip) {
         $this->protected_ip = json_decode($this->protected_ip, TRUE);
     }
     parent::afterFind();
 }
开发者ID:mmorpg2015,项目名称:ghtweb5,代码行数:7,代码来源:UserProfiles.php

示例2: afterFind

 public function afterFind()
 {
     $this->cost = number_format($this->cost / 100, 2, '.', ',');
     $this->timestamp = gmdate('dS-M-Y', $this->timestamp);
     $this->service_status = $this->service_status === '1' ? "Active" : "Inactive";
     return parent::afterFind();
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:7,代码来源:Services.php

示例3: afterFind

 public function afterFind()
 {
     $this->service_name = $this->getName($this->service_id);
     $this->amount_charged = $this->getAmountName($this->service_id);
     $this->timestamp = gmdate("Y-m-d H:i:s", $this->timestamp);
     return parent::afterFind();
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:7,代码来源:Terminations.php

示例4: afterFind

 public function afterFind()
 {
     parent::afterFind();
     $this->useLdap = Yii::app()->user->useLdap;
     $this->getRoles();
     return true;
 }
开发者ID:reggi49,项目名称:plansys,代码行数:7,代码来源:User.php

示例5: afterFind

 protected function afterFind()
 {
     //            $from=DateTime::createFromFormat('Y-m-d',$this->DateGet);
     //            $this->DateGet=$from->format('d.m.Y');
     parent::afterFind();
     return true;
 }
开发者ID:upmunspel,项目名称:abiturient,代码行数:7,代码来源:Documentsubject.php

示例6: afterFind

 public function afterFind()
 {
     parent::afterFind();
     $this->subscribed = Yii::app()->nfy->isSubscribed($this->id) ? "on" : "";
     $this->useLdap = Yii::app()->user->useLdap;
     $this->getRoles();
     return true;
 }
开发者ID:balitax,项目名称:plansys,代码行数:8,代码来源:User.php

示例7: afterFind

 public function afterFind()
 {
     parent::afterFind();
     if (get_class(Yii::app()) != "CConsoleApplication") {
         $this->useLdap = Yii::app()->user->useLdap;
         $this->getRoles();
     }
     return true;
 }
开发者ID:rizabudi,项目名称:plansys,代码行数:9,代码来源:User.php

示例8: afterFind

 function afterFind()
 {
     parent::afterFind();
     $this->_widget = unserialize($this->widget);
     $this->_rules = unserialize($this->rules);
     $this->_automodel = unserialize($this->automodel);
     $this->widget = Spyc::YAMLDump($this->_widget);
     $this->rules = Spyc::YAMLDump($this->_rules);
     $this->automodel = Spyc::YAMLDump($this->_automodel);
 }
开发者ID:hiproz,项目名称:mincms,代码行数:10,代码来源:NodeField.php

示例9: afterFind

 public function afterFind()
 {
     if ($this->expire > 0) {
         if ($this->action && $this->expire < time()) {
             if ($this->action == "update") {
                 Yii::app()->db->createCommand()->update('blocks', array('switch' => 0, 'expire' => 0), 'id=:id', array(':id' => (int) $this->id));
             } elseif ($this->action == "delete") {
                 Yii::app()->db->createCommand()->delete('blocks', 'id=:id', array(':id' => (int) $this->id));
             }
         }
     }
     parent::afterFind();
 }
开发者ID:buildshop,项目名称:bs-common,代码行数:13,代码来源:BlocksModel.php

示例10: afterFind

 protected function afterFind()
 {
     //if (empty($this->KOATUUCodeL1ID)) $this->KOATUUCodeL1ID = 105572;
     //if (empty($this->KOATUUCodeL2ID)) $this->KOATUUCodeL2ID = 105574;
     //if (empty($this->KOATUUCodeL3ID)) $this->KOATUUCodeL3ID = 105576;
     if ($this->Birthday == "0000-00-00") {
         $this->Birthday = "01.01.1995";
     } else {
         $this->Birthday = date("d.m.Y", strtotime($this->Birthday));
     }
     $this->CreateDate = date("d.m.Y", strtotime($this->CreateDate));
     parent::afterFind();
     return true;
 }
开发者ID:upmunspel,项目名称:abiturient,代码行数:14,代码来源:Person.php

示例11: afterFind

 public function afterFind()
 {
     $this->person = $this->getPerson($this->person_id);
     $this->location = $this->getLocation($this->location_id);
     $this->department = $this->getDepartment($this->dept_id);
     $this->level = $this->getLevel($this->level_id);
     return parent::afterFind();
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:8,代码来源:Staff.php

示例12: afterFind

 public function afterFind()
 {
     $this->name = $this->first_name . " " . $this->last_name;
     if (!empty($this->birthdate)) {
         $this->birthdate_day = Common::formatDate($this->birthdate, 'd');
         $this->birthdate_month = Common::formatDate($this->birthdate, 'm');
         $this->birthdate_year = Common::formatDate($this->birthdate, 'Y');
     }
     return parent::afterFind();
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:10,代码来源:Person.php

示例13: afterFind

 public function afterFind()
 {
     $this->client = $this->getClient($this->client_id);
     return parent::afterFind();
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:5,代码来源:Syncorder.php

示例14: afterFind

 public function afterFind()
 {
     $this->dept_id = $this->getDeptId($this->id);
     $this->role = $this->getRole($this->role_id);
     return parent::afterFind();
 }
开发者ID:jacjimus,项目名称:furahia_mis,代码行数:6,代码来源:Users.php

示例15: afterFind

 public function afterFind()
 {
     parent::afterFind();
     $this->_mainImageFileName = $this->main_image ? $this->main_image->file_name : null;
 }
开发者ID:Wiedzal,项目名称:narisuemvse,代码行数:5,代码来源:ShopProducts.php


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