OphTrConsent_Leaflet_Firm::model PHP Méthode

model() public static méthode

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

Usage Example

 /**
  * @param $itemId
  */
 public function actionDeleteFirm($itemId)
 {
     /*
      * We make sure to not allow deleting directly with the URL, user must come from the commondrugs list page
      */
     if (!Yii::app()->request->isAjaxRequest) {
         $this->render("errorpage", array("errorMessage" => "notajaxcall"));
     } else {
         $this->deleteItem($itemId, OphTrConsent_Leaflet_Firm::model());
     }
 }