X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fvalidations%2Forange.inc.php;h=1cf625c24736b5859e00462715ec48426fc898b3;hb=d0327f6de73e81c4bcc656471ca4161e4f1e1e1b;hp=1f82930af561681874cd958a7480ba372ce48ac5;hpb=a7de4ef724d1a3b0bf978a50ce7cc9d23412c7a0;p=platal.git diff --git a/include/validations/orange.inc.php b/include/validations/orange.inc.php index 1f82930..1cf625c 100644 --- a/include/validations/orange.inc.php +++ b/include/validations/orange.inc.php @@ -1,6 +1,6 @@ Validate($_uid, true, 'orange'); + parent::__construct($_uid, true, 'orange'); $this->promo_sortie = $_sortie; $res = XDB::query("SELECT promo FROM auth_user_md5 WHERE user_id = {?}", $_uid); - $this->promo = $res->fetchOneCell(); + $this->promo = $res->fetchOneCell(); } // }}} // {{{ function formu() - function formu() - { return 'include/form.valid.orange.tpl'; } + public function formu() + { + return 'include/form.valid.orange.tpl'; + } // }}} // {{{ function _mail_subj() - function _mail_subj() + protected function _mail_subj() { - return "[Polytechnique.org/ORANGE] Changement de nom de promo de sortie"; + return "[Polytechnique.org/ORANGE] Changement de promo de sortie"; } // }}} // {{{ function _mail_body - function _mail_body($isok) + protected function _mail_body($isok) { if ($isok) { $res = " La demande de changement de promo de sortie que tu as demandée vient d'être effectuée."; @@ -75,7 +77,7 @@ class OrangeReq extends Validate // }}} // {{{ function commit() - function commit() + public function commit() { XDB::execute("UPDATE auth_user_md5 set promo_sortie={?} WHERE user_id={?}",$this->promo_sortie ,$this->uid); return true;