From: x2003bruneau Date: Tue, 19 Dec 2006 19:59:28 +0000 (+0000) Subject: Humpf... X-Git-Tag: xorg/0.9.13~170 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5b0dc389e5ba5bfffe6acfc7f67c94cb99efe3d2;p=platal.git Humpf... git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1296 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/validations.inc.php b/include/validations.inc.php index 95d57c0..6ea951a 100644 --- a/include/validations.inc.php +++ b/include/validations.inc.php @@ -285,6 +285,21 @@ class Validate } // }}} + // {{{ function get_typed_requests() + + /** same as get_typed_request() but return an array of objects + */ + static function get_typed_requests($uid, $type) + { + $res = XDB::iterRow('SELECT data FROM requests WHERE user_id={?} and type={?}', $uid, $type); + $array = array(); + while (list($data) = $res->next()) { + $array[] = unserialize($data); + } + return $array; + } + + // }}} // {{{ function _mail_body function _mail_body($isok)