Example #1
0
 public function afterFind()
 {
     $this->oldRefId = $this->reference_category_id;
     parent::afterFind();
 }
Example #2
0
 public function afterFind()
 {
     // $dateFormat = param('dateFormat', 'd.m.Y H:i:s');
     $this->dateCreatedFormat = Yii::app()->dateFormatter->format(Yii::app()->locale->getDateFormat('long'), CDateTimeParser::parse($this->date_created, 'yyyy-MM-dd hh:mm:ss'));
     parent::afterFind();
 }
Example #3
0
 protected function afterFind()
 {
     $dateFormat = param('blogModule_dateFormat', 0) ? param('blogModule_dateFormat') : param('dateFormat', 'd.m.Y H:i:s');
     $this->dateCreated = date($dateFormat, strtotime($this->date_created));
     $this->dateCreatedLong = Yii::app()->dateFormatter->format(Yii::app()->locale->getDateFormat('long'), CDateTimeParser::parse($this->date_created, 'yyyy-MM-dd hh:mm:ss'));
     return parent::afterFind();
 }
Example #4
0
 protected function afterFind()
 {
     $dateFormat = param('commentModule_dateFormat', 0) ? param('commentModule_dateFormat') : param('dateFormat', 'd.m.Y H:i:s');
     $this->dateCreated = date($dateFormat, strtotime($this->date_created));
     return parent::afterFind();
 }
Example #5
0
 protected function afterFind()
 {
     // создаем зависимые модели
     $this->createPayModel();
     return parent::afterFind();
 }
Example #6
0
 public function afterFind()
 {
     if (!isFree()) {
         $this->in_currency = Currency::getDefaultCurrencyModel()->char_code;
     } else {
         $this->in_currency = param('siteCurrency', '$');
     }
     if ($this->activity_always) {
         $this->period_activity = 'always';
     } else {
         $this->period_activity = param('apartment_periodActivityDefault', 'always');
     }
     return parent::afterFind();
 }