Source for file GradableObject.php

Documentation is available at GradableObject.php

  1. <?php
  2. /**
  3. * GradableObject includes a Name, Description, Id, GradeType, CourseSection
  4. * reference, and External Reference to what is being graded.
  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 GradableObject
  18. {
  19. /**
  20. * Update the display name for this Assignment.
  21. *
  22. * @param string $displayName
  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 updateDisplayName ( $displayName ) {
  38. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  39. }
  40.  
  41. /**
  42. * Update the description for this GradableObject.
  43. *
  44. * @param string $description
  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 updateDescription ( $description ) {
  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 display name for this GradableObject.
  65. *
  66. * @return string
  67. *
  68. * @throws object GradingException An exception with one of the
  69. * following messages defined in org.osid.grading.GradingException
  70. * may be thrown: {@link }
  71. * org.osid.grading.GradingException#OPERATION_FAILED
  72. * OPERATION_FAILED}, {@link }
  73. * org.osid.grading.GradingException#PERMISSION_DENIED
  74. * PERMISSION_DENIED}, {@link }
  75. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  76. * CONFIGURATION_ERROR}, {@link }
  77. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  78. *
  79. * @access public
  80. */
  81. function getDisplayName () {
  82. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  83. }
  84.  
  85. /**
  86. * Get the description for this GradableObject.
  87. *
  88. * @return string
  89. *
  90. * @throws object GradingException An exception with one of the
  91. * following messages defined in org.osid.grading.GradingException
  92. * may be thrown: {@link }
  93. * org.osid.grading.GradingException#OPERATION_FAILED
  94. * OPERATION_FAILED}, {@link }
  95. * org.osid.grading.GradingException#PERMISSION_DENIED
  96. * PERMISSION_DENIED}, {@link }
  97. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  98. * CONFIGURATION_ERROR}, {@link }
  99. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  100. *
  101. * @access public
  102. */
  103. function getDescription () {
  104. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  105. }
  106.  
  107. /**
  108. * Get the unique Id for this GradableObject.
  109. *
  110. * @return object Id
  111. *
  112. * @throws object GradingException An exception with one of the
  113. * following messages defined in org.osid.grading.GradingException
  114. * may be thrown: {@link }
  115. * org.osid.grading.GradingException#OPERATION_FAILED
  116. * OPERATION_FAILED}, {@link }
  117. * org.osid.grading.GradingException#PERMISSION_DENIED
  118. * PERMISSION_DENIED}, {@link }
  119. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  120. * CONFIGURATION_ERROR}, {@link }
  121. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  122. *
  123. * @access public
  124. */
  125. function getId () {
  126. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  127. }
  128.  
  129. /**
  130. * Get the unique Id with a CourseSection. CourseSections are created and
  131. * managed through the CourseManagement OSID.
  132. *
  133. * @return object Id
  134. *
  135. * @throws object GradingException An exception with one of the
  136. * following messages defined in org.osid.grading.GradingException
  137. * may be thrown: {@link }
  138. * org.osid.grading.GradingException#OPERATION_FAILED
  139. * OPERATION_FAILED}, {@link }
  140. * org.osid.grading.GradingException#PERMISSION_DENIED
  141. * PERMISSION_DENIED}, {@link }
  142. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  143. * CONFIGURATION_ERROR}, {@link }
  144. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  145. *
  146. * @access public
  147. */
  148. function getCourseSection () {
  149. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  150. }
  151.  
  152. /**
  153. * Get the unique Id associated with some object that is being graded such
  154. * as an Assessment.
  155. *
  156. * @return object Id
  157. *
  158. * @throws object GradingException An exception with one of the
  159. * following messages defined in org.osid.grading.GradingException
  160. * may be thrown: {@link }
  161. * org.osid.grading.GradingException#OPERATION_FAILED
  162. * OPERATION_FAILED}, {@link }
  163. * org.osid.grading.GradingException#PERMISSION_DENIED
  164. * PERMISSION_DENIED}, {@link }
  165. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  166. * CONFIGURATION_ERROR}, {@link }
  167. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  168. *
  169. * @access public
  170. */
  171. function getExternalReference () {
  172. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  173. }
  174.  
  175. /**
  176. * Get the GradeType associated with the GradableObject and Grade.
  177. *
  178. * @return object Type
  179. *
  180. * @throws object GradingException An exception with one of the
  181. * following messages defined in org.osid.grading.GradingException
  182. * may be thrown: {@link }
  183. * org.osid.grading.GradingException#OPERATION_FAILED
  184. * OPERATION_FAILED}, {@link }
  185. * org.osid.grading.GradingException#PERMISSION_DENIED
  186. * PERMISSION_DENIED}, {@link }
  187. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  188. * CONFIGURATION_ERROR}, {@link }
  189. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  190. *
  191. * @access public
  192. */
  193. function getGradeType () {
  194. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  195. }
  196.  
  197. /**
  198. * Get the ScoringDefinition associated with the GradableObject and Grade.
  199. *
  200. * @return object Type
  201. *
  202. * @throws object GradingException An exception with one of the
  203. * following messages defined in org.osid.grading.GradingException
  204. * may be thrown: {@link }
  205. * org.osid.grading.GradingException#OPERATION_FAILED
  206. * OPERATION_FAILED}, {@link }
  207. * org.osid.grading.GradingException#PERMISSION_DENIED
  208. * PERMISSION_DENIED}, {@link }
  209. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  210. * CONFIGURATION_ERROR}, {@link }
  211. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  212. *
  213. * @access public
  214. */
  215. function getScoringDefinition () {
  216. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  217. }
  218.  
  219. /**
  220. * Get the GradeScale associated with the GradableObject and Grade.
  221. *
  222. * @return object Type
  223. *
  224. * @throws object GradingException An exception with one of the
  225. * following messages defined in org.osid.grading.GradingException
  226. * may be thrown: {@link }
  227. * org.osid.grading.GradingException#OPERATION_FAILED
  228. * OPERATION_FAILED}, {@link }
  229. * org.osid.grading.GradingException#PERMISSION_DENIED
  230. * PERMISSION_DENIED}, {@link }
  231. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  232. * CONFIGURATION_ERROR}, {@link }
  233. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  234. *
  235. * @access public
  236. */
  237. function getGradeScale () {
  238. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  239. }
  240.  
  241. /**
  242. * Get the gradeWeight of this GradableObject.
  243. *
  244. * @return int
  245. *
  246. * @throws object GradingException An exception with one of the
  247. * following messages defined in org.osid.grading.GradingException
  248. * may be thrown: {@link }
  249. * org.osid.grading.GradingException#OPERATION_FAILED
  250. * OPERATION_FAILED}, {@link }
  251. * org.osid.grading.GradingException#PERMISSION_DENIED
  252. * PERMISSION_DENIED}, {@link }
  253. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  254. * CONFIGURATION_ERROR}, {@link }
  255. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  256. *
  257. * @access public
  258. */
  259. function getGradeWeight () {
  260. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  261. }
  262.  
  263. /**
  264. * Get the Properties of this Type associated with this GradableObject.
  265. *
  266. * @param object Type $propertiesType
  267. *
  268. * @return object Properties
  269. *
  270. * @throws object GradingException An exception with one of the
  271. * following messages defined in org.osid.grading.GradingException
  272. * may be thrown: {@link }
  273. * org.osid.grading.GradingException#OPERATION_FAILED
  274. * OPERATION_FAILED}, {@link }
  275. * org.osid.grading.GradingException#PERMISSION_DENIED
  276. * PERMISSION_DENIED}, {@link }
  277. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  278. * CONFIGURATION_ERROR}, {@link }
  279. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED},
  280. * {@link org.osid.grading.GradingException#NULL_ARGUMENT}
  281. * NULL_ARGUMENT}, {@link }
  282. * org.osid.grading.GradingException#UNKNOWN_TYPE UNKNOWN_TYPE}
  283. *
  284. * @access public
  285. */
  286. function getPropertiesByType ( $propertiesType ) {
  287. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  288. }
  289.  
  290. /**
  291. * Get the Properties Types supported by this GradableObject.
  292. *
  293. * @return object TypeIterator
  294. *
  295. * @throws object GradingException An exception with one of the
  296. * following messages defined in org.osid.grading.GradingException
  297. * may be thrown: {@link }
  298. * org.osid.grading.GradingException#OPERATION_FAILED
  299. * OPERATION_FAILED}, {@link }
  300. * org.osid.grading.GradingException#PERMISSION_DENIED
  301. * PERMISSION_DENIED}, {@link }
  302. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  303. * CONFIGURATION_ERROR}, {@link }
  304. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  305. *
  306. * @access public
  307. */
  308. function getPropertyTypes () {
  309. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  310. }
  311.  
  312. /**
  313. * Get the Properties associated with this GradableObject.
  314. *
  315. * @return object PropertiesIterator
  316. *
  317. * @throws object GradingException An exception with one of the
  318. * following messages defined in org.osid.grading.GradingException
  319. * may be thrown: {@link }
  320. * org.osid.grading.GradingException#OPERATION_FAILED
  321. * OPERATION_FAILED}, {@link }
  322. * org.osid.grading.GradingException#PERMISSION_DENIED
  323. * PERMISSION_DENIED}, {@link }
  324. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  325. * CONFIGURATION_ERROR}, {@link }
  326. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  327. *
  328. * @access public
  329. */
  330. function getProperties () {
  331. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  332. }
  333.  
  334. /**
  335. * Get the Id of the Agent who modified this GradeRecord.
  336. *
  337. * @return object Id
  338. *
  339. * @throws object GradingException An exception with one of the
  340. * following messages defined in org.osid.grading.GradingException
  341. * may be thrown: {@link }
  342. * org.osid.grading.GradingException#OPERATION_FAILED
  343. * OPERATION_FAILED}, {@link }
  344. * org.osid.grading.GradingException#PERMISSION_DENIED
  345. * PERMISSION_DENIED}, {@link }
  346. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  347. * CONFIGURATION_ERROR}, {@link }
  348. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  349. *
  350. * @access public
  351. */
  352. function getModifiedBy () {
  353. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  354. }
  355.  
  356. /**
  357. * Get the date when this GradeRecord was modified.
  358. *
  359. * @return int
  360. *
  361. * @throws object GradingException An exception with one of the
  362. * following messages defined in org.osid.grading.GradingException
  363. * may be thrown: {@link }
  364. * org.osid.grading.GradingException#OPERATION_FAILED
  365. * OPERATION_FAILED}, {@link }
  366. * org.osid.grading.GradingException#PERMISSION_DENIED
  367. * PERMISSION_DENIED}, {@link }
  368. * org.osid.grading.GradingException#CONFIGURATION_ERROR
  369. * CONFIGURATION_ERROR}, {@link }
  370. * org.osid.grading.GradingException#UNIMPLEMENTED UNIMPLEMENTED}
  371. *
  372. * @access public
  373. */
  374. function getModifiedDate () {
  375. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  376. }
  377. }
  378.  
  379. ?>

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