| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <title>Type HowTo - General type options</title> |
| 5 | <link rel="stylesheet" type="text/css" href="style/layout.css"> |
| 6 | <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"> |
| 7 | </head> |
| 8 | <body> |
| 9 | <div style="text-align: center;"> |
| 10 | <h1>Type HowTo - General type options<br> |
| 11 | </h1> |
| 12 | <br> |
| 13 | <br> |
| 14 | <div style="text-align: left;"><br> |
| 15 | <h2>1. Alias name</h2> |
| 16 | The type name is very limited, therefore every type has an <span |
| 17 | style="font-style: italic;">alias name</span>. This <span |
| 18 | style="font-style: italic;">alias name</span> has no limitations and |
| 19 | can be translated. It may contain special characters but make sure that |
| 20 | it does not contain HTML special characters like "<".<br> |
| 21 | <br> |
| 22 | The <span style="font-style: italic;">alias name</span> is specified |
| 23 | with <span style="font-weight: bold;">getAlias()</span><span |
| 24 | style="font-weight: bold;"></span>.<br> |
| 25 | <br> |
| 26 | <span style="font-weight: bold; text-decoration: underline;">Example:</span><br |
| 27 | style="font-weight: bold; text-decoration: underline;"> |
| 28 | <br> |
| 29 | Our <span style="font-style: italic;">smbDomain</span> type will get |
| 30 | the alias "Samba domains".<br> |
| 31 | <br> |
| 32 | <div class="mod-code"> |
| 33 | * Returns the alias name of this account type.<br> |
| 34 | *<br> |
| 35 | * @return string alias name<br> |
| 36 | */<br> |
| 37 | <span style="font-weight: bold;">function</span> |
| 38 | <span style="color: rgb(255, 0, 0);">getAlias()</span> {<br> |
| 39 | return _("Samba domains");<br> |
| 40 | }<br> |
| 41 | </div> |
| 42 | <br> |
| 43 | <br> |
| 44 | <h2>2. Description<br> |
| 45 | </h2> |
| 46 | Each type has a description so that the user knows what accounts he can |
| 47 | manage with that type. The description is displayed in the LAM |
| 48 | configuration editor.<br> |
| 49 | <br> |
| 50 | The description is specified with <span style="font-weight: bold;">getDescription()</span><span |
| 51 | style="font-weight: bold;"></span>.<br> |
| 52 | <br> |
| 53 | <span style="font-weight: bold; text-decoration: underline;">Example:</span><br |
| 54 | style="font-weight: bold; text-decoration: underline;"> |
| 55 | <br> |
| 56 | Our <span style="font-style: italic;">smbDomain</span> type has the |
| 57 | description "Samba 3 domain entries".<br> |
| 58 | <br> |
| 59 | <div class="mod-code"> |
| 60 | * Returns the description of this account type.<br> |
| 61 | *<br> |
| 62 | * @return string description<br> |
| 63 | */<br> |
| 64 | <span style="font-weight: bold;">function</span> |
| 65 | <span style="color: rgb(255, 0, 0);">getDescription()</span> {<br> |
| 66 | return _("Samba 3 domain |
| 67 | entries");<br> |
| 68 | }<br> |
| 69 | </div> |
| 70 | <br> |
| 71 | <br> |
| 72 | </div> |
| 73 | </div> |
| 74 | </body> |
| 75 | </html> |