コード例 #1
0
ファイル: Event.php プロジェクト: openeyes/openeyes
 protected function afterFind()
 {
     parent::afterFind();
     if ($this->is_automated) {
         $this->automated_source = json_decode($this->automated_source);
     }
 }
コード例 #2
0
ファイル: Procedure.php プロジェクト: 4Xerneas/OpenEyes
 /**
  * Add relation to OphTrOperationnote_ProcedureListOperationElement if it exists
  */
 protected function afterFind()
 {
     $this->addOpNoteElementRelation();
     parent::afterFind();
 }
コード例 #3
0
ファイル: Patient.php プロジェクト: openeyeswales/OpenEyes
 /**
  * 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));
 }
コード例 #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();
 }