Element_OphTrOperationnote_Cataract::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : Element_OphTrOperationnote_Cataract
return Element_OphTrOperationnote_Cataract the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Ejemplo n.º 1
0
 public function getOpnoteWithCataractElementInCurrentEpisode($patient)
 {
     if ($episode = $patient->getEpisodeForCurrentSubspecialty()) {
         $event_type = EventType::model()->find('class_name=?', array('OphTrOperationnote'));
         $criteria = new CDbCriteria();
         $criteria->compare('episode_id', $episode->id);
         $criteria->compare('event_type_id', $event_type->id);
         return Element_OphTrOperationnote_Cataract::model()->with('event')->find($criteria);
     }
 }
All Usage Examples Of Element_OphTrOperationnote_Cataract::model