| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | <html><head> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"><title>Base module</title> | 
					
						
							|  |  |  |    | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  |   <link rel="stylesheet" type="text/css" href="style/layout.css"> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body> | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | <h1 style="text-align: center;">Base module<br> | 
					
						
							|  |  |  | </h1> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | <div style="text-align: center;"><img alt="base module" src="images/lam_baseModule.png" style="width: 531px; height: 207px;"><br> | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | </div> | 
					
						
							|  |  |  | <div style="text-align: center;"><br> | 
					
						
							|  |  |  | <div style="text-align: left;">The <span style="font-weight: bold;">baseModule</span> | 
					
						
							|  |  |  | is the parent class of all account modules. <br> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | It implements most functions of the <a href="phpdoc/modules/baseModule.html">module interface</a> and provides | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | the possibility to use <span style="font-style: italic;">meta data</span> | 
					
						
							|  |  |  | for the module functions.<br> | 
					
						
							|  |  |  | There are also some class variables which are useful for the child | 
					
						
							|  |  |  | classes.<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <h2>Meta data</h2> | 
					
						
							|  |  |  | The <span style="font-weight: bold;">baseModule</span> allows you to | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | not implement the <a href="phpdoc/modules/baseModule.html">module | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | interface</a> directly but to provide <span style="font-style: italic;">meta | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | data</span> which is interpreted by the <span style="font-weight: bold;">baseModule</span>.<br> | 
					
						
							|  |  |  | If you do not use certain functions of the interface the <span style="font-weight: bold;">baseModule</span> also provides dummy | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | functions. E.g. if your module needs no configuration option you can | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | just skip this function in your code and the <span style="font-weight: bold;">baseModule</span> will tell the | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | configuration part that there is no option.<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | To <span style="font-style: italic;">define meta</span> data you have | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | to implement the function <span style="font-weight: bold; font-style: italic;">get_metaData()</span>. | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | This function must return a hash array with the meta options as array | 
					
						
							|  |  |  | keys.<br> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | Please refer to the <a href="phpdoc/modules/baseModule.html">module | 
					
						
							|  |  |  | interface</a> for details about the format of <span style="font-style: italic;">meta data</span>.<br> | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <h2>Functions<br> | 
					
						
							|  |  |  | </h2> | 
					
						
							|  |  |  | <span style="font-weight: bold;">get_scope():</span> This function | 
					
						
							|  |  |  | returns the account type ("user", "group", ...) of the module.<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | For a list of <span style="font-style: italic;">meta data</span> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | functions please refer to the <a href="phpdoc/modules/baseModule.html">module | 
					
						
							| 
									
										
										
										
											2004-11-27 16:24:46 +00:00
										 |  |  | interface</a>.<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <h2>Class variables</h2> | 
					
						
							|  |  |  | <span style="font-weight: bold;">$moduleSettings:</span> This variable | 
					
						
							|  |  |  | contains the configuration settings of all modules.<br> | 
					
						
							|  |  |  | <span style="font-weight: bold;">$base:</span> This is the name of the | 
					
						
							|  |  |  | parent <span style="font-style: italic;">accountContainer</span> | 
					
						
							|  |  |  | ($_SESSION[$base]).<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2008-02-07 19:12:42 +00:00
										 |  |  | </body></html> |