OphCoTherapyapplication_Treatment::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 actionDeleteTreatments()
 {
     $result = 1;
     foreach (OphCoTherapyapplication_Treatment::model()->findAllByPK($_POST['treatments']) as $treatment) {
         if (!$treatment->delete()) {
             $result = 0;
         }
     }
     echo $result;
 }
All Usage Examples Of OphCoTherapyapplication_Treatment::model