Source for file CanonicalCourseIterator.class.php

Documentation is available at CanonicalCourseIterator.class.php

  1. <?php
  2.  
  3. require_once(OKI2."/osid/coursemanagement/CanonicalCourseIterator.php");
  4. require_once(HARMONI."oki2/shared/HarmoniIterator.class.php");
  5.  
  6. /**
  7. * CanonicalCourseIterator provides access to CanonicalCourses.
  8. * CanonicalCourse provides access to these objects sequentially, one at a
  9. * time. The purpose of all Iterators is to to offer a way for OSID methods
  10. * to return multiple values of a common type and not use an array. Returning
  11. * an array may not be appropriate if the number of values returned is large
  12. * or is fetched remotely. Iterators do not allow access to values by index,
  13. * rather you must access values in sequence. Similarly, there is no way to go
  14. * backwards through the sequence unless you place the values in a data
  15. * structure, such as an array, that allows for access by index.
  16. *
  17. * <p>
  18. * OSID Version: 2.0
  19. * </p>
  20. *
  21. * @package harmoni.osid_v2.coursemanagement
  22. *
  23. * @copyright Copyright &copy; 2005, Middlebury College
  24. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  25. *
  26. * @version $Id: CanonicalCourseIterator.class.php,v 1.5 2007/09/04 20:25:39 adamfranco Exp $
  27. */
  28. class HarmoniCanonicalCourseIterator
  29. extends HarmoniIterator
  30. // implements CanonicalCourseIterator
  31.  
  32. {
  33. /**
  34. * Return true if there is an additional CanonicalCourse ; false
  35. * otherwise.
  36. *
  37. * @return boolean
  38. *
  39. * @throws object CourseManagementException An exception
  40. * with one of the following messages defined in
  41. * org.osid.coursemanagement.CourseManagementException may be
  42. * thrown: {@link }
  43. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  44. * OPERATION_FAILED}, {@link }
  45. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  46. * PERMISSION_DENIED}, {@link }
  47. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  48. * CONFIGURATION_ERROR}, {@link }
  49. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  50. * UNIMPLEMENTED}
  51. *
  52. * @access public
  53. */
  54. function hasNextCanonicalCourse () {
  55. return $this->hasNext();
  56. }
  57.  
  58. /**
  59. * Return the next CanonicalCourse.
  60. *
  61. * @return object CanonicalCourse
  62. *
  63. * @throws object CourseManagementException An exception
  64. * with one of the following messages defined in
  65. * org.osid.coursemanagement.CourseManagementException may be
  66. * thrown: {@link }
  67. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  68. * OPERATION_FAILED}, {@link }
  69. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  70. * PERMISSION_DENIED}, {@link }
  71. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  72. * CONFIGURATION_ERROR}, {@link }
  73. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  74. * UNIMPLEMENTED}, {@link }
  75. * org.osid.coursemanagement.CourseManagementException#NO_MORE_ITERATOR_ELEMENTS
  76. * NO_MORE_ITERATOR_ELEMENTS}
  77. *
  78. * @access public
  79. */
  80. function nextCanonicalCourse () {
  81. return $this->next();
  82. }
  83. }
  84.  
  85. ?>

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