query('//notes/note'); $this->_notes = array(); for ($x = 0; $x < $list->length; $x++) { $this->_notes[$x] = new Zend_Service_Simpy_Note($list->item($x)); } } /** * Returns an iterator for the note set * * @return ArrayIterator */ public function getIterator() { return new ArrayIterator($this->_notes); } /** * Returns the number of notes in the set * * @return int */ public function getLength() { return count($this->_notes); } }