| 
									
										
										
										
											2006-04-29 09:58:17 +00:00
										 |  |  | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 
					
						
							|  |  |  | <html> | 
					
						
							|  |  |  | <head> | 
					
						
							|  |  |  |   <title>Module HowTo - Defining required extensions</title> | 
					
						
							|  |  |  |   <link rel="stylesheet" type="text/css" href="style/layout.css"> | 
					
						
							| 
									
										
										
										
											2008-01-01 13:06:51 +00:00
										 |  |  | 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"> | 
					
						
							| 
									
										
										
										
											2006-04-29 09:58:17 +00:00
										 |  |  | </head> | 
					
						
							|  |  |  | <body> | 
					
						
							|  |  |  | <div style="text-align: center;"> | 
					
						
							|  |  |  | <h1>Module HowTo - Defining required extensions<br> | 
					
						
							|  |  |  | </h1> | 
					
						
							|  |  |  | <div style="text-align: left;"><br> | 
					
						
							|  |  |  | Your account module might require special PHP extensions. LAM can check | 
					
						
							|  |  |  | this for you and display an error message at the login page.<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <div style="text-align: left;">You will need to implement the function <span | 
					
						
							|  |  |  |  style="font-weight: bold;">getRequiredExtensions()</span> or use <span | 
					
						
							|  |  |  |  style="font-weight: bold;">meta['extensions']</span>.<br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <span style="font-weight: bold; text-decoration: underline;">Example:</span><br | 
					
						
							|  |  |  |  style="font-weight: bold; text-decoration: underline;"> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | The <span style="font-style: italic;">posixAccount</span> module needs | 
					
						
							| 
									
										
										
										
											2008-08-09 11:18:36 +00:00
										 |  |  | to generate password hashes. Therefore it needs the Hash extension.<br> | 
					
						
							| 
									
										
										
										
											2006-04-29 09:58:17 +00:00
										 |  |  | <br> | 
					
						
							|  |  |  | <table style="width: 100%; text-align: left;" class="mod-code" | 
					
						
							|  |  |  |  border="0" cellpadding="2" cellspacing="2"> | 
					
						
							|  |  |  |   <tbody> | 
					
						
							|  |  |  |     <tr> | 
					
						
							|  |  |  |       <td style="vertical-align: top;">    /**<br> | 
					
						
							|  |  |  |     * Returns meta data that is interpreted by parent | 
					
						
							|  |  |  | class<br> | 
					
						
							|  |  |  |     *<br> | 
					
						
							|  |  |  |     * @return array array with meta data<br> | 
					
						
							|  |  |  |     */<br> | 
					
						
							|  |  |  |    <span style="font-weight: bold;"> function</span> | 
					
						
							|  |  |  | get_metaData() {<br> | 
					
						
							|  |  |  |         $return = array();<br> | 
					
						
							|  |  |  |         // PHP extensions<br> | 
					
						
							|  |  |  |         $return["extensions"] = | 
					
						
							| 
									
										
										
										
											2008-08-09 11:18:36 +00:00
										 |  |  | array("hash");<br> | 
					
						
							| 
									
										
										
										
											2006-04-29 09:58:17 +00:00
										 |  |  |         [...]<br> | 
					
						
							|  |  |  |       </td> | 
					
						
							|  |  |  |     </tr> | 
					
						
							|  |  |  |   </tbody> | 
					
						
							|  |  |  | </table> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <br> | 
					
						
							|  |  |  | <span style="font-weight: bold;"></span> | 
					
						
							|  |  |  | <h2><span style="font-weight: bold;"></span></h2> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | </body> | 
					
						
							|  |  |  | </html> |