From f926687f254ba9d2da8e89665afe01e3356a9e42 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 17 Aug 2009 08:48:58 +0000 Subject: [PATCH] Updated filters git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14073 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 20 +++++ .../include/class_listingSortIterator.inc | 88 +++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 gosa-core/include/class_listingSortIterator.inc diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 3dca983e0..108eb8ee0 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -1,4 +1,24 @@ data= $data; + } + + function rewind() { + return reset($this->data); + } + + function current() { + return current($this->data); + } + + function key() { + return key($this->data); + } + + function next() { + return next($this->data); + } + + function valid() { + return key($this->data) !== null; + } +} + +?> -- 2.30.2