OEModule\OphCiExamination\models\OphCiExamination_Instrument::model PHP Method

model() public static method

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

Usage Example

Example #1
0
 public function actionGetScaleForInstrument()
 {
     if ($instrument = models\OphCiExamination_Instrument::model()->findByPk(@$_GET['instrument_id'])) {
         if ($scale = $instrument->scale) {
             $value = new models\OphCiExamination_IntraocularPressure_Value();
             $this->renderPartial('_qualitative_scale', array('value' => $value, 'scale' => $scale, 'side' => @$_GET['side'], 'index' => @$_GET['index']));
         }
     }
 }
All Usage Examples Of OEModule\OphCiExamination\models\OphCiExamination_Instrument::model