public function afterFind() { $date = new DateTime(); $date->setTimestamp($this->date); $this->date = $date->format('Y-m-d H:i:s'); return parent::afterFind(); }
public function afterFind() { parent::afterFind(); if ($this->date != null) { $this->date = Yii::app()->dateFormatter->format("dd.MM.yyyy", $this->date); } }
/** * Метод после поиска: * * @return void */ public function afterFind() { if ($this->birth_date !== null) { $this->birth_date = date('d.m.Y', strtotime($this->birth_date)); } if ($this->birth_time !== null) { $this->birth_time = date('H:i', strtotime($this->birth_time)); } return parent::afterFind(); }
public function afterFind() { parent::afterFind(); if ($this->datetime_start != null && strtotime($this->datetime_start) > 0) { $this->date_start = date('d.m.Y', strtotime($this->datetime_start)); $this->time_start = date('H:i', strtotime($this->datetime_start)); } if ($this->datetime_end != null && strtotime($this->datetime_end) > 0) { $this->date_end = date('d.m.Y', strtotime($this->datetime_end)); $this->time_end = date('H:i', strtotime($this->datetime_end)); } }
public function afterFind() { $this->date = date('d-m-Y', strtotime($this->date)); return parent::afterFind(); }
public function afterFind() { parent::afterFind(); // Формирование массива данных if (!empty($this->resultData)) { $data = array(); foreach ($this->resultData as $dataItem) { $variable = $dataItem->variable; $info = array('result_id' => $dataItem->result_id, 'operation' => $dataItem->operation, 'parent_variable' => $dataItem->parent_variable, 'variable' => $dataItem->variable, 'place' => $dataItem->place, 'place_title' => $dataItem->placeObject->title, 'attribute' => array('code' => $dataItem->attribute, 'title' => $dataItem->attributeObject->title)); if ($dataItem->parent_variable == '') { $info['subconditions'] = array(); $data[$variable] = $info; } else { $data[$dataItem->parent_variable]['subconditions'][$dataItem->variable] = $info; } } // Сортируем субвспомогательные условия в натуральном порядке по ключам foreach ($data as $key => &$condition) { if (!empty($condition['subconditions'])) { $subconditions = $condition['subconditions']; $this->_natksort($subconditions); $condition['subconditions'] = $subconditions; } } $this->data = $data; } $this->_oldAttributeCode = $this->data['A']['attribute']['code']; }
/** * Метод после поиска: * * @return void */ public function afterFind() { $this->_oldStatus = $this->status; return parent::afterFind(); }
/** * after find event: * * @return parent::afterFind() **/ public function afterFind() { $this->publish_date = date('d-m-Y H:i', $this->publish_date); return parent::afterFind(); }
/** * */ public function afterFind() { $this->oldAttributes = $this->getAttributes(); parent::afterFind(); }
/** * @inheritdoc */ public function afterFind() { $this->tags = $this->getTags(); $this->publish_time = date('d-m-Y H:i', $this->publish_time); parent::afterFind(); }
public function afterFind() { $this->finishPlacesArray = CJSON::decode($this->finish_places); $this->finishAttributesArray = CJSON::decode($this->finish_attributes); $this->placesArray = CJSON::decode($this->places); $this->attributesArray = CJSON::decode($this->attributes); //$this->cellsArray = CJSON::decode($this->cells); return parent::afterFind(); }
public function afterFind() { $this->payment_methods = array_map(function ($x) { return $x->id; }, $this->paymentMethods); parent::afterFind(); }
public function afterFind() { $this->_paymentSettings = unserialize($this->settings); parent::afterFind(); }
/** * Метод после поиска: * * @return void */ public function afterFind() { $this->_oldAccess_level = $this->access_level; $this->_oldStatus = $this->status; parent::afterFind(); }
public function afterFind() { $this->start_time = !$this->start_time ? '' : date('Y-m-d', strtotime($this->start_time)); $this->end_time = !$this->end_time ? '' : date('Y-m-d', strtotime($this->end_time)); parent::afterFind(); }
public function afterFind() { parent::afterFind(); if ($this->date !== null) { $this->date = date('d.m.Y', strtotime($this->date)); } }
/** * Метод после поиска: * * @return void */ public function afterFind() { $this->_oldAccess_level = $this->access_level; $this->_oldStatus = $this->status; // Если пустое поле аватар - автоматически // включаем граватар: $this->use_gravatar = empty($this->avatar); parent::afterFind(); }
public function afterFind() { parent::afterFind(); $this->cases = explode(';', $this->cases_str); }