Source for file AssessmentTaken.php

Documentation is available at AssessmentTaken.php

  1. <?php
  2. /**
  3. * AssessmentTaken includes a AssessmentPublished, the agentId of the student
  4. * who took it, the Sections taken within which are the Items taken, and the
  5. * Evaluations for the Assessment. There is also any supporting data.
  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.assessment
  17. */
  18. class AssessmentTaken
  19. {
  20. /**
  21. * Update the display name for this AssessmentTaken.
  22. *
  23. * @param string $displayName
  24. *
  25. * @throws object AssessmentException An exception with one of
  26. * the following messages defined in
  27. * org.osid.assessment.AssessmentException may be thrown: {@link }
  28. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  29. * OPERATION_FAILED}, {@link }
  30. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  31. * PERMISSION_DENIED}, {@link }
  32. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  33. * CONFIGURATION_ERROR}, {@link }
  34. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  35. * UNIMPLEMENTED}, {@link }
  36. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  37. * NULL_ARGUMENT}
  38. *
  39. * @access public
  40. */
  41. function updateDisplayName ( $displayName ) {
  42. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  43. }
  44.  
  45. /**
  46. * Update the data for this AssessmentTaken. The structure of the Data is
  47. * not defined in the OSID. .
  48. *
  49. * @param object mixed $data (original type: java.io.Serializable)
  50. *
  51. * @throws object AssessmentException An exception with one of
  52. * the following messages defined in
  53. * org.osid.assessment.AssessmentException may be thrown: {@link }
  54. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  55. * OPERATION_FAILED}, {@link }
  56. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  57. * PERMISSION_DENIED}, {@link }
  58. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  59. * CONFIGURATION_ERROR}, {@link }
  60. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  61. * UNIMPLEMENTED}, {@link }
  62. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  63. * NULL_ARGUMENT}
  64. *
  65. * @access public
  66. */
  67. function updateData ( $data ) {
  68. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  69. }
  70.  
  71. /**
  72. * Get the display name for this AssessmentTaken.
  73. *
  74. * @return string
  75. *
  76. * @throws object AssessmentException An exception with one of
  77. * the following messages defined in
  78. * org.osid.assessment.AssessmentException may be thrown: {@link }
  79. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  80. * OPERATION_FAILED}, {@link }
  81. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  82. * PERMISSION_DENIED}, {@link }
  83. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  84. * CONFIGURATION_ERROR}, {@link }
  85. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  86. * UNIMPLEMENTED}
  87. *
  88. * @access public
  89. */
  90. function getDisplayName () {
  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 unique Id for this AssessmentTaken.
  96. *
  97. * @return object Id
  98. *
  99. * @throws object AssessmentException An exception with one of
  100. * the following messages defined in
  101. * org.osid.assessment.AssessmentException may be thrown: {@link }
  102. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  103. * OPERATION_FAILED}, {@link }
  104. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  105. * PERMISSION_DENIED}, {@link }
  106. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  107. * CONFIGURATION_ERROR}, {@link }
  108. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  109. * UNIMPLEMENTED}
  110. *
  111. * @access public
  112. */
  113. function getId () {
  114. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  115. }
  116.  
  117. /**
  118. * Get the AssessmentPublished that was taken.
  119. *
  120. * @return object AssessmentPublished
  121. *
  122. * @throws object AssessmentException An exception with one of
  123. * the following messages defined in
  124. * org.osid.assessment.AssessmentException may be thrown: {@link }
  125. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  126. * OPERATION_FAILED}, {@link }
  127. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  128. * PERMISSION_DENIED}, {@link }
  129. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  130. * CONFIGURATION_ERROR}, {@link }
  131. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  132. * UNIMPLEMENTED}
  133. *
  134. * @access public
  135. */
  136. function getAssessmentPublished () {
  137. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  138. }
  139.  
  140. /**
  141. * Get the agentId of the student who took the Assessment.
  142. *
  143. * @return object Id
  144. *
  145. * @throws object AssessmentException An exception with one of
  146. * the following messages defined in
  147. * org.osid.assessment.AssessmentException may be thrown: {@link }
  148. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  149. * OPERATION_FAILED}, {@link }
  150. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  151. * PERMISSION_DENIED}, {@link }
  152. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  153. * CONFIGURATION_ERROR}, {@link }
  154. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  155. * UNIMPLEMENTED}
  156. *
  157. * @access public
  158. */
  159. function getAgentId () {
  160. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  161. }
  162.  
  163. /**
  164. * Get the date the Assessment was taken.
  165. *
  166. * @return int
  167. *
  168. * @throws object AssessmentException An exception with one of
  169. * the following messages defined in
  170. * org.osid.assessment.AssessmentException may be thrown: {@link }
  171. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  172. * OPERATION_FAILED}, {@link }
  173. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  174. * PERMISSION_DENIED}, {@link }
  175. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  176. * CONFIGURATION_ERROR}, {@link }
  177. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  178. * UNIMPLEMENTED}
  179. *
  180. * @access public
  181. */
  182. function getDate () {
  183. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  184. }
  185.  
  186. /**
  187. * Get the Data for this AssessmentTaken. The structure of the Data is not
  188. * defined in the OSID.
  189. *
  190. * @return object mixed (original type: java.io.Serializable)
  191. *
  192. * @throws object AssessmentException An exception with one of
  193. * the following messages defined in
  194. * org.osid.assessment.AssessmentException may be thrown: {@link }
  195. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  196. * OPERATION_FAILED}, {@link }
  197. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  198. * PERMISSION_DENIED}, {@link }
  199. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  200. * CONFIGURATION_ERROR}, {@link }
  201. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  202. * UNIMPLEMENTED}
  203. *
  204. * @access public
  205. */
  206. function getData () {
  207. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  208. }
  209.  
  210. /**
  211. * Create a SectionTaken based on an AssessmentPublished and agentId of the
  212. * student.
  213. *
  214. * @param object Section $section
  215. *
  216. * @return object SectionTaken
  217. *
  218. * @throws object AssessmentException An exception with one of
  219. * the following messages defined in
  220. * org.osid.assessment.AssessmentException may be thrown: {@link }
  221. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  222. * OPERATION_FAILED}, {@link }
  223. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  224. * PERMISSION_DENIED}, {@link }
  225. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  226. * CONFIGURATION_ERROR}, {@link }
  227. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  228. * UNIMPLEMENTED}, {@link }
  229. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  230. * NULL_ARGUMENT}, {@link }
  231. * org.osid.assessment.AssessmentException#UNKNOWN_SECTION
  232. * UNKNOWN_SECTION}
  233. *
  234. * @access public
  235. */
  236. function createSectionTaken ( $section ) {
  237. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  238. }
  239.  
  240. /**
  241. * Delete a SectionTaken.
  242. *
  243. * @param object Id $sectionTakenId
  244. *
  245. * @throws object AssessmentException An exception with one of
  246. * the following messages defined in
  247. * org.osid.assessment.AssessmentException may be thrown: {@link }
  248. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  249. * OPERATION_FAILED}, {@link }
  250. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  251. * PERMISSION_DENIED}, {@link }
  252. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  253. * CONFIGURATION_ERROR}, {@link }
  254. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  255. * UNIMPLEMENTED}, {@link }
  256. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  257. * NULL_ARGUMENT}, {@link }
  258. * org.osid.assessment.AssessmentException#UNKNOWN_ID UNKNOWN_ID}
  259. *
  260. * @access public
  261. */
  262. function deleteSectionTaken ( $sectionTakenId ) {
  263. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  264. }
  265.  
  266. /**
  267. * Get all the Sections taken for this Assessment. SectionsTaken are
  268. * returned first in, first out (FIFO). Only the Sections taken that are
  269. * directly associated with this Assessment are returned.
  270. *
  271. * @return object SectionTakenIterator
  272. *
  273. * @throws object AssessmentException An exception with one of
  274. * the following messages defined in
  275. * org.osid.assessment.AssessmentException may be thrown: {@link }
  276. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  277. * OPERATION_FAILED}, {@link }
  278. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  279. * PERMISSION_DENIED}, {@link }
  280. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  281. * CONFIGURATION_ERROR}, {@link }
  282. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  283. * UNIMPLEMENTED}
  284. *
  285. * @access public
  286. */
  287. function getSectionsTaken () {
  288. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  289. }
  290.  
  291. /**
  292. * Create an Evaluation of the specified Type for this Assessment.
  293. *
  294. * @param object Type $evaluationType
  295. *
  296. * @return object Evaluation
  297. *
  298. * @throws object AssessmentException An exception with one of
  299. * the following messages defined in
  300. * org.osid.assessment.AssessmentException may be thrown: {@link }
  301. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  302. * OPERATION_FAILED}, {@link }
  303. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  304. * PERMISSION_DENIED}, {@link }
  305. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  306. * CONFIGURATION_ERROR}, {@link }
  307. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  308. * UNIMPLEMENTED}, {@link }
  309. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  310. * NULL_ARGUMENT}, {@link }
  311. * org.osid.assessment.AssessmentException#UNKNOWN_TYPE
  312. * UNKNOWN_TYPE}
  313. *
  314. * @access public
  315. */
  316. function createEvaluation ( $evaluationType ) {
  317. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  318. }
  319.  
  320. /**
  321. * Delete this Evaluation from this Assessment.
  322. *
  323. * @param object Id $evaluationId
  324. *
  325. * @throws object AssessmentException An exception with one of
  326. * the following messages defined in
  327. * org.osid.assessment.AssessmentException may be thrown: {@link }
  328. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  329. * OPERATION_FAILED}, {@link }
  330. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  331. * PERMISSION_DENIED}, {@link }
  332. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  333. * CONFIGURATION_ERROR}, {@link }
  334. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  335. * UNIMPLEMENTED}, {@link }
  336. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  337. * NULL_ARGUMENT}, {@link }
  338. * org.osid.assessment.AssessmentException#UNKNOWN_ID UNKNOWN_ID}
  339. *
  340. * @access public
  341. */
  342. function deleteEvaluation ( $evaluationId ) {
  343. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  344. }
  345.  
  346. /**
  347. * Get the Evaluations of the specified Type for this Assessment.
  348. *
  349. * @param object Type $evaluationType
  350. *
  351. * @return object EvaluationIterator
  352. *
  353. * @throws object AssessmentException An exception with one of
  354. * the following messages defined in
  355. * org.osid.assessment.AssessmentException may be thrown: {@link }
  356. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  357. * OPERATION_FAILED}, {@link }
  358. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  359. * PERMISSION_DENIED}, {@link }
  360. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  361. * CONFIGURATION_ERROR}, {@link }
  362. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  363. * UNIMPLEMENTED}, {@link }
  364. * org.osid.assessment.AssessmentException#NULL_ARGUMENT
  365. * NULL_ARGUMENT}, {@link }
  366. * org.osid.assessment.AssessmentException#UNKNOWN_TYPE
  367. * UNKNOWN_TYPE}
  368. *
  369. * @access public
  370. */
  371. function getEvaluationsByType ( $evaluationType ) {
  372. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  373. }
  374.  
  375. /**
  376. * Get all the Evaluations for this Assessment.
  377. *
  378. * @return object EvaluationIterator
  379. *
  380. * @throws object AssessmentException An exception with one of
  381. * the following messages defined in
  382. * org.osid.assessment.AssessmentException may be thrown: {@link }
  383. * org.osid.assessment.AssessmentException#OPERATION_FAILED
  384. * OPERATION_FAILED}, {@link }
  385. * org.osid.assessment.AssessmentException#PERMISSION_DENIED
  386. * PERMISSION_DENIED}, {@link }
  387. * org.osid.assessment.AssessmentException#CONFIGURATION_ERROR
  388. * CONFIGURATION_ERROR}, {@link }
  389. * org.osid.assessment.AssessmentException#UNIMPLEMENTED
  390. * UNIMPLEMENTED}
  391. *
  392. * @access public
  393. */
  394. function getEvaluations () {
  395. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  396. }
  397. }
  398.  
  399. ?>

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