Source for file CabinetEntry.php

Documentation is available at CabinetEntry.php

  1. <?php
  2. /**
  3. * An entry in a Cabinet, a CabinetEntry is either a ByteStore or a Cabinet.
  4. * CabinetEntry contains information common to both Cabinets and Bytestores
  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.filing
  16. */
  17. class CabinetEntry
  18. {
  19. /**
  20. * Get all the Property Types for CabinetEntry.
  21. *
  22. * @return object TypeIterator
  23. *
  24. * @throws object FilingException An exception with one of the
  25. * following messages defined in org.osid.filing.FilingException
  26. * may be thrown: {@link }
  27. * org.osid.filing.FilingException#OPERATION_FAILED
  28. * OPERATION_FAILED}, {@link }
  29. * org.osid.filing.FilingException#PERMISSION_DENIED
  30. * PERMISSION_DENIED}, {@link }
  31. * org.osid.filing.FilingException#CONFIGURATION_ERROR
  32. * CONFIGURATION_ERROR}, {@link }
  33. * org.osid.filing.FilingException#UNIMPLEMENTED UNIMPLEMENTED}
  34. *
  35. * @access public
  36. */
  37. function getPropertyTypes () {
  38. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  39. }
  40.  
  41. /**
  42. * Returns true or false depending on whether this CabinetEntry exists in
  43. * the file system.
  44. *
  45. * @return boolean
  46. *
  47. * @throws object FilingException An exception with one of the
  48. * following messages defined in org.osid.filing.FilingException
  49. * may be thrown: {@link }
  50. * org.osid.filing.FilingException#PERMISSION_DENIED
  51. * PERMISSION_DENIED}, {@link }
  52. * org.osid.filing.FilingException#IO_ERROR IO_ERROR}
  53. *
  54. * @access public
  55. */
  56. function exists () {
  57. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  58. }
  59.  
  60. /**
  61. * Returns the Cabinet in which this CabinetEntry is an entry, or null if
  62. * it has no parent (for example is the root Cabinet).
  63. *
  64. * @return object Cabinet
  65. *
  66. * @throws object FilingException An exception with one of the
  67. * following messages defined in org.osid.filing.FilingException
  68. * may be thrown: {@link }
  69. * org.osid.filing.FilingException#PERMISSION_DENIED
  70. * PERMISSION_DENIED}, {@link }
  71. * org.osid.filing.FilingException#IO_ERROR IO_ERROR}
  72. *
  73. * @access public
  74. */
  75. function getParent () {
  76. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  77. }
  78.  
  79. /**
  80. * Get the Properties of this Type associated with this CabinetEntry.
  81. *
  82. * @param object Type $propertiesType
  83. *
  84. * @return object Properties
  85. *
  86. * @throws object FilingException An exception with one of the
  87. * following messages defined in org.osid.filing.FilingException
  88. * may be thrown: {@link }
  89. * org.osid.filing.FilingException#OPERATION_FAILED
  90. * OPERATION_FAILED}, {@link }
  91. * org.osid.filing.FilingException#PERMISSION_DENIED
  92. * PERMISSION_DENIED}, {@link }
  93. * org.osid.filing.FilingException#CONFIGURATION_ERROR
  94. * CONFIGURATION_ERROR}, {@link }
  95. * org.osid.filing.FilingException#UNIMPLEMENTED UNIMPLEMENTED},
  96. * {@link org.osid.filing.FilingException#NULL_ARGUMENT}
  97. * NULL_ARGUMENT}, {@link }
  98. * org.osid.filing.FilingException#UNKNOWN_TYPE UNKNOWN_TYPE}
  99. *
  100. * @access public
  101. */
  102. function getPropertiesByType ( $propertiesType ) {
  103. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  104. }
  105.  
  106. /**
  107. * Get the Properties associated with this CabinetEntry.
  108. *
  109. * @return object PropertiesIterator
  110. *
  111. * @throws object FilingException An exception with one of the
  112. * following messages defined in org.osid.filing.FilingException
  113. * may be thrown: {@link }
  114. * org.osid.filing.FilingException#OPERATION_FAILED
  115. * OPERATION_FAILED}, {@link }
  116. * org.osid.filing.FilingException#PERMISSION_DENIED
  117. * PERMISSION_DENIED}, {@link }
  118. * org.osid.filing.FilingException#CONFIGURATION_ERROR
  119. * CONFIGURATION_ERROR}, {@link }
  120. * org.osid.filing.FilingException#UNIMPLEMENTED UNIMPLEMENTED}
  121. *
  122. * @access public
  123. */
  124. function getProperties () {
  125. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  126. }
  127.  
  128. /**
  129. * Return the name of this CabinetEntry in its parent Cabinet.
  130. *
  131. * @return string
  132. *
  133. * @throws object FilingException
  134. *
  135. * @access public
  136. */
  137. function getDisplayName () {
  138. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  139. }
  140.  
  141. /**
  142. * Get Id of this CabinetEntry
  143. *
  144. * @return object Id
  145. *
  146. * @throws object FilingException
  147. *
  148. * @access public
  149. */
  150. function getId () {
  151. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  152. }
  153.  
  154. /**
  155. * Returns when this Cabinet was last modified.
  156. *
  157. * @return int
  158. *
  159. * @throws object FilingException An exception with one of the
  160. * following messages defined in org.osid.filing.FilingException
  161. * may be thrown: {@link org.osid.filing.FilingException#IO_ERROR}
  162. * IO_ERROR}, {@link org.osid.filing.FilingException#UNIMPLEMENTED}
  163. * UNIMPLEMENTED}
  164. *
  165. * @access public
  166. */
  167. function getLastModifiedTime () {
  168. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  169. }
  170.  
  171. /**
  172. * Returns all the times that this Cabinet was modified.
  173. *
  174. * @return object LongValueIterator
  175. *
  176. * @throws object FilingException An exception with one of the
  177. * following messages defined in org.osid.filing.FilingException
  178. * may be thrown: {@link org.osid.filing.FilingException#IO_ERROR}
  179. * IO_ERROR}, {@link org.osid.filing.FilingException#UNIMPLEMENTED}
  180. * UNIMPLEMENTED}
  181. *
  182. * @access public
  183. */
  184. function getAllModifiedTimes () {
  185. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  186. }
  187.  
  188. /**
  189. * Sets the last-modified time to the current time for this CabinetEntry.
  190. *
  191. * @throws object FilingException An exception with one of the
  192. * following messages defined in org.osid.filing.FilingException
  193. * may be thrown: {@link }
  194. * org.osid.filing.FilingException#PERMISSION_DENIED
  195. * PERMISSION_DENIED}, {@link }
  196. * org.osid.filing.FilingException#IO_ERROR IO_ERROR}, {@link }
  197. * org.osid.filing.FilingException#UNIMPLEMENTED UNIMPLEMENTED}
  198. *
  199. * @access public
  200. */
  201. function touch () {
  202. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  203. }
  204.  
  205. /**
  206. * Returns when this Cabinet was last accessed. Not all implementations
  207. * will record last access times accurately, due to caching and
  208. * performance. The value returned will be at least the last modified
  209. * time, the actual time when a read was performed may be later.
  210. *
  211. * @return int
  212. *
  213. * @throws object FilingException An exception with one of the
  214. * following messages defined in org.osid.filing.FilingException
  215. * may be thrown: {@link org.osid.filing.FilingException#IO_ERROR}
  216. * IO_ERROR}, {@link org.osid.filing.FilingException#UNIMPLEMENTED}
  217. * UNIMPLEMENTED}
  218. *
  219. * @access public
  220. */
  221. function getLastAccessedTime () {
  222. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  223. }
  224.  
  225. /**
  226. * Returns when this CabinetEntry was created. Not all implementations will
  227. * record the time of creation accurately. The value returned will be at
  228. * least the last modified time, the actual creation time may be earlier.
  229. *
  230. * @return int
  231. *
  232. * @throws object FilingException An exception with one of the
  233. * following messages defined in org.osid.filing.FilingException
  234. * may be thrown: {@link org.osid.filing.FilingException#IO_ERROR}
  235. * IO_ERROR}, {@link org.osid.filing.FilingException#UNIMPLEMENTED}
  236. * UNIMPLEMENTED}
  237. *
  238. * @access public
  239. */
  240. function getCreatedTime () {
  241. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  242. }
  243.  
  244. /**
  245. * Return the Id of the Agent that owns this CabinetEntry.
  246. *
  247. * @return object Id
  248. *
  249. * @throws object FilingException An exception with one of the
  250. * following messages defined in org.osid.filing.FilingException
  251. * may be thrown: {@link }
  252. * org.osid.filing.FilingException#PERMISSION_DENIED
  253. * PERMISSION_DENIED}, {@link }
  254. * org.osid.filing.FilingException#IO_ERROR IO_ERROR}, {@link }
  255. * org.osid.filing.FilingException#UNIMPLEMENTED UNIMPLEMENTED}
  256. *
  257. * @access public
  258. */
  259. function getCabinetEntryAgentId () {
  260. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  261. }
  262.  
  263. /**
  264. * Change the name of this CabinetEntry to <code>displayName</code>
  265. *
  266. * @param string $displayName
  267. *
  268. * @throws object FilingException
  269. *
  270. * @access public
  271. */
  272. function updateDisplayName ( $displayName ) {
  273. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  274. }
  275. }
  276.  
  277. ?>

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