diff -r bd595ad770fc -r 1c2f13fd785c web/enmi/Zend/Service/Simpy/NoteSet.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/enmi/Zend/Service/Simpy/NoteSet.php Thu Jan 20 19:30:54 2011 +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); + } +}