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 IteratorIterator */ public function getIterator() { $array = new ArrayObject($this->_watchlists); return $array->getIterator(); } /** * Returns the number of watchlists in the set * * @return int */ public function getLength() { return count($this->_watchlists); } }