SloodleModuleChat.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <!-- template designed by Marco Von Ballmoos -->
  6. <title>Docs For Class SloodleModuleChat</title>
  7. <link rel="stylesheet" href="../media/stylesheet.css" />
  8. <script src="../media/lib/classTree.js"></script>
  9. <script language="javascript" type="text/javascript">
  10. var imgPlus = new Image();
  11. var imgMinus = new Image();
  12. imgPlus.src = "../media/images/plus.png";
  13. imgMinus.src = "../media/images/minus.png";
  14. function showNode(Node){
  15. switch(navigator.family){
  16. case 'nn4':
  17. // Nav 4.x code fork...
  18. var oTable = document.layers["span" + Node];
  19. var oImg = document.layers["img" + Node];
  20. break;
  21. case 'ie4':
  22. // IE 4/5 code fork...
  23. var oTable = document.all["span" + Node];
  24. var oImg = document.all["img" + Node];
  25. break;
  26. case 'gecko':
  27. // Standards Compliant code fork...
  28. var oTable = document.getElementById("span" + Node);
  29. var oImg = document.getElementById("img" + Node);
  30. break;
  31. }
  32. oImg.src = imgMinus.src;
  33. oTable.style.display = "block";
  34. }
  35. function hideNode(Node){
  36. switch(navigator.family){
  37. case 'nn4':
  38. // Nav 4.x code fork...
  39. var oTable = document.layers["span" + Node];
  40. var oImg = document.layers["img" + Node];
  41. break;
  42. case 'ie4':
  43. // IE 4/5 code fork...
  44. var oTable = document.all["span" + Node];
  45. var oImg = document.all["img" + Node];
  46. break;
  47. case 'gecko':
  48. // Standards Compliant code fork...
  49. var oTable = document.getElementById("span" + Node);
  50. var oImg = document.getElementById("img" + Node);
  51. break;
  52. }
  53. oImg.src = imgPlus.src;
  54. oTable.style.display = "none";
  55. }
  56. function nodeIsVisible(Node){
  57. switch(navigator.family){
  58. case 'nn4':
  59. // Nav 4.x code fork...
  60. var oTable = document.layers["span" + Node];
  61. break;
  62. case 'ie4':
  63. // IE 4/5 code fork...
  64. var oTable = document.all["span" + Node];
  65. break;
  66. case 'gecko':
  67. // Standards Compliant code fork...
  68. var oTable = document.getElementById("span" + Node);
  69. break;
  70. }
  71. return (oTable && oTable.style.display == "block");
  72. }
  73. function toggleNodeVisibility(Node){
  74. if (nodeIsVisible(Node)){
  75. hideNode(Node);
  76. }else{
  77. showNode(Node);
  78. }
  79. }
  80. </script>
  81. </head>
  82. <body>
  83. <div class="page-body">
  84. <h2 class="class-name"><img src="../media/images/Class_logo.png"
  85. alt=" Class"
  86. title=" Class"
  87. style="vertical-align: middle"> SloodleModuleChat</h2>
  88. <a name="sec-description"></a>
  89. <div class="info-box">
  90. <div class="info-box-title">Description</div>
  91. <div class="nav-bar">
  92. <span class="disabled">Description</span> |
  93. <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
  94. | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  95. </div>
  96. <div class="info-box-body">
  97. <!-- ========== Info from phpDoc block ========= -->
  98. <p class="short-description">The Sloodle chat module class.</p>
  99. <p class="notes">
  100. Located in <a class="field" href="_lib---modules---module_chat.php.html">/lib/modules/module_chat.php</a> (line <span class="field"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a23">23</a></span>)
  101. </p>
  102. <pre><a href="../sloodle/SloodleModule.html">SloodleModule</a>
  103. |
  104. --SloodleModuleChat</pre>
  105. </div>
  106. </div>
  107. <a name="sec-var-summary"></a>
  108. <div class="info-box">
  109. <div class="info-box-title">Variable Summary</span></div>
  110. <div class="nav-bar">
  111. <a href="#sec-description">Description</a> |
  112. <span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
  113. |
  114. <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  115. </div>
  116. <div class="info-box-body">
  117. <div class="var-summary">
  118. <div class="var-title">
  119. <img src="../media/images/PrivateVariable.png" alt=" " />
  120. <span class="var-type">object</span>
  121. <a href="#$cm" title="details" class="var-name">$cm</a>
  122. </div>
  123. <div class="var-title">
  124. <img src="../media/images/PrivateVariable.png" alt=" " />
  125. <span class="var-type">object</span>
  126. <a href="#$moodle_chat_instance" title="details" class="var-name">$moodle_chat_instance</a>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. <a name="sec-method-summary"></a>
  132. <div class="info-box">
  133. <div class="info-box-title">Method Summary</span></div>
  134. <div class="nav-bar">
  135. <a href="#sec-description">Description</a> |
  136. <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
  137. |
  138. <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
  139. </div>
  140. <div class="info-box-body">
  141. <div class="method-summary">
  142. <div class="method-definition">
  143. <img src="../media/images/Constructor.png" alt=" "/>
  144. <span class="method-result">SloodleModuleChat</span>
  145. <a href="#SloodleModuleChat" title="details" class="method-name">SloodleModuleChat</a>
  146. (<span class="var-type"></span>&nbsp;<span class="var-name">&$_session</span>)
  147. </div>
  148. <div class="method-definition">
  149. <img src="../media/images/Method.png" alt=" "/>
  150. <span class="method-result">bool</span>
  151. <a href="#add_message" title="details" class="method-name">add_message</a>
  152. (<span class="var-type">string</span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$user</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$timestamp</span> = <span class="var-default">null</span>])
  153. </div>
  154. <div class="method-definition">
  155. <img src="../media/images/Method.png" alt=" "/>
  156. <span class="method-result">array</span>
  157. <a href="#get_chat_history" title="details" class="method-name">get_chat_history</a>
  158. ([<span class="var-type">int</span>&nbsp;<span class="var-name">$time</span> = <span class="var-default">60</span>])
  159. </div>
  160. <div class="method-definition">
  161. <img src="../media/images/Method.png" alt=" "/>
  162. <span class="method-result">mixed</span>
  163. <a href="#get_course_id" title="details" class="method-name">get_course_id</a>
  164. ()
  165. </div>
  166. <div class="method-definition">
  167. <img src="../media/images/Method.png" alt=" "/>
  168. <span class="method-result">int</span>
  169. <a href="#get_creation_time" title="details" class="method-name">get_creation_time</a>
  170. ()
  171. </div>
  172. <div class="method-definition">
  173. <img src="../media/images/Method.png" alt=" "/>
  174. <span class="method-result">string</span>
  175. <a href="#get_intro" title="details" class="method-name">get_intro</a>
  176. ()
  177. </div>
  178. <div class="method-definition">
  179. <img src="../media/images/Method.png" alt=" "/>
  180. <span class="method-result">int</span>
  181. <a href="#get_modification_time" title="details" class="method-name">get_modification_time</a>
  182. ()
  183. </div>
  184. <div class="method-definition">
  185. <img src="../media/images/Method.png" alt=" "/>
  186. <span class="method-result">string</span>
  187. <a href="#get_name" title="details" class="method-name">get_name</a>
  188. ()
  189. </div>
  190. <div class="method-definition">
  191. <img src="../media/images/Method.png" alt=" "/>
  192. <span class="method-result">string</span>
  193. <a href="#get_type" title="details" class="method-name">get_type</a>
  194. ()
  195. </div>
  196. <div class="method-definition">
  197. <img src="../media/images/Method.png" alt=" "/>
  198. <span class="method-result">string</span>
  199. <a href="#get_type_full" title="details" class="method-name">get_type_full</a>
  200. ()
  201. </div>
  202. <div class="method-definition">
  203. <img src="../media/images/Method.png" alt=" "/>
  204. <span class="method-result">bool</span>
  205. <a href="#load" title="details" class="method-name">load</a>
  206. (<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span>)
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. <a name="sec-vars"></a>
  212. <div class="info-box">
  213. <div class="info-box-title">Variables</div>
  214. <div class="nav-bar">
  215. <a href="#sec-description">Description</a> |
  216. <a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
  217. |
  218. <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  219. </div>
  220. <div class="info-box-body">
  221. <a name="var$cm" id="$cm"><!-- --></A>
  222. <div class="evenrow">
  223. <div class="var-header">
  224. <img src="../media/images/PrivateVariable.png" />
  225. <span class="var-title">
  226. <span class="var-type">object</span>
  227. <span class="var-name">$cm</span>
  228. = <span class="var-default"> null</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a33">33</a></span>)
  229. </span>
  230. </div>
  231. <!-- ========== Info from phpDoc block ========= -->
  232. <p class="short-description">Internal for Moodle only - course module instance.</p>
  233. <p class="description"><p>Corresponds to one record from the Moodle 'course_modules' table.</p></p>
  234. <ul class="tags">
  235. <li><span class="field">access:</span> private</li>
  236. </ul>
  237. </div>
  238. <a name="var$moodle_chat_instance" id="$moodle_chat_instance"><!-- --></A>
  239. <div class="oddrow">
  240. <div class="var-header">
  241. <img src="../media/images/PrivateVariable.png" />
  242. <span class="var-title">
  243. <span class="var-type">object</span>
  244. <span class="var-name">$moodle_chat_instance</span>
  245. = <span class="var-default"> null</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a41">41</a></span>)
  246. </span>
  247. </div>
  248. <!-- ========== Info from phpDoc block ========= -->
  249. <p class="short-description">Internal only - Moodle chat module instance database object.</p>
  250. <p class="description"><p>Corresponds to one record from the Moodle 'chat' table.</p></p>
  251. <ul class="tags">
  252. <li><span class="field">access:</span> private</li>
  253. </ul>
  254. </div>
  255. <h4>Inherited Variables</h4>
  256. <A NAME='inherited_vars'><!-- --></A>
  257. <p>Inherited from <span class="classname"><a href="../sloodle/SloodleModule.html">SloodleModule</a></span></p>
  258. <blockquote>
  259. <img src="../media/images/Variable.png" />
  260. <span class="var-title">
  261. <span class="var-name"><a href="../sloodle/SloodleModule.html#var$_session">SloodleModule::$_session</a></span><br>
  262. </span>
  263. </blockquote>
  264. </div>
  265. </div>
  266. <a name="sec-methods"></a>
  267. <div class="info-box">
  268. <div class="info-box-title">Methods</div>
  269. <div class="nav-bar">
  270. <a href="#sec-description">Description</a> |
  271. <a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
  272. <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
  273. </div>
  274. <div class="info-box-body">
  275. <A NAME='method_detail'></A>
  276. <a name="methodSloodleModuleChat" id="SloodleModuleChat"><!-- --></a>
  277. <div class="evenrow">
  278. <div class="method-header">
  279. <img src="../media/images/Constructor.png" />
  280. <span class="method-title">Constructor SloodleModuleChat</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a50">50</a></span>)
  281. </div>
  282. <!-- ========== Info from phpDoc block ========= -->
  283. <p class="short-description">Constructor</p>
  284. <div class="method-signature">
  285. <span class="method-result">SloodleModuleChat</span>
  286. <span class="method-name">
  287. SloodleModuleChat
  288. </span>
  289. (<span class="var-type"></span>&nbsp;<span class="var-name">&$_session</span>)
  290. </div>
  291. <ul class="parameters">
  292. <li>
  293. <span class="var-type"></span>
  294. <span class="var-name">&$_session</span> </li>
  295. </ul>
  296. </div>
  297. <a name="methodadd_message" id="add_message"><!-- --></a>
  298. <div class="oddrow">
  299. <div class="method-header">
  300. <img src="../media/images/Method.png" />
  301. <span class="method-title">add_message</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a140">140</a></span>)
  302. </div>
  303. <!-- ========== Info from phpDoc block ========= -->
  304. <p class="short-description">Adds a new chat message.</p>
  305. <p class="description"><p><strong>Note:</strong> if the $author parameter is omitted or invalid, then the function will attempt to use the <a href="../sloodle/SloodleUser.html">SloodleUser</a> member of the current <a href="../sloodle/SloodleSession.html">SloodleSession</a> object; If that is unavailable, then it will try to use the user currently 'logged-in' to the VLE (i.e. the $USER variable in Moodle). If all else fails, it will attempt to attribute the message to the guest user.</p></p>
  306. <ul class="tags">
  307. <li><span class="field">return:</span> True if successful, or false otherwise</li>
  308. </ul>
  309. <div class="method-signature">
  310. <span class="method-result">bool</span>
  311. <span class="method-name">
  312. add_message
  313. </span>
  314. (<span class="var-type">string</span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type">mixed</span>&nbsp;<span class="var-name">$user</span> = <span class="var-default">null</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$timestamp</span> = <span class="var-default">null</span>])
  315. </div>
  316. <ul class="parameters">
  317. <li>
  318. <span class="var-type">string</span>
  319. <span class="var-name">$message</span><span class="var-description">: The text of the message.</span> </li>
  320. <li>
  321. <span class="var-type">mixed</span>
  322. <span class="var-name">$user</span><span class="var-description">: The user who wrote the message -- either a VLE user ID or (preferably) a <a href="../sloodle/SloodleUser.html">SloodleUser</a> object. If null, then the user in the current SloodleSession object will be used. At that fails, then the guest user is used if possible.</span> </li>
  323. <li>
  324. <span class="var-type">int</span>
  325. <span class="var-name">$timestamp</span><span class="var-description">: Timestamp of the message. If omitted or &lt;= 0 then the current timestamp is used</span> </li>
  326. </ul>
  327. </div>
  328. <a name="methodget_chat_history" id="get_chat_history"><!-- --></a>
  329. <div class="evenrow">
  330. <div class="method-header">
  331. <img src="../media/images/Method.png" />
  332. <span class="method-title">get_chat_history</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a94">94</a></span>)
  333. </div>
  334. <!-- ========== Info from phpDoc block ========= -->
  335. <p class="short-description">Gets a recent history of messages from the chatroom.</p>
  336. <ul class="tags">
  337. <li><span class="field">return:</span> A numeric array of <a href="../sloodle/SloodleChatMessage.html">SloodleChatMessage</a> object, in order of oldest to newest</li>
  338. </ul>
  339. <div class="method-signature">
  340. <span class="method-result">array</span>
  341. <span class="method-name">
  342. get_chat_history
  343. </span>
  344. ([<span class="var-type">int</span>&nbsp;<span class="var-name">$time</span> = <span class="var-default">60</span>])
  345. </div>
  346. <ul class="parameters">
  347. <li>
  348. <span class="var-type">int</span>
  349. <span class="var-name">$time</span><span class="var-description">: How far back to search the database (in seconds) (default: 1 minute)</span> </li>
  350. </ul>
  351. </div>
  352. <a name="methodget_course_id" id="get_course_id"><!-- --></a>
  353. <div class="oddrow">
  354. <div class="method-header">
  355. <img src="../media/images/Method.png" />
  356. <span class="method-title">get_course_id</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a222">222</a></span>)
  357. </div>
  358. <!-- ========== Info from phpDoc block ========= -->
  359. <p class="short-description">Gets the identifier of the course this controller belongs to.</p>
  360. <ul class="tags">
  361. <li><span class="field">return:</span> Course identifier. Type depends on VLE. (In Moodle, it will be an integer).</li>
  362. </ul>
  363. <div class="method-signature">
  364. <span class="method-result">mixed</span>
  365. <span class="method-name">
  366. get_course_id
  367. </span>
  368. ()
  369. </div>
  370. <hr class="separator" />
  371. <div class="notes">Redefinition of:</div>
  372. <dl>
  373. <dt><a href="../sloodle/SloodleModule.html#methodget_course_id">SloodleModule::get_course_id()</a></dt>
  374. <dd>Gets the identifier of the course this controller belongs to.</dd>
  375. </dl>
  376. </div>
  377. <a name="methodget_creation_time" id="get_creation_time"><!-- --></a>
  378. <div class="evenrow">
  379. <div class="method-header">
  380. <img src="../media/images/Method.png" />
  381. <span class="method-title">get_creation_time</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a231">231</a></span>)
  382. </div>
  383. <!-- ========== Info from phpDoc block ========= -->
  384. <p class="short-description">Gets the time at which this instance was created, or 0 if unknown.</p>
  385. <ul class="tags">
  386. <li><span class="field">return:</span> Timestamp</li>
  387. </ul>
  388. <div class="method-signature">
  389. <span class="method-result">int</span>
  390. <span class="method-name">
  391. get_creation_time
  392. </span>
  393. ()
  394. </div>
  395. <hr class="separator" />
  396. <div class="notes">Redefinition of:</div>
  397. <dl>
  398. <dt><a href="../sloodle/SloodleModule.html#methodget_creation_time">SloodleModule::get_creation_time()</a></dt>
  399. <dd>Gets the time at which this instance was created, or 0 if unknown.</dd>
  400. </dl>
  401. </div>
  402. <a name="methodget_intro" id="get_intro"><!-- --></a>
  403. <div class="oddrow">
  404. <div class="method-header">
  405. <img src="../media/images/Method.png" />
  406. <span class="method-title">get_intro</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a213">213</a></span>)
  407. </div>
  408. <!-- ========== Info from phpDoc block ========= -->
  409. <p class="short-description">Gets the intro description of this module instance, if available.</p>
  410. <ul class="tags">
  411. <li><span class="field">return:</span> The intro description of this controller</li>
  412. </ul>
  413. <div class="method-signature">
  414. <span class="method-result">string</span>
  415. <span class="method-name">
  416. get_intro
  417. </span>
  418. ()
  419. </div>
  420. <hr class="separator" />
  421. <div class="notes">Redefinition of:</div>
  422. <dl>
  423. <dt><a href="../sloodle/SloodleModule.html#methodget_intro">SloodleModule::get_intro()</a></dt>
  424. <dd>Gets the intro description of this module instance, if available.</dd>
  425. </dl>
  426. </div>
  427. <a name="methodget_modification_time" id="get_modification_time"><!-- --></a>
  428. <div class="evenrow">
  429. <div class="method-header">
  430. <img src="../media/images/Method.png" />
  431. <span class="method-title">get_modification_time</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a240">240</a></span>)
  432. </div>
  433. <!-- ========== Info from phpDoc block ========= -->
  434. <p class="short-description">Gets the time at which this instance was last modified, or 0 if unknown.</p>
  435. <ul class="tags">
  436. <li><span class="field">return:</span> Timestamp</li>
  437. </ul>
  438. <div class="method-signature">
  439. <span class="method-result">int</span>
  440. <span class="method-name">
  441. get_modification_time
  442. </span>
  443. ()
  444. </div>
  445. <hr class="separator" />
  446. <div class="notes">Redefinition of:</div>
  447. <dl>
  448. <dt><a href="../sloodle/SloodleModule.html#methodget_modification_time">SloodleModule::get_modification_time()</a></dt>
  449. <dd>Gets the time at which this instance was last modified, or 0 if unknown.</dd>
  450. </dl>
  451. </div>
  452. <a name="methodget_name" id="get_name"><!-- --></a>
  453. <div class="oddrow">
  454. <div class="method-header">
  455. <img src="../media/images/Method.png" />
  456. <span class="method-title">get_name</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a204">204</a></span>)
  457. </div>
  458. <!-- ========== Info from phpDoc block ========= -->
  459. <p class="short-description">Gets the name of this module instance.</p>
  460. <ul class="tags">
  461. <li><span class="field">return:</span> The name of this controller</li>
  462. </ul>
  463. <div class="method-signature">
  464. <span class="method-result">string</span>
  465. <span class="method-name">
  466. get_name
  467. </span>
  468. ()
  469. </div>
  470. <hr class="separator" />
  471. <div class="notes">Redefinition of:</div>
  472. <dl>
  473. <dt><a href="../sloodle/SloodleModule.html#methodget_name">SloodleModule::get_name()</a></dt>
  474. <dd>Gets the name of this module instance.</dd>
  475. </dl>
  476. </div>
  477. <a name="methodget_type" id="get_type"><!-- --></a>
  478. <div class="evenrow">
  479. <div class="method-header">
  480. <img src="../media/images/Method.png" />
  481. <span class="method-title">get_type</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a250">250</a></span>)
  482. </div>
  483. <!-- ========== Info from phpDoc block ========= -->
  484. <p class="short-description">Gets the short type name of this instance.</p>
  485. <div class="method-signature">
  486. <span class="method-result">string</span>
  487. <span class="method-name">
  488. get_type
  489. </span>
  490. ()
  491. </div>
  492. <hr class="separator" />
  493. <div class="notes">Redefinition of:</div>
  494. <dl>
  495. <dt><a href="../sloodle/SloodleModule.html#methodget_type">SloodleModule::get_type()</a></dt>
  496. <dd>Gets the short type name of this instance.</dd>
  497. </dl>
  498. </div>
  499. <a name="methodget_type_full" id="get_type_full"><!-- --></a>
  500. <div class="oddrow">
  501. <div class="method-header">
  502. <img src="../media/images/Method.png" />
  503. <span class="method-title">get_type_full</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a260">260</a></span>)
  504. </div>
  505. <!-- ========== Info from phpDoc block ========= -->
  506. <p class="short-description">Gets the full type name of this instance, according to the current language pack, if available.</p>
  507. <p class="description"><p>Note: should be overridden by sub-classes.</p></p>
  508. <ul class="tags">
  509. <li><span class="field">return:</span> Full type name if possible, or the short name otherwise.</li>
  510. </ul>
  511. <div class="method-signature">
  512. <span class="method-result">string</span>
  513. <span class="method-name">
  514. get_type_full
  515. </span>
  516. ()
  517. </div>
  518. <hr class="separator" />
  519. <div class="notes">Redefinition of:</div>
  520. <dl>
  521. <dt><a href="../sloodle/SloodleModule.html#methodget_type_full">SloodleModule::get_type_full()</a></dt>
  522. <dd>Gets the full type name of this instance, according to the current language pack, if available.</dd>
  523. </dl>
  524. </div>
  525. <a name="methodload" id="load"><!-- --></a>
  526. <div class="evenrow">
  527. <div class="method-header">
  528. <img src="../media/images/Method.png" />
  529. <span class="method-title">load</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__libmodulesmodule_chat.php.html#a62">62</a></span>)
  530. </div>
  531. <!-- ========== Info from phpDoc block ========= -->
  532. <p class="short-description">Loads data from the database.</p>
  533. <p class="description"><p>Note: even if the function fails, it may still have overwritten some or all existing data in the object.</p></p>
  534. <ul class="tags">
  535. <li><span class="field">return:</span> True if successful, or false otherwise</li>
  536. </ul>
  537. <div class="method-signature">
  538. <span class="method-result">bool</span>
  539. <span class="method-name">
  540. load
  541. </span>
  542. (<span class="var-type">mixed</span>&nbsp;<span class="var-name">$id</span>)
  543. </div>
  544. <ul class="parameters">
  545. <li>
  546. <span class="var-type">mixed</span>
  547. <span class="var-name">$id</span><span class="var-description">: The site-wide unique identifier for all modules. Type depends on VLE. On Moodle, it is an integer course module identifier ('id' field of 'course_modules' table)</span> </li>
  548. </ul>
  549. <hr class="separator" />
  550. <div class="notes">Redefinition of:</div>
  551. <dl>
  552. <dt><a href="../sloodle/SloodleModule.html#methodload">SloodleModule::load()</a></dt>
  553. <dd>Loads data from the database.</dd>
  554. </dl>
  555. </div>
  556. <h4>Inherited Methods</h4>
  557. <a name='inherited_methods'><!-- --></a>
  558. <!-- =========== Summary =========== -->
  559. <p>Inherited From <span class="classname"><a href="../sloodle/SloodleModule.html">SloodleModule</a></span></p>
  560. <blockquote>
  561. <img src="../media/images/Constructor.png" alt=" "/>
  562. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodSloodleModule">SloodleModule::SloodleModule()</a></span><br>
  563. <img src="../media/images/Method.png" alt=" "/>
  564. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_course_id">SloodleModule::get_course_id()</a></span><br>
  565. <img src="../media/images/Method.png" alt=" "/>
  566. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_creation_time">SloodleModule::get_creation_time()</a></span><br>
  567. <img src="../media/images/Method.png" alt=" "/>
  568. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_intro">SloodleModule::get_intro()</a></span><br>
  569. <img src="../media/images/Method.png" alt=" "/>
  570. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_modification_time">SloodleModule::get_modification_time()</a></span><br>
  571. <img src="../media/images/Method.png" alt=" "/>
  572. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_name">SloodleModule::get_name()</a></span><br>
  573. <img src="../media/images/Method.png" alt=" "/>
  574. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_type">SloodleModule::get_type()</a></span><br>
  575. <img src="../media/images/Method.png" alt=" "/>
  576. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodget_type_full">SloodleModule::get_type_full()</a></span><br>
  577. <img src="../media/images/Method.png" alt=" "/>
  578. <span class="method-name"><a href="../sloodle/SloodleModule.html#methodload">SloodleModule::load()</a></span><br>
  579. </blockquote>
  580. </div>
  581. </div>
  582. <p class="notes" id="credit">
  583. Documentation generated on Fri, 17 Jul 2009 11:01:56 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
  584. </p>
  585. </div></body>
  586. </html>