protected function afterFind() { if ($this->protected_ip) { $this->protected_ip = json_decode($this->protected_ip, TRUE); } parent::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(); }
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(); }
public function afterFind() { parent::afterFind(); $this->useLdap = Yii::app()->user->useLdap; $this->getRoles(); return true; }
protected function afterFind() { // $from=DateTime::createFromFormat('Y-m-d',$this->DateGet); // $this->DateGet=$from->format('d.m.Y'); parent::afterFind(); return true; }
public function afterFind() { parent::afterFind(); $this->subscribed = Yii::app()->nfy->isSubscribed($this->id) ? "on" : ""; $this->useLdap = Yii::app()->user->useLdap; $this->getRoles(); return true; }
public function afterFind() { parent::afterFind(); if (get_class(Yii::app()) != "CConsoleApplication") { $this->useLdap = Yii::app()->user->useLdap; $this->getRoles(); } return true; }
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); }
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(); }
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; }
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(); }
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(); }
public function afterFind() { $this->client = $this->getClient($this->client_id); return parent::afterFind(); }
public function afterFind() { $this->dept_id = $this->getDeptId($this->id); $this->role = $this->getRole($this->role_id); return parent::afterFind(); }
public function afterFind() { parent::afterFind(); $this->_mainImageFileName = $this->main_image ? $this->main_image->file_name : null; }
public function afterFind() { $this->setApi($this->api_name); parent::afterFind(); }
protected function afterFind() { if (!empty($this->DateGet) && $this->DateGet != "1970-01-01") { $from = DateTime::createFromFormat('Y-m-d', $this->DateGet); $this->DateGet = $from->format('d.m.Y'); } else { $this->DateGet = NULL; } if (!empty($this->ZNOPin)) { $this->ZNOPin = str_pad($this->ZNOPin, 4, "0", STR_PAD_LEFT); } parent::afterFind(); return true; }
public function afterFind() { parent::afterFind(); $this->url_info = $this->page_id ? 'page:' . $this->page_id : 'module:' . $this->module_id . ':' . $this->module_url; }
public function afterFind() { parent::afterFind(); $this->imageBehaviorAttribute = $this->file_name; }
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 (!empty($this->idPreuniGroup)) { $ps = Specialities::model()->findByPk($this->idPreuniGroup); $this->FacultetID = $ps->facultet->idFacultet; $this->EducationFormID = $ps->eduform->idPersonEducationForm; } 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)); if ($this->KOATUUCodeID > 0) { $this->koatu = $this->KOATUUCodeID . ";" . $this->KOATUUCode; } else { $this->koatu = ""; } parent::afterFind(); return true; }
public function afterFind() { // Формируем массив льгот привязанных к специальности $this->benefits = array(); $psb = Personspecialitybenefits::model()->findAll("PersonSpecialityID = '{$this->idPersonSpeciality}'"); foreach ($psb as $item) { //$item = new Personspecialitybenefits(); $this->benefits[] = $item->PersonBenefitID; } //if ($this->isNewRecord || empty($this->LanguageID) ) $this->LanguageID = $this->person->LanguageID; return parent::afterFind(); }
public function afterFind() { $this->service_name = $this->getName($this->serviceid); return parent::afterFind(); }
function afterFind() { parent::afterFind(); $this->old_pid = $this->pid; return true; }
function afterFind() { parent::afterFind(); $this->save_password = $this->password; }
public function afterFind() { //reset the contrasena to null because we don't want the hash to be shown. $this->contrasena_inicial = $this->contrasena; //$this->contrasena = null; $this->usuario = strtolower($this->usuario); $this->correo = strtolower($this->correo); parent::afterFind(); }
/** * After find */ public function afterFind() { if ($this->hasAttribute('phone')) { $this->phone_numbers = explode(',', $this->phone); } // This method doesn't return any value parent::afterFind(); }