Source for file SectionTaken.php

Documentation is available at SectionTaken.php

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

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