Source for file DictionaryManager.php

Documentation is available at DictionaryManager.php

  1. <?php
  2. include_once(dirname(__FILE__)."/../OsidManager.php");
  3. /**
  4. * <p>
  5. * DictionaryManager handles creating, deleting, and getting Dictionaries.
  6. * </p>
  7. *
  8. * <p>
  9. * All implementations of OsidManager (manager) provide methods for accessing
  10. * and manipulating the various objects defined in the OSID package. A manager
  11. * defines an implementation of an OSID. All other OSID objects come either
  12. * directly or indirectly from the manager. New instances of the OSID objects
  13. * are created either directly or indirectly by the manager. Because the OSID
  14. * objects are defined using interfaces, create methods must be used instead
  15. * of the new operator to create instances of the OSID objects. Create methods
  16. * are used both to instantiate and persist OSID objects. Using the
  17. * OsidManager class to define an OSID's implementation allows the application
  18. * to change OSID implementations by changing the OsidManager package name
  19. * used to load an implementation. Applications developed using managers
  20. * permit OSID implementation substitution without changing the application
  21. * source code. As with all managers, use the OsidLoader to load an
  22. * implementation of this interface.
  23. * </p>
  24. *
  25. * <p></p>
  26. *
  27. * <p>
  28. * OSID Version: 2.0
  29. * </p>
  30. *
  31. * <p>
  32. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  33. * O.K.I&#46; OSID Definition License}.
  34. * </p>
  35. *
  36. * @package org.osid.dictionary
  37. */
  38. class DictionaryManager
  39. extends OsidManager
  40. {
  41. /**
  42. * Create a dictionary with the specified name and domain.
  43. *
  44. * @param string $displayName
  45. * @param string $description
  46. * @param object mixed $domain (original type: java.io.Serializable)
  47. *
  48. * @return object Dictionary
  49. *
  50. * @throws object DictionaryException An exception with one of
  51. * the following messages defined in
  52. * org.osid.dictionary.DiictionaryException may be thrown: {@link }
  53. * org.osid.dictionary.DictionaryException#OPERATION_FAILED
  54. * OPERATION_FAILED}, {@link }
  55. * org.osid.dictionary.DictionaryException#CONFIGURATION_ERROR
  56. * CONFIGURATION_ERROR}, {@link }
  57. * org.osid.dictionary.DictionaryException#PERMISSION_DENIED
  58. * PERMISSION_DENIED}, {@link }
  59. * org.osid.dictionary.DictionaryException#UNIMPLEMENTED
  60. * UNIMPLEMENTED}, {@link }
  61. * org.osid.dictionary.DictionaryException#NULL_ARGUMENT
  62. * NULL_ARGUMENT}
  63. *
  64. * @access public
  65. */
  66. function createDictionary ( $displayName, $description, $domain ) {
  67. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  68. }
  69.  
  70. /**
  71. * Delete the dictionary with the specified unique Id.
  72. *
  73. * @param object Id $dictionaryId
  74. *
  75. * @throws object DictionaryException An exception with one of
  76. * the following messages defined in
  77. * org.osid.dictionary.DiictionaryException may be thrown: {@link }
  78. * org.osid.dictionary.DictionaryException#OPERATION_FAILED
  79. * OPERATION_FAILED}, {@link }
  80. * org.osid.dictionary.DictionaryException#CONFIGURATION_ERROR
  81. * CONFIGURATION_ERROR}, {@link }
  82. * org.osid.dictionary.DictionaryException#PERMISSION_DENIED
  83. * PERMISSION_DENIED}, {@link }
  84. * org.osid.dictionary.DictionaryException#UNIMPLEMENTED
  85. * UNIMPLEMENTED}, {@link }
  86. * org.osid.dictionary.DictionaryException#UNKNOWN_ID UNKNOWN_ID},
  87. * {@link org.osid.dictionary.DictionaryException#NULL_ARGUMENT}
  88. * NULL_ARGUMENT}
  89. *
  90. * @access public
  91. */
  92. function deleteDictionary ( $dictionaryId ) {
  93. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  94. }
  95.  
  96. /**
  97. * Get the dictionary with the specified unique Id.
  98. *
  99. * @param object Id $dictionaryId
  100. *
  101. * @return object Dictionary
  102. *
  103. * @throws object DictionaryException An exception with one of
  104. * the following messages defined in
  105. * org.osid.dictionary.DiictionaryException may be thrown: {@link }
  106. * org.osid.dictionary.DictionaryException#OPERATION_FAILED
  107. * OPERATION_FAILED}, {@link }
  108. * org.osid.dictionary.DictionaryException#CONFIGURATION_ERROR
  109. * CONFIGURATION_ERROR}, {@link }
  110. * org.osid.dictionary.DictionaryException#PERMISSION_DENIED
  111. * PERMISSION_DENIED}, {@link }
  112. * org.osid.dictionary.DictionaryException#UNIMPLEMENTED
  113. * UNIMPLEMENTED}, {@link }
  114. * org.osid.dictionary.DictionaryException#NULL_ARGUMENT
  115. * NULL_ARGUMENT}
  116. *
  117. * @access public
  118. */
  119. function getDictionary ( $dictionaryId ) {
  120. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  121. }
  122.  
  123. /**
  124. * Get all the Dictionaries. Iterators return a set, one at a time.
  125. *
  126. * @return object DictionaryIterator
  127. *
  128. * @throws object DictionaryException An exception with one of
  129. * the following messages defined in
  130. * org.osid.dictionary.DiictionaryException may be thrown: {@link }
  131. * org.osid.dictionary.DictionaryException#OPERATION_FAILED
  132. * OPERATION_FAILED}, {@link }
  133. * org.osid.dictionary.DictionaryException#CONFIGURATION_ERROR
  134. * CONFIGURATION_ERROR}, {@link }
  135. * org.osid.dictionary.DictionaryException#PERMISSION_DENIED
  136. * PERMISSION_DENIED}, {@link }
  137. * org.osid.dictionary.DictionaryException#UNIMPLEMENTED
  138. * UNIMPLEMENTED}
  139. *
  140. * @access public
  141. */
  142. function getDictionaries () {
  143. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  144. }
  145. }
  146.  
  147. ?>

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