Exemplo n.º 1
0
 protected function afterFind()
 {
     parent::afterFind();
     if ($this->is_automated) {
         $this->automated_source = json_decode($this->automated_source);
     }
 }
Exemplo n.º 2
0
 /**
  * Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists
  */
 protected function afterFind()
 {
     $this->addOpNoteElementRelation();
     parent::afterFind();
 }
Exemplo n.º 3
0
 /**
  * Raise event to allow external data sources to update patient
  * @see CActiveRecord::afterFind()
  */
 protected function afterFind()
 {
     parent::afterFind();
     Yii::app()->event->dispatch('patient_after_find', array('patient' => $this));
 }
Exemplo n.º 4
0
 public function afterFind()
 {
     // strip out the seconds from the time field
     foreach (array('start_time', 'end_time') as $time_attr) {
         $this->{$time_attr} = substr($this->{$time_attr}, 0, 5);
     }
     parent::afterFind();
 }