public function afterFind() { $this->oldRefId = $this->reference_category_id; parent::afterFind(); }
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(); }
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(); }
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(); }
protected function afterFind() { // создаем зависимые модели $this->createPayModel(); return parent::afterFind(); }
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(); }