Source for file DictionaryIterator.php

Documentation is available at DictionaryIterator.php

  1. <?php
  2. /**
  3. * DictionaryIterator provides access to these objects sequentially, one at a
  4. * time. The purpose of all Iterators is to to offer a way for OSID methods
  5. * to return multiple values of a common type and not use an array. Returning
  6. * an array may not be appropriate if the number of values returned is large
  7. * or is fetched remotely. Iterators do not allow access to values by index,
  8. * rather you must access values in sequence. Similarly, there is no way to go
  9. * backwards through the sequence unless you place the values in a data
  10. * structure, such as an array, that allows for access by index.
  11. *
  12. * <p>
  13. * OSID Version: 2.0
  14. * </p>
  15. *
  16. * <p>
  17. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  18. * O.K.I&#46; OSID Definition License}.
  19. * </p>
  20. *
  21. * @package org.osid.dictionary
  22. */
  23. class DictionaryIterator
  24. {
  25. /**
  26. * Return true if there is an additional Dictionary ; false otherwise.
  27. *
  28. * @return boolean
  29. *
  30. * @throws object DictionaryException An exception with one of
  31. * the following messages defined in
  32. * org.osid.dictionary.DiictionaryException may be thrown:
  33. * OPERATION_FAILED, PERMISSION_DENIED
  34. *
  35. * @access public
  36. */
  37. function hasNextDictionary () {
  38. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  39. }
  40.  
  41. /**
  42. * Return the next Dictionary.
  43. *
  44. * @return object Dictionary
  45. *
  46. * @throws object DictionaryException An exception with one of
  47. * the following messages defined in
  48. * org.osid.dictionary.DiictionaryException may be thrown:
  49. * OPERATION_FAILED, PERMISSION_DENIED, NO_MORE_ITERATOR_ELEMENTS
  50. *
  51. * @access public
  52. */
  53. function nextDictionary () {
  54. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  55. }
  56. }
  57.  
  58. ?>

Documentation generated on Wed, 19 Sep 2007 10:22:43 -0400 by phpDocumentor 1.3.0RC3