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); } }