public static model ( $className = __CLASS__ ) : the | ||
Résultat | the | static model class |
public static function model($className = __CLASS__)
{
return parent::model($className);
}
public function actionDeleteTreatments() { $result = 1; foreach (OphCoTherapyapplication_Treatment::model()->findAllByPK($_POST['treatments']) as $treatment) { if (!$treatment->delete()) { $result = 0; } } echo $result; }