| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Class for creating an RSS-feed 4 * @author Michael Wimmer <flaimo@gmail.com> 5 * @category flaimo-php 6 * @copyright Copyright © 2002-2008, Michael Wimmer 7 * @license GNU General Public License v3 8 * @link http://code.google.com/p/flaimo-php/ 9 * @package RSS 10 * @version 2.2.1 11 */ 12 class ObjectIterator implements Iterator { 13 14 protected $current = 0; 15 protected $objectlist; 16 17 function __construct(ObjectList &$list) { 18 $this->objectlist =& $list; 19 $this->objectlist->getList(); 20 } // end constructor 21 22 public function valid() { 23 return ($this->current < $this->size()) ? TRUE : FALSE; 24 } // end function 25 26 public function next() { 27 return $this->current++; 28 } // end function 29 30 public function ¤t() { 31 return $this->objectlist->objects[$this->key()]; 32 } // end function 33 34 public function key() { 35 return $this->current; 36 } // end function 37 38 public function size() { 39 return count($this->objectlist->objects); 40 } // end function 41 42 public function rewind() { 43 $this->current = 0; 44 } // end function 45 } // end class 46 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |