protected function afterFind()
 {
     parent::afterFind();
     //		if ($this->is_processed == 1){
     //			$files_path = dirname(Yii::app()->request->scriptFile) . DIRECTORY_SEPARATOR ."files". DIRECTORY_SEPARATOR ."schedule_reports";
     //			$this->report_string_initial = file_get_contents($files_path . DIRECTORY_SEPARATOR . $this->schedule_processed_id);
     //		}
 }
Exemplo n.º 2
0
 public function afterFind()
 {
     if (empty($this->color)) {
         $this->beforeSave = false;
         $this->color = Color::randomColor();
         $this->save(false);
     }
     return parent::afterFind();
 }
Exemplo n.º 3
0
 public function afterFind()
 {
     if (!$this->getUseLong()) {
         preg_match("/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) (\\d{1,2}):(\\d{1,2}):(\\d{1,2})\$/", $this->next_run_planned, $date_matches);
         $this->start_date = $date_matches[2] . '/' . $date_matches[3] . '/' . $date_matches[1];
         $this->start_time = $date_matches[4] . '/' . $date_matches[5];
         $this->generationDelay();
         $this->dateTimesWithDelay();
     }
     return parent::afterFind();
 }
 public function afterFind()
 {
     $this->generateUID();
     $this->generateAddressName();
     return parent::afterFind();
 }
 public function afterFind()
 {
     $this->transformSendLogs();
     return parent::afterFind();
 }
Exemplo n.º 6
0
 public function afterFind()
 {
     return parent::afterFind();
 }