diff -r 000000000000 -r 4eba9c11703f web/Zend/Service/Simpy/NoteSet.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Service/Simpy/NoteSet.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,83 @@ +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); + } +}