| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html lang="en"><head> |
| 3 | |
| 4 | |
| 5 | <meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"><title>Base module</title> |
| 6 | |
| 7 | <link rel="stylesheet" type="text/css" href="style/layout.css"> |
| 8 | <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body> |
| 9 | <h1 style="text-align: center;">Base module<br> |
| 10 | </h1> |
| 11 | <div style="text-align: center;"><img alt="base module" src="images/lam_baseModule.png" style="width: 531px; height: 207px;"><br> |
| 12 | </div> |
| 13 | <div style="text-align: center;"><br> |
| 14 | <div style="text-align: left;">The <span style="font-weight: bold;">baseModule</span> |
| 15 | is the parent class of all account modules. <br> |
| 16 | It implements most functions of the <a href="phpdoc/modules/baseModule.html">module interface</a> and provides |
| 17 | the possibility to use <span style="font-style: italic;">meta data</span> |
| 18 | for the module functions.<br> |
| 19 | There are also some class variables which are useful for the child |
| 20 | classes.<br> |
| 21 | <br> |
| 22 | <br> |
| 23 | <h2>Meta data</h2> |
| 24 | The <span style="font-weight: bold;">baseModule</span> allows you to |
| 25 | not implement the <a href="phpdoc/modules/baseModule.html">module |
| 26 | interface</a> directly but to provide <span style="font-style: italic;">meta |
| 27 | data</span> which is interpreted by the <span style="font-weight: bold;">baseModule</span>.<br> |
| 28 | If you do not use certain functions of the interface the <span style="font-weight: bold;">baseModule</span> also provides dummy |
| 29 | functions. E.g. if your module needs no configuration option you can |
| 30 | just skip this function in your code and the <span style="font-weight: bold;">baseModule</span> will tell the |
| 31 | configuration part that there is no option.<br> |
| 32 | <br> |
| 33 | To <span style="font-style: italic;">define meta</span> data you have |
| 34 | to implement the function <span style="font-weight: bold; font-style: italic;">get_metaData()</span>. |
| 35 | This function must return a hash array with the meta options as array |
| 36 | keys.<br> |
| 37 | Please refer to the <a href="phpdoc/modules/baseModule.html">module |
| 38 | interface</a> for details about the format of <span style="font-style: italic;">meta data</span>.<br> |
| 39 | <br> |
| 40 | <br> |
| 41 | <h2>Functions<br> |
| 42 | </h2> |
| 43 | <span style="font-weight: bold;">get_scope():</span> This function |
| 44 | returns the account type ("user", "group", ...) of the module.<br> |
| 45 | <br> |
| 46 | For a list of <span style="font-style: italic;">meta data</span> |
| 47 | functions please refer to the <a href="phpdoc/modules/baseModule.html">module |
| 48 | interface</a>.<br> |
| 49 | <br> |
| 50 | <br> |
| 51 | <h2>Class variables</h2> |
| 52 | <span style="font-weight: bold;">$moduleSettings:</span> This variable |
| 53 | contains the configuration settings of all modules.<br> |
| 54 | <span style="font-weight: bold;">$base:</span> This is the name of the |
| 55 | parent <span style="font-style: italic;">accountContainer</span> |
| 56 | ($_SESSION[$base]).<br> |
| 57 | <br> |
| 58 | <br> |
| 59 | <br> |
| 60 | <br> |
| 61 | <br> |
| 62 | <br> |
| 63 | </div> |
| 64 | </div> |
| 65 | </body></html> |