SloodlePluginBase.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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 SloodlePluginBase</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"> SloodlePluginBase</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-descendents">Descendents</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">Base class for all SLOODLE plugins.</p>
  99. <p class="description"><p>All SLOODLE plugins should be derived from this (directly or indirectly). Specific plugin types will likely have their own base classes, which should be sub-classes of this. For example, the Presenter has plugin base classes for &quot;slide&quot; and &quot;import&quot; plugins. New plugins should be derived directly from those.</p><p>Plugin classes should have names starting with &quot;SloodlePlugin&quot;. Make sure your class name does not conflict with any existing plugin classes, even if it is a different type of plugin. Instantiating a plugin class should require no parameters, and should perform minimal processing. This is to allow the plugin loader to be as efficient as possible.</p></p>
  100. <p class="notes">
  101. Located in <a class="field" href="_plugin---_base.php.html">/plugin/_base.php</a> (line <span class="field"><a href="../__filesource/fsource_sloodle__plugin_base.php.html#a32">32</a></span>)
  102. </p>
  103. <pre></pre>
  104. </div>
  105. </div>
  106. <a name="sec-descendents"></a>
  107. <div class="info-box">
  108. <div class="info-box-title">Direct descendents</div>
  109. <div class="nav-bar">
  110. <a href="#sec-description">Description</a> |
  111. <span class="disabled">Descendents</span>
  112. | <a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
  113. </div>
  114. <div class="info-box-body">
  115. <table cellpadding="2" cellspacing="0" class="class-table">
  116. <tr>
  117. <th class="class-table-header">Class</th>
  118. <th class="class-table-header">Description</th>
  119. </tr>
  120. <tr>
  121. <td style="padding-right: 2em; white-space: nowrap">
  122. <img src="../media/images/Class.png"
  123. alt=" class"
  124. title=" class"
  125. style="vertical-align: center"/>
  126. <a href="../sloodle/SloodlePluginBasePresenterSlide.html">SloodlePluginBasePresenterSlide</a>
  127. </td>
  128. <td>
  129. Base class for plugins which provide slide types for the SLOODLE Presenter.
  130. </td>
  131. </tr>
  132. <tr>
  133. <td style="padding-right: 2em; white-space: nowrap">
  134. <img src="../media/images/Class.png"
  135. alt=" class"
  136. title=" class"
  137. style="vertical-align: center"/>
  138. <a href="../sloodle/SloodlePluginBasePresenterImporter.html">SloodlePluginBasePresenterImporter</a>
  139. </td>
  140. <td>
  141. Base class for plugins which provide slide importers for the SLOODLE Presenter.
  142. </td>
  143. </tr>
  144. </table>
  145. </div>
  146. </div>
  147. <a name="sec-method-summary"></a>
  148. <div class="info-box">
  149. <div class="info-box-title">Method Summary</span></div>
  150. <div class="nav-bar">
  151. <a href="#sec-description">Description</a> |
  152. <a href="#sec-descendents">Descendants</a> |
  153. <span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
  154. </div>
  155. <div class="info-box-body">
  156. <div class="method-summary">
  157. <div class="method-definition">
  158. <img src="../media/images/Method.png" alt=" "/>
  159. <span class="method-result">void</span>
  160. <a href="#get_id" title="details" class="method-name">get_id</a>
  161. ()
  162. </div>
  163. <div class="method-definition">
  164. <img src="../media/images/Method.png" alt=" "/>
  165. <span class="method-result">string</span>
  166. <a href="#get_plugin_description" title="details" class="method-name">get_plugin_description</a>
  167. ([<span class="var-type">string</span>&nbsp;<span class="var-name">$lang</span> = <span class="var-default">null</span>])
  168. </div>
  169. <div class="method-definition">
  170. <img src="../media/images/Method.png" alt=" "/>
  171. <span class="method-result">string</span>
  172. <a href="#get_plugin_name" title="details" class="method-name">get_plugin_name</a>
  173. ([<span class="var-type">string</span>&nbsp;<span class="var-name">$lang</span> = <span class="var-default">null</span>])
  174. </div>
  175. <div class="method-definition">
  176. <img src="../media/images/Method.png" alt=" "/>
  177. <span class="method-result">int</span>
  178. <a href="#get_version" title="details" class="method-name">get_version</a>
  179. ()
  180. </div>
  181. </div>
  182. </div>
  183. </div>
  184. <a name="sec-methods"></a>
  185. <div class="info-box">
  186. <div class="info-box-title">Methods</div>
  187. <div class="nav-bar">
  188. <a href="#sec-description">Description</a> |
  189. <a href="#sec-descendents">Descendents</a> |
  190. <a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
  191. </div>
  192. <div class="info-box-body">
  193. <A NAME='method_detail'></A>
  194. <a name="methodget_id" id="get_id"><!-- --></a>
  195. <div class="oddrow">
  196. <div class="method-header">
  197. <img src="../media/images/Method.png" />
  198. <span class="method-title">get_id</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__plugin_base.php.html#a70">70</a></span>)
  199. </div>
  200. <!-- ========== Info from phpDoc block ========= -->
  201. <p class="short-description">Gets the identifier of this plugin.</p>
  202. <p class="description"><p>This can be overridden, but should usually not be. This ID is just the name of the class</p></p>
  203. <div class="method-signature">
  204. <span class="method-result">void</span>
  205. <span class="method-name">
  206. get_id
  207. </span>
  208. ()
  209. </div>
  210. </div>
  211. <a name="methodget_plugin_description" id="get_plugin_description"><!-- --></a>
  212. <div class="evenrow">
  213. <div class="method-header">
  214. <img src="../media/images/Method.png" />
  215. <span class="method-title">get_plugin_description</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__plugin_base.php.html#a60">60</a></span>)
  216. </div>
  217. <!-- ========== Info from phpDoc block ========= -->
  218. <p class="short-description">Gets the human-readable description of this plugin.</p>
  219. <p class="description"><p>This should be overridden by base classes. If not, it will just return an empty string.</p></p>
  220. <ul class="tags">
  221. <li><span class="field">return:</span> The human-readable description of this plugin</li>
  222. <li><span class="field">access:</span> public</li>
  223. </ul>
  224. <div class="method-signature">
  225. <span class="method-result">string</span>
  226. <span class="method-name">
  227. get_plugin_description
  228. </span>
  229. ([<span class="var-type">string</span>&nbsp;<span class="var-name">$lang</span> = <span class="var-default">null</span>])
  230. </div>
  231. <ul class="parameters">
  232. <li>
  233. <span class="var-type">string</span>
  234. <span class="var-name">$lang</span><span class="var-description">: Optional -- can specify the language we want the description in, as an identifier like &quot;en_utf8&quot;. If unspecified, then the current Moodle language should be used.</span> </li>
  235. </ul>
  236. <hr class="separator" />
  237. <div class="notes">Redefined in descendants as:</div>
  238. <ul class="redefinitions">
  239. <li>
  240. <a href="../sloodle/SloodlePluginPresenterPDFImporter.html#methodget_plugin_description">SloodlePluginPresenterPDFImporter::get_plugin_description()</a>
  241. : Gets the human-readable description of this plugin.
  242. </li>
  243. </ul>
  244. </div>
  245. <a name="methodget_plugin_name" id="get_plugin_name"><!-- --></a>
  246. <div class="oddrow">
  247. <div class="method-header">
  248. <img src="../media/images/Method.png" />
  249. <span class="method-title">get_plugin_name</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__plugin_base.php.html#a48">48</a></span>)
  250. </div>
  251. <!-- ========== Info from phpDoc block ========= -->
  252. <p class="short-description">Gets the human-readable name of this plugin.</p>
  253. <p class="description"><p>This MUST be overridden by base classes. If not, it will just return the name of the class.</p></p>
  254. <ul class="tags">
  255. <li><span class="field">return:</span> The human-readable name of this plugin</li>
  256. <li><span class="field">access:</span> public</li>
  257. </ul>
  258. <div class="method-signature">
  259. <span class="method-result">string</span>
  260. <span class="method-name">
  261. get_plugin_name
  262. </span>
  263. ([<span class="var-type">string</span>&nbsp;<span class="var-name">$lang</span> = <span class="var-default">null</span>])
  264. </div>
  265. <ul class="parameters">
  266. <li>
  267. <span class="var-type">string</span>
  268. <span class="var-name">$lang</span><span class="var-description">: Optional -- can specify the language we want the plugin name in, as an identifier like &quot;en_utf8&quot;. If unspecified, then the current Moodle language should be used.</span> </li>
  269. </ul>
  270. <hr class="separator" />
  271. <div class="notes">Redefined in descendants as:</div>
  272. <ul class="redefinitions">
  273. <li>
  274. <a href="../sloodle/SloodlePluginPresenterSlideImage.html#methodget_plugin_name">SloodlePluginPresenterSlideImage::get_plugin_name()</a>
  275. : Gets the human-readable name of this plugin.
  276. </li>
  277. <li>
  278. <a href="../sloodle/SloodlePluginPresenterSlideVideo.html#methodget_plugin_name">SloodlePluginPresenterSlideVideo::get_plugin_name()</a>
  279. : Gets the human-readable name of this plugin.
  280. </li>
  281. <li>
  282. <a href="../sloodle/SloodlePluginPresenterSlideWeb.html#methodget_plugin_name">SloodlePluginPresenterSlideWeb::get_plugin_name()</a>
  283. : Gets the human-readable name of this plugin.
  284. </li>
  285. <li>
  286. <a href="../sloodle/SloodlePluginPresenterPDFImporter.html#methodget_plugin_name">SloodlePluginPresenterPDFImporter::get_plugin_name()</a>
  287. : Gets the human-readable name of this plugin.
  288. </li>
  289. </ul>
  290. </div>
  291. <a name="methodget_version" id="get_version"><!-- --></a>
  292. <div class="evenrow">
  293. <div class="method-header">
  294. <img src="../media/images/Method.png" />
  295. <span class="method-title">get_version</span> (line <span class="line-number"><a href="../__filesource/fsource_sloodle__plugin_base.php.html#a85">85</a></span>)
  296. </div>
  297. <!-- ========== Info from phpDoc block ========= -->
  298. <p class="short-description">Gets the internal version number of this plugin.</p>
  299. <p class="description"><p>This MUST be overridden. This should be a number like the internal version number for Moodle modules, containing the date and release number. Format is: YYYYMMDD##. For example, &quot;2009012302&quot; would be the 3rd release on the 23rd January 2009.</p></p>
  300. <ul class="tags">
  301. <li><span class="field">return:</span> The version number of this module.</li>
  302. </ul>
  303. <div class="method-signature">
  304. <span class="method-result">int</span>
  305. <span class="method-name">
  306. get_version
  307. </span>
  308. ()
  309. </div>
  310. <hr class="separator" />
  311. <div class="notes">Redefined in descendants as:</div>
  312. <ul class="redefinitions">
  313. <li>
  314. <a href="../sloodle/SloodlePluginPresenterSlideImage.html#methodget_version">SloodlePluginPresenterSlideImage::get_version()</a>
  315. : Gets the internal version number of this plugin.
  316. </li>
  317. <li>
  318. <a href="../sloodle/SloodlePluginPresenterSlideVideo.html#methodget_version">SloodlePluginPresenterSlideVideo::get_version()</a>
  319. : Gets the internal version number of this plugin.
  320. </li>
  321. <li>
  322. <a href="../sloodle/SloodlePluginPresenterSlideWeb.html#methodget_version">SloodlePluginPresenterSlideWeb::get_version()</a>
  323. : Gets the internal version number of this plugin.
  324. </li>
  325. <li>
  326. <a href="../sloodle/SloodlePluginPresenterPDFImporter.html#methodget_version">SloodlePluginPresenterPDFImporter::get_version()</a>
  327. : Gets the internal version number of this plugin.
  328. </li>
  329. </ul>
  330. </div>
  331. </div>
  332. </div>
  333. <p class="notes" id="credit">
  334. Documentation generated on Fri, 17 Jul 2009 11:02:50 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
  335. </p>
  336. </div></body>
  337. </html>