Source for file GradeRecord.php

Documentation is available at GradeRecord.php

  1. <?php
  2. /**
  3. * GradeRecord includes a reference to a gradable object, an Agent Id, a Grade,
  4. * and GradeType.
  5. *
  6. * <p>
  7. * OSID Version: 2.0
  8. * </p>
  9. *
  10. * <p>
  11. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  12. * O.K.I&#46; OSID Definition License}.
  13. * </p>
  14. *
  15. * @package org.osid.grading
  16. */
  17. class GradeRecord
  18. {
  19. /**
  20. * Update the value for this Grade.
  21. *
  22. * @param object mixed $gradeValue (original type: java.io.Serializable)
  23. *
  24. * @throws object GradingException An exception with one of the
  25. * following messages defined in org.osid.grading.GradingException
  26. * may be thrown: {@link }
  27. * org.osid.grading.GradingException#OPERATION_FAILED
  28. * OPERATION_FAILED}, {@link }
  29. * org.osid.grading.GradingException#PERMISSION_DENIED
  30. * PERMISSION_DENIED}, {@link }
  31. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  32. * CONFIGURATION_ERROR}, {@link }
  33. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  34. *
  35. * @access public
  36. */
  37. function updateGradeValue ( $gradeValue ) {
  38. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  39. }
  40.  
  41. /**
  42. * Get the unique Id for this GradeRecord's GradableObject.
  43. *
  44. * @return object Id
  45. *
  46. * @throws object GradingException An exception with one of the
  47. * following messages defined in org.osid.grading.GradingException
  48. * may be thrown: {@link }
  49. * org.osid.grading.GradingException#OPERATION_FAILED
  50. * OPERATION_FAILED}, {@link }
  51. * org.osid.grading.GradingException#PERMISSION_DENIED
  52. * PERMISSION_DENIED}, {@link }
  53. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  54. * CONFIGURATION_ERROR}, {@link }
  55. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  56. *
  57. * @access public
  58. */
  59. function getGradableObject () {
  60. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  61. }
  62.  
  63. /**
  64. * Get the Agent Id associated with this GradeRecord. The Agent in this
  65. * context is not the person who took the test nor, necessarily, the
  66. * person who is grading. It is the person whose "GradeBook" this is, for
  67. * example the CourseSection instructor.
  68. *
  69. * @return object Id
  70. *
  71. * @throws object GradingException An exception with one of the
  72. * following messages defined in org.osid.grading.GradingException
  73. * may be thrown: {@link }
  74. * org.osid.grading.GradingException#OPERATION_FAILED
  75. * OPERATION_FAILED}, {@link }
  76. * org.osid.grading.GradingException#PERMISSION_DENIED
  77. * PERMISSION_DENIED}, {@link }
  78. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  79. * CONFIGURATION_ERROR}, {@link }
  80. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  81. *
  82. * @access public
  83. */
  84. function getAgentId () {
  85. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  86. }
  87.  
  88. /**
  89. * Get the value for this Grade.
  90. *
  91. * @return object mixed (original type: java.io.Serializable)
  92. *
  93. * @throws object GradingException An exception with one of the
  94. * following messages defined in org.osid.grading.GradingException
  95. * may be thrown: {@link }
  96. * org.osid.grading.GradingException#OPERATION_FAILED
  97. * OPERATION_FAILED}, {@link }
  98. * org.osid.grading.GradingException#PERMISSION_DENIED
  99. * PERMISSION_DENIED}, {@link }
  100. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  101. * CONFIGURATION_ERROR}, {@link }
  102. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  103. *
  104. * @access public
  105. */
  106. function getGradeValue () {
  107. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  108. }
  109.  
  110. /**
  111. * Get the Id of the Agent who modified this GradeRecord.
  112. *
  113. * @return object Id
  114. *
  115. * @throws object GradingException An exception with one of the
  116. * following messages defined in org.osid.grading.GradingException
  117. * may be thrown: {@link }
  118. * org.osid.grading.GradingException#OPERATION_FAILED
  119. * OPERATION_FAILED}, {@link }
  120. * org.osid.grading.GradingException#PERMISSION_DENIED
  121. * PERMISSION_DENIED}, {@link }
  122. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  123. * CONFIGURATION_ERROR}, {@link }
  124. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  125. *
  126. * @access public
  127. */
  128. function getModifiedBy () {
  129. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  130. }
  131.  
  132. /**
  133. * Get the date when this GradeRecord was modified.
  134. *
  135. * @return int
  136. *
  137. * @throws object GradingException An exception with one of the
  138. * following messages defined in org.osid.grading.GradingException
  139. * may be thrown: {@link }
  140. * org.osid.grading.GradingException#OPERATION_FAILED
  141. * OPERATION_FAILED}, {@link }
  142. * org.osid.grading.GradingException#PERMISSION_DENIED
  143. * PERMISSION_DENIED}, {@link }
  144. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  145. * CONFIGURATION_ERROR}, {@link }
  146. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  147. *
  148. * @access public
  149. */
  150. function getModifiedDate () {
  151. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  152. }
  153.  
  154. /**
  155. * Get the GradeRecordType for this GradeRecord. This is the Type of the
  156. * GradeRecord, which is distinct from the Type of Grade. A GradeRecord
  157. * Type might be advisory, mid-term, final, etc, while a Grade Type might
  158. * be letter, numeric, etc.
  159. *
  160. * @return object Type
  161. *
  162. * @throws object GradingException An exception with one of the
  163. * following messages defined in org.osid.grading.GradingException
  164. * may be thrown: {@link }
  165. * org.osid.grading.GradingException#OPERATION_FAILED
  166. * OPERATION_FAILED}, {@link }
  167. * org.osid.grading.GradingException#PERMISSION_DENIED
  168. * PERMISSION_DENIED}, {@link }
  169. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  170. * CONFIGURATION_ERROR}, {@link }
  171. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  172. *
  173. * @access public
  174. */
  175. function getGradeRecordType () {
  176. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  177. }
  178.  
  179. /**
  180. * Get the GradeType associated with the GradableObject and Grade.
  181. *
  182. * @return object Type
  183. *
  184. * @throws object GradingException An exception with one of the
  185. * following messages defined in org.osid.grading.GradingException
  186. * may be thrown: {@link }
  187. * org.osid.grading.GradingException#OPERATION_FAILED
  188. * OPERATION_FAILED}, {@link }
  189. * org.osid.grading.GradingException#PERMISSION_DENIED
  190. * PERMISSION_DENIED}, {@link }
  191. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  192. * CONFIGURATION_ERROR}, {@link }
  193. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  194. *
  195. * @access public
  196. */
  197. function getGradeType () {
  198. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  199. }
  200.  
  201. /**
  202. * Get all the Property Types for GradeRecord.
  203. *
  204. * @return object TypeIterator
  205. *
  206. * @throws object GradingException An exception with one of the
  207. * following messages defined in org.osid.grading.GradingException
  208. * may be thrown: {@link }
  209. * org.osid.grading.GradingException#OPERATION_FAILED
  210. * OPERATION_FAILED}, {@link }
  211. * org.osid.grading.GradingException#PERMISSION_DENIED
  212. * PERMISSION_DENIED}, {@link }
  213. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  214. * CONFIGURATION_ERROR}, {@link }
  215. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  216. *
  217. * @access public
  218. */
  219. function getPropertyTypes () {
  220. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  221. }
  222.  
  223. /**
  224. * Get the Properties of this Type associated with this GradeRecord.
  225. *
  226. * @param object Type $propertiesType
  227. *
  228. * @return object Properties
  229. *
  230. * @throws object GradingException An exception with one of the
  231. * following messages defined in org.osid.grading.GradingException
  232. * may be thrown: {@link }
  233. * org.osid.grading.GradingException#OPERATION_FAILED
  234. * OPERATION_FAILED}, {@link }
  235. * org.osid.grading.GradingException#PERMISSION_DENIED
  236. * PERMISSION_DENIED}, {@link }
  237. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  238. * CONFIGURATION_ERROR}, {@link }
  239. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED},
  240. * {@link org.osid.grading.GradingException#NULL_ARGUMENT}
  241. * NULL_ARGUMENT}, {@link }
  242. * org.osid.grading.GradingException#UNKNOWN_TYPE UNKNOWN_TYPE}
  243. *
  244. * @access public
  245. */
  246. function getPropertiesByType ( $propertiesType ) {
  247. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  248. }
  249.  
  250. /**
  251. * Get the Properties associated with this GradeRecord.
  252. *
  253. * @return object PropertiesIterator
  254. *
  255. * @throws object GradingException An exception with one of the
  256. * following messages defined in org.osid.grading.GradingException
  257. * may be thrown: {@link }
  258. * org.osid.grading.GradingException#OPERATION_FAILED
  259. * OPERATION_FAILED}, {@link }
  260. * org.osid.grading.GradingException#PERMISSION_DENIED
  261. * PERMISSION_DENIED}, {@link }
  262. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  263. * CONFIGURATION_ERROR}, {@link }
  264. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  265. *
  266. * @access public
  267. */
  268. function getProperties () {
  269. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  270. }
  271. }
  272.  
  273. ?>

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