4 +-----------------------------------------------------------------------+
5 | program/include/rcube_result_set.php |
7 | This file is part of the Roundcube Webmail client |
8 | Copyright (C) 2006-2010, 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 4834 2011-06-03 11:03:13Z alec $
24 * Roundcube result set class.
25 * Representing an address directory result set.
27 * @package Addressbook
29 class rcube_result_set
34 var $records = array();
37 function __construct($c=0, $f=0)
39 $this->count = (int)$c;
40 $this->first = (int)$f;
45 $this->records[] = $rec;
50 return $this->records[$this->current++];
56 return $this->records[$this->current++];
59 // alias for iterate()
62 return $this->iterate();