Source for file CourseGroup.php

Documentation is available at CourseGroup.php

  1. <?php
  2. /**
  3. * CourseGroup manages a set of CanonicalCourses. CourseGroups have a
  4. * CourseGroupType which characterizes the group. CourseGroups can be used to
  5. * model prerequisites, corequisites, majors, minors, sequences, etc.
  6. *
  7. * <p>
  8. * OSID Version: 2.0
  9. * </p>
  10. *
  11. * <p>
  12. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  13. * O.K.I&#46; OSID Definition License}.
  14. * </p>
  15. *
  16. * @package org.osid.coursemanagement
  17. */
  18. class CourseGroup
  19. {
  20. /**
  21. * Update the display name for this CourseGroup.
  22. *
  23. * @param string $displayName
  24. *
  25. * @throws object CourseManagementException An exception
  26. * with one of the following messages defined in
  27. * org.osid.coursemanagement.CourseManagementException may be
  28. * thrown: {@link }
  29. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  30. * OPERATION_FAILED}, {@link }
  31. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  32. * PERMISSION_DENIED}, {@link }
  33. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  34. * CONFIGURATION_ERROR}, {@link }
  35. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  36. * UNIMPLEMENTED}, {@link }
  37. * org.osid.coursemanagement.CourseManagementException#NULL_ARGUMENT
  38. * NULL_ARGUMENT}
  39. *
  40. * @access public
  41. */
  42. function updateDisplayName ( $displayName ) {
  43. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  44. }
  45.  
  46. /**
  47. * Get the display name for this CourseGroup.
  48. *
  49. * @return string
  50. *
  51. * @throws object CourseManagementException An exception
  52. * with one of the following messages defined in
  53. * org.osid.coursemanagement.CourseManagementException may be
  54. * thrown: {@link }
  55. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  56. * OPERATION_FAILED}, {@link }
  57. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  58. * PERMISSION_DENIED}, {@link }
  59. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  60. * CONFIGURATION_ERROR}, {@link }
  61. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  62. * UNIMPLEMENTED}
  63. *
  64. * @access public
  65. */
  66. function getDisplayName () {
  67. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  68. }
  69.  
  70. /**
  71. * Get the unique Id for this CourseGroup.
  72. *
  73. * @return object Id
  74. *
  75. * @throws object CourseManagementException An exception
  76. * with one of the following messages defined in
  77. * org.osid.coursemanagement.CourseManagementException may be
  78. * thrown: {@link }
  79. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  80. * OPERATION_FAILED}, {@link }
  81. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  82. * PERMISSION_DENIED}, {@link }
  83. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  84. * CONFIGURATION_ERROR}, {@link }
  85. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  86. * UNIMPLEMENTED}
  87. *
  88. * @access public
  89. */
  90. function getId () {
  91. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  92. }
  93.  
  94. /**
  95. * Get the Type for this CourseGroup.
  96. *
  97. * @return object Type
  98. *
  99. * @throws object CourseManagementException An exception
  100. * with one of the following messages defined in
  101. * org.osid.coursemanagement.CourseManagementException may be
  102. * thrown: {@link }
  103. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  104. * OPERATION_FAILED}, {@link }
  105. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  106. * PERMISSION_DENIED}, {@link }
  107. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  108. * CONFIGURATION_ERROR}, {@link }
  109. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  110. * UNIMPLEMENTED}
  111. *
  112. * @access public
  113. */
  114. function getType () {
  115. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  116. }
  117.  
  118. /**
  119. * Add a CanonicalCourse to this CourseGroup. Order may be preserved,
  120. * depending on CourseGroupType.
  121. *
  122. * @param object Id $canonicalCourseId
  123. *
  124. * @throws object CourseManagementException An exception
  125. * with one of the following messages defined in
  126. * org.osid.coursemanagement.CourseManagementException may be
  127. * thrown: {@link }
  128. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  129. * OPERATION_FAILED}, {@link }
  130. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  131. * PERMISSION_DENIED}, {@link }
  132. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  133. * CONFIGURATION_ERROR}, {@link }
  134. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  135. * UNIMPLEMENTED}, {@link }
  136. * org.osid.coursemanagement.CourseManagementException#NULL_ARGUMENT
  137. * NULL_ARGUMENT}, {@link }
  138. * org.osid.coursemanagement.CourseManagementException#UNKNOWN_ID
  139. * UNKNOWN_ID}, {@link }
  140. * org.osid.coursemanagement.CourseManagementException#ALREADY_ADDED
  141. * ALREADY_ADDED}
  142. *
  143. * @access public
  144. */
  145. function addCourse ( $canonicalCourseId ) {
  146. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  147. }
  148.  
  149. /**
  150. * Remove a CanonicalCourse from the CourseGroup.
  151. *
  152. * @param object Id $canonicalCourseId
  153. *
  154. * @throws object CourseManagementException An exception
  155. * with one of the following messages defined in
  156. * org.osid.coursemanagement.CourseManagementException may be
  157. * thrown: {@link }
  158. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  159. * OPERATION_FAILED}, {@link }
  160. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  161. * PERMISSION_DENIED}, {@link }
  162. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  163. * CONFIGURATION_ERROR}, {@link }
  164. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  165. * UNIMPLEMENTED}, {@link }
  166. * org.osid.coursemanagement.CourseManagementException#NULL_ARGUMENT
  167. * NULL_ARGUMENT}, {@link }
  168. * org.osid.coursemanagement.CourseManagementException#UNKNOWN_ID
  169. * UNKNOWN_ID}
  170. *
  171. * @access public
  172. */
  173. function removeCourse ( $canonicalCourseId ) {
  174. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  175. }
  176.  
  177. /**
  178. * Get all the CanonicalCourses in this CourseGroup. Note that different
  179. * CourseGroupType imply different ordering. For example, if the
  180. * CourseGroupType indicates prerequisites order would need be guaranteed;
  181. * if corequisites order might not need to be guaranteed.
  182. *
  183. * @return object CanonicalCourseIterator
  184. *
  185. * @throws object CourseManagementException An exception
  186. * with one of the following messages defined in
  187. * org.osid.coursemanagement.CourseManagementException may be
  188. * thrown: {@link }
  189. * org.osid.coursemanagement.CourseManagementException#OPERATION_FAILED
  190. * OPERATION_FAILED}, {@link }
  191. * org.osid.coursemanagement.CourseManagementException#PERMISSION_DENIED
  192. * PERMISSION_DENIED}, {@link }
  193. * org.osid.coursemanagement.CourseManagementException#CONFIGURATION_ERROR
  194. * CONFIGURATION_ERROR}, {@link }
  195. * org.osid.coursemanagement.CourseManagementException#UNIMPLEMENTED
  196. * UNIMPLEMENTED}
  197. *
  198. * @access public
  199. */
  200. function getCourses () {
  201. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  202. }
  203. }
  204.  
  205. ?>

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