Source for file Message.php

Documentation is available at Message.php

  1. <?php
  2. /**
  3. * Messages contain read-only attributes. Note that the message attributes
  4. * don't contain delivery time.
  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.usermessaging
  16. */
  17. class Message
  18. {
  19. /**
  20. * Get the content of this Message.
  21. *
  22. * @return object mixed (original type: java.io.Serializable)
  23. *
  24. * @throws object UsermessagingException An exception with
  25. * one of the following messages defined in
  26. * org.osid.usermessaging.UsermessagingException may be thrown:
  27. * {@link }
  28. * org.osid.usermessaging.UsermessagingException#OPERATION_FAILED
  29. * OPERATION_FAILED}, {@link }
  30. * org.osid.usermessaging.UsermessagingException#PERMISSION_DENIED
  31. * PERMISSION_DENIED}, {@link }
  32. * org.osid.usermessaging.UsermessagingException#CONFIGURATION_ERROR
  33. * CONFIGURATION_ERROR}, {@link }
  34. * org.osid.usermessaging.UsermessagingException#UNIMPLEMENTED
  35. * UNIMPLEMENTED}
  36. *
  37. * @access public
  38. */
  39. function getContent () {
  40. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  41. }
  42.  
  43. /**
  44. * Get the MessageType of this Message.
  45. *
  46. * @return object Type
  47. *
  48. * @throws object UsermessagingException An exception with
  49. * one of the following messages defined in
  50. * org.osid.usermessaging.UsermessagingException may be thrown:
  51. * {@link }
  52. * org.osid.usermessaging.UsermessagingException#OPERATION_FAILED
  53. * OPERATION_FAILED}, {@link }
  54. * org.osid.usermessaging.UsermessagingException#PERMISSION_DENIED
  55. * PERMISSION_DENIED}, {@link }
  56. * org.osid.usermessaging.UsermessagingException#CONFIGURATION_ERROR
  57. * CONFIGURATION_ERROR}, {@link }
  58. * org.osid.usermessaging.UsermessagingException#UNIMPLEMENTED
  59. * UNIMPLEMENTED}
  60. *
  61. * @access public
  62. */
  63. function getMessageType () {
  64. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  65. }
  66.  
  67. /**
  68. * Get the DeliveryType of this Message.
  69. *
  70. * @return object Type
  71. *
  72. * @throws object UsermessagingException An exception with
  73. * one of the following messages defined in
  74. * org.osid.usermessaging.UsermessagingException may be thrown:
  75. * {@link }
  76. * org.osid.usermessaging.UsermessagingException#OPERATION_FAILED
  77. * OPERATION_FAILED}, {@link }
  78. * org.osid.usermessaging.UsermessagingException#PERMISSION_DENIED
  79. * PERMISSION_DENIED}, {@link }
  80. * org.osid.usermessaging.UsermessagingException#CONFIGURATION_ERROR
  81. * CONFIGURATION_ERROR}, {@link }
  82. * org.osid.usermessaging.UsermessagingException#UNIMPLEMENTED
  83. * UNIMPLEMENTED}
  84. *
  85. * @access public
  86. */
  87. function getDeliveryType () {
  88. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  89. }
  90.  
  91. /**
  92. * Get the time the Message was sent.
  93. *
  94. * @return int
  95. *
  96. * @throws object UsermessagingException An exception with
  97. * one of the following messages defined in
  98. * org.osid.usermessaging.UsermessagingException may be thrown:
  99. * {@link }
  100. * org.osid.usermessaging.UsermessagingException#OPERATION_FAILED
  101. * OPERATION_FAILED}, {@link }
  102. * org.osid.usermessaging.UsermessagingException#PERMISSION_DENIED
  103. * PERMISSION_DENIED}, {@link }
  104. * org.osid.usermessaging.UsermessagingException#CONFIGURATION_ERROR
  105. * CONFIGURATION_ERROR}, {@link }
  106. * org.osid.usermessaging.UsermessagingException#UNIMPLEMENTED
  107. * UNIMPLEMENTED}
  108. *
  109. * @access public
  110. */
  111. function getMessageTimestamp () {
  112. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  113. }
  114.  
  115. /**
  116. * Get the Topic of the Message. Note that the Topic is not necessarily the
  117. * subject of the Message. The subject can be embedded in the Content.
  118. * The intent is that the Topic is the same Topic used in CourseManagement
  119. * to refer to an area of interest.
  120. *
  121. * @return string
  122. *
  123. * @throws object UsermessagingException An exception with
  124. * one of the following messages defined in
  125. * org.osid.usermessaging.UsermessagingException may be thrown:
  126. * {@link }
  127. * org.osid.usermessaging.UsermessagingException#OPERATION_FAILED
  128. * OPERATION_FAILED}, {@link }
  129. * org.osid.usermessaging.UsermessagingException#PERMISSION_DENIED
  130. * PERMISSION_DENIED}, {@link }
  131. * org.osid.usermessaging.UsermessagingException#CONFIGURATION_ERROR
  132. * CONFIGURATION_ERROR}, {@link }
  133. * org.osid.usermessaging.UsermessagingException#UNIMPLEMENTED
  134. * UNIMPLEMENTED}
  135. *
  136. * @access public
  137. */
  138. function getTopic () {
  139. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  140. }
  141.  
  142. /**
  143. * Get the agentId that sent the Message.
  144. *
  145. * @return object Id
  146. *
  147. * @throws object UsermessagingException An exception with
  148. * one of the following messages defined in
  149. * org.osid.usermessaging.UsermessagingException may be thrown:
  150. * {@link }
  151. * org.osid.usermessaging.UsermessagingException#OPERATION_FAILED
  152. * OPERATION_FAILED}, {@link }
  153. * org.osid.usermessaging.UsermessagingException#PERMISSION_DENIED
  154. * PERMISSION_DENIED}, {@link }
  155. * org.osid.usermessaging.UsermessagingException#CONFIGURATION_ERROR
  156. * CONFIGURATION_ERROR}, {@link }
  157. * org.osid.usermessaging.UsermessagingException#UNIMPLEMENTED
  158. * UNIMPLEMENTED}
  159. *
  160. * @access public
  161. */
  162. function getSender () {
  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:25:04 -0400 by phpDocumentor 1.3.0RC3