4 +-----------------------------------------------------------------------+
5 | program/include/rcube_result_set.php |
7 | This file is part of the Roundcube Webmail client |
8 | Copyright (C) 2006-2011, The Roundcube Dev Team |
9 | Licensed under the GNU GPL |
12 | Class representing an address directory result set |
14 +-----------------------------------------------------------------------+
15 | Author: Thomas Bruederli <roundcube@gmail.com> |
16 +-----------------------------------------------------------------------+
18 $Id: rcube_result_set.php 5258 2011-09-21 11:17:46Z thomasb $
24 * Roundcube result set class.
25 * Representing an address directory result set.
27 * @package Addressbook
29 class rcube_result_set
34 var $searchonly = false;
35 var $records = array();
38 function __construct($c=0, $f=0)
40 $this->count = (int)$c;
41 $this->first = (int)$f;
46 $this->records[] = $rec;
51 return $this->records[$this->current++];
57 return $this->records[$this->current++];
60 // alias for iterate()
63 return $this->iterate();