+ // {{{ function get_typed_requests()
+
+ /** same as get_typed_request() but return an array of objects
+ */
+ static public 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 get_typed_requests_count()