OphTrIntravitrealinjection_Treatment_Drug::model PHP Method

model() public static method

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

Usage Example

Example #1
0
 public function actionDeleteTreatmentDrugs()
 {
     $result = 1;
     foreach (OphTrIntravitrealinjection_Treatment_Drug::model()->findAllByPk($_POST['treatment_drugs']) as $drug) {
         if (!$drug->delete()) {
             $result = 0;
         }
     }
     echo $result;
 }
All Usage Examples Of OphTrIntravitrealinjection_Treatment_Drug::model