Source for file CourseGroupIterator.php

Documentation is available at CourseGroupIterator.php

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

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