public static function deleteCommentaire($idCom) { $model = new self(array()); $model->commentaire = CommentaireGateway::deleteCommentaire($model->dataError, $idCom); $model->title = "Commentaire supprimée"; return $model->commentaire; }
public static function deleteCommentaire($id) { $model = new ModelCommentaire(); $model->setData(CommentaireGateway::deleteCommentaire($model->error, $id)); return $model; }