Source for file WritableLog.php

Documentation is available at WritableLog.php

  1. <?php
  2. /**
  3. * Interface WritableLog allows writing of entry items, format types, priority
  4. * types to a log. Two methods are used to write the entryItems:
  5. *
  6. * <p>
  7. * <code>appendLog(java.io.Serializable entryItem)</code> which writes the
  8. * entry to the Log,
  9. * </p>
  10. *
  11. * <p>
  12. * <code>appendLog(java.io.Serializable entryItem, org.osid.shared.Type
  13. * formatType, org.osid.shared.Type priorityType)</code> which writes the
  14. * entryItem to the Log as well as formatType and priorityType.
  15. * </p>
  16. *
  17. * <p>
  18. * The implementation sets the timestamp for the for when the entryItem was
  19. * appended to the log. The format type and the priority type can be set as
  20. * defaults for subsequent appends.
  21. * </p>
  22. *
  23. * <p>
  24. * OSID Version: 2.0
  25. * </p>
  26. *
  27. * <p>
  28. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  29. * O.K.I&#46; OSID Definition License}.
  30. * </p>
  31. *
  32. * @package org.osid.logging
  33. */
  34. class WritableLog
  35. {
  36. /**
  37. * Get the display name for this WritableLog.
  38. *
  39. * @return string
  40. *
  41. * @throws object LoggingException An exception with one of the
  42. * following messages defined in org.osid.logging.LoggingException
  43. * may be thrown: {@link }
  44. * org.osid.logging.LoggingException#UNIMPLEMENTED UNIMPLEMENTED},
  45. * {@link org.osid.logging.LoggingException#OPERATION_FAILED}
  46. * OPERATION_FAILED}, {@link }
  47. * org.osid.logging.LoggingException#CONFIGURATION_ERROR
  48. * CONFIGURATION_ERROR}, {@link }
  49. * org.osid.logging.LoggingException#PERMISSION_DENIED
  50. * PERMISSION_DENIED}
  51. *
  52. * @access public
  53. */
  54. function getDisplayName () {
  55. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  56. }
  57.  
  58. /**
  59. * Write the entryItem to the Log. The entryItem is written to the Log
  60. * using the format type and priority type explicitly set by the
  61. * application or the implementation default.
  62. *
  63. * @param object mixed $entryItem (original type: java.io.Serializable)
  64. *
  65. * @throws object LoggingException An exception with one of the
  66. * following messages defined in org.osid.logging.LoggingException
  67. * may be thrown: {@link }
  68. * org.osid.logging.LoggingException#UNIMPLEMENTED UNIMPLEMENTED},
  69. * {@link org.osid.logging.LoggingException#OPERATION_FAILED}
  70. * OPERATION_FAILED}, {@link }
  71. * org.osid.logging.LoggingException#CONFIGURATION_ERROR
  72. * CONFIGURATION_ERROR}, {@link }
  73. * org.osid.logging.LoggingException#PERMISSION_DENIED
  74. * PERMISSION_DENIED}, {@link }
  75. * org.osid.logging.LoggingException#PRIORITY_TYPE_NOT_SET
  76. * PRIORITY_TYPE_NOT_SET}, {@link }
  77. * org.osid.logging.LoggingException#FORMAT_TYPE_NOT_SET
  78. * FORMAT_TYPE_NOT_SET}, {@link }
  79. * org.osid.logging.LoggingException#NULL_ARGUMENT NULL_ARGUMENT}
  80. *
  81. * @access public
  82. */
  83. function appendLog ( $entryItem ) {
  84. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  85. }
  86.  
  87. /**
  88. * Write the entry, the priorityType and formatType to the Log.
  89. *
  90. * @param object mixed $entryItem (original type: java.io.Serializable)
  91. * @param object Type $formatType
  92. * @param object Type $priorityType
  93. *
  94. * @throws object LoggingException An exception with one of the
  95. * following messages defined in org.osid.logging.LoggingException
  96. * may be thrown: {@link }
  97. * org.osid.logging.LoggingException#UNIMPLEMENTED UNIMPLEMENTED},
  98. * {@link org.osid.logging.LoggingException#OPERATION_FAILED}
  99. * OPERATION_FAILED}, {@link }
  100. * org.osid.logging.LoggingException#CONFIGURATION_ERROR
  101. * CONFIGURATION_ERROR}, {@link }
  102. * org.osid.logging.LoggingException#PERMISSION_DENIED
  103. * PERMISSION_DENIED}, {@link }
  104. * org.osid.logging.LoggingException#UNKNOWN_TYPE UNKNOWN_TYPE},
  105. * {@link org.osid.logging.LoggingException#NULL_ARGUMENT}
  106. * NULL_ARGUMENT}
  107. *
  108. * @access public
  109. */
  110. function appendLogWithTypes ( $entryItem, $formatType, $priorityType ) {
  111. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  112. }
  113.  
  114. /**
  115. * Assign the priorityType for all subsequent writes during the lifetime of
  116. * this instance. PriorityType has meaning to the caller of this method.
  117. *
  118. * @param object Type $priorityType
  119. *
  120. * @throws object LoggingException An exception with one of the
  121. * following messages defined in org.osid.logging.LoggingException
  122. * may be thrown: {@link }
  123. * org.osid.logging.LoggingException#UNIMPLEMENTED UNIMPLEMENTED},
  124. * {@link org.osid.logging.LoggingException#OPERATION_FAILED}
  125. * OPERATION_FAILED}, {@link }
  126. * org.osid.logging.LoggingException#CONFIGURATION_ERROR
  127. * CONFIGURATION_ERROR}, {@link }
  128. * org.osid.logging.LoggingException#PERMISSION_DENIED
  129. * PERMISSION_DENIED}, {@link }
  130. * org.osid.logging.LoggingException#UNKNOWN_TYPE UNKNOWN_TYPE},
  131. * {@link org.osid.logging.LoggingException#NULL_ARGUMENT}
  132. * NULL_ARGUMENT}
  133. *
  134. * @access public
  135. */
  136. function assignPriorityType ( $priorityType ) {
  137. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  138. }
  139.  
  140. /**
  141. * Assign the formatType for all subsequent writes during the lifetime of
  142. * this instance. FormatType has meaning to the caller of this method.
  143. *
  144. * @param object Type $formatType
  145. *
  146. * @throws object LoggingException An exception with one of the
  147. * following messages defined in org.osid.logging.LoggingException
  148. * may be thrown: {@link }
  149. * org.osid.logging.LoggingException#UNIMPLEMENTED UNIMPLEMENTED},
  150. * {@link org.osid.logging.LoggingException#OPERATION_FAILED}
  151. * OPERATION_FAILED}, {@link }
  152. * org.osid.logging.LoggingException#CONFIGURATION_ERROR
  153. * CONFIGURATION_ERROR}, {@link }
  154. * org.osid.logging.LoggingException#PERMISSION_DENIED
  155. * PERMISSION_DENIED}, {@link }
  156. * org.osid.logging.LoggingException#UNKNOWN_TYPE UNKNOWN_TYPE},
  157. * {@link org.osid.logging.LoggingException#NULL_ARGUMENT}
  158. * NULL_ARGUMENT}
  159. *
  160. * @access public
  161. */
  162. function assignFormatType ( $formatType ) {
  163. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  164. }
  165. }
  166.  
  167. ?>

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