diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/Service/Simpy/WatchlistSet.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Service/Simpy/WatchlistSet.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,82 @@ +query('//watchlists/watchlist'); + + for ($x = 0; $x < $list->length; $x++) { + $this->_watchlists[$x] = new Zend_Service_Simpy_Watchlist($list->item($x)); + } + } + + /** + * Returns an iterator for the watchlist set + * + * @return ArrayIterator + */ + public function getIterator() + { + return new ArrayIterator($this->_watchlists); + } + + /** + * Returns the number of watchlists in the set + * + * @return int + */ + public function getLength() + { + return count($this->_watchlists); + } +}