| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html><head> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15"><title>Upgrade notes</title> |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
<link rel="stylesheet" type="text/css" href="style/layout.css"> |
| 53 |
|
| 54 |
|
| 55 |
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body> |
| 56 |
<h1>Upgrade notes</h1> |
| 57 |
|
| 58 |
This is a list of API changes for all LAM releases. |
| 59 |
<br> |
| 60 |
|
| 61 |
<br> |
| 62 |
|
| 63 |
<h2>9.4 -> 9.5</h2> |
| 64 |
<ul> |
| 65 |
<li>Module/Type/List API |
| 66 |
<ul> |
| 67 |
<li>getRequiredExtensions() was removed from module API</li> |
| 68 |
<li>Added defined parameter and return types to some methods</li> |
| 69 |
</ul> |
| 70 |
</li> |
| 71 |
</ul> |
| 72 |
<h2>9.2 -> 9.3</h2> |
| 73 |
<ul> |
| 74 |
<li>Module/Type API |
| 75 |
<ul> |
| 76 |
<li>Added defined parameter and return types to some methods (e.g. "getTitleBarSubtitle")</li> |
| 77 |
<li>getPasswordQuickChangeOptions(): new parameter $forcePasswordChangeByDefault</li> |
| 78 |
</ul> |
| 79 |
</li> |
| 80 |
</ul> |
| 81 |
<h2>9.0 -> 9.1</h2> |
| 82 |
<ul> |
| 83 |
<li>JavaScript |
| 84 |
<ul> |
| 85 |
<li>jQuery was removed from the project</li> |
| 86 |
</ul> |
| 87 |
</li> |
| 88 |
</ul> |
| 89 |
<h2>8.4 -> 8.5</h2> |
| 90 |
<ul> |
| 91 |
<li>Files in "tmp" directory must be managed via class LamTemporaryFilesManager</li> |
| 92 |
<li>Removed classes |
| 93 |
<ul> |
| 94 |
<li>htmlTableExtendedInputField</li> |
| 95 |
<li>htmlTableExtendedSelect</li> |
| 96 |
<li>htmlTableRow</li> |
| 97 |
</ul> |
| 98 |
</li> |
| 99 |
</ul> |
| 100 |
<h2>8.3 -> 8.4</h2> |
| 101 |
<ul> |
| 102 |
<li>Removed classes |
| 103 |
<ul> |
| 104 |
<li>htmlTableExtendedInputCheckbox</li> |
| 105 |
<li>htmlTableExtendedInputTextarea</li> |
| 106 |
</ul> |
| 107 |
</li> |
| 108 |
</ul> |
| 109 |
<h2>8.2 -> 8.3</h2> |
| 110 |
<ul> |
| 111 |
<li>JavaScript |
| 112 |
<ul> |
| 113 |
<li>jQueryUI was removed from the project</li> |
| 114 |
</ul> |
| 115 |
</li> |
| 116 |
<li>Removed classes |
| 117 |
<ul> |
| 118 |
<li>htmlLabeledInputCheckbox</li> |
| 119 |
<li>htmlTableExtendedInputFileUpload</li> |
| 120 |
<li>htmlTableExtendedRadio</li> |
| 121 |
<li>htmlEqualWidth</li> |
| 122 |
<li>htmlEqualHeight</li> |
| 123 |
</ul> |
| 124 |
</li> |
| 125 |
</ul> |
| 126 |
<h2>6.8 -> 8.2</h2> |
| 127 |
<ul> |
| 128 |
<li>JavaScript |
| 129 |
<ul> |
| 130 |
<li>jQuery and jQueryUI are no longer supported and must not be used anymore</li> |
| 131 |
</ul> |
| 132 |
</li> |
| 133 |
</ul> |
| 134 |
<h2>6.7 -> 6.8</h2> |
| 135 |
<ul> |
| 136 |
<li>Module API |
| 137 |
<ul> |
| 138 |
<li>display_html_attributes(): use responsive HTML elements instead of tables</li> |
| 139 |
</ul> |
| 140 |
</li> |
| 141 |
</ul> |
| 142 |
<h2>6.3 -> 6.4</h2> |
| 143 |
<ul> |
| 144 |
<li>Module API |
| 145 |
<ul> |
| 146 |
<li>get_profileOptions(): should no longer return a htmlTable but a htmlResponsiveRow</li> |
| 147 |
</ul> |
| 148 |
</li> |
| 149 |
</ul> |
| 150 |
<h2>6.2 -> 6.3</h2> |
| 151 |
<ul> |
| 152 |
<li>Module API |
| 153 |
<ul> |
| 154 |
<li>get_configOptions(): $allScopes contains type ids instead of account types</li> |
| 155 |
<li>check_configOptions(): first parameter contains type ids instead of account types</li> |
| 156 |
</ul> |
| 157 |
</li> |
| 158 |
</ul> |
| 159 |
<h2>6.1 -> 6.2</h2> |
| 160 |
<ul> |
| 161 |
<li>No major API changes</li> |
| 162 |
</ul> |
| 163 |
<h2>6.0 -> 6.1</h2> |
| 164 |
<ul> |
| 165 |
<li>module API</li> |
| 166 |
<ul> |
| 167 |
<li>doUploadPreActions has new parameter $type</li> |
| 168 |
<li>doUploadPostActions has new parameter $type</li> |
| 169 |
</ul> |
| 170 |
</ul> |
| 171 |
<h2>5.7 -> 6.0</h2> |
| 172 |
|
| 173 |
<ul> |
| 174 |
<li>All account types allow multiple configurations by default.</li> |
| 175 |
<li>the following methods in baseModule have a new parameter $typeId:</li> |
| 176 |
<ul> |
| 177 |
<li>check_profileOptions()</li> |
| 178 |
<li>get_profileOptions()</li> |
| 179 |
<li>get_pdfEntries()</li> |
| 180 |
<li>get_pdfFields()</li> |
| 181 |
<li>getManagedObjectClasses()</li> |
| 182 |
<li>getManagedAttributes()</li> |
| 183 |
<li>getLDAPAliases() <br> |
| 184 |
</li> |
| 185 |
<li>get_uploadColumns()</li> |
| 186 |
<li>build_uploadAccounts()</li> |
| 187 |
<li>get_RDNAttributes()<br> |
| 188 |
</li> |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
</ul> |
| 193 |
<li>baseType->doUploadPostActions(): new parameter $selectedModules<br> |
| 194 |
</li> |
| 195 |
<li>Removed global functions:</li> |
| 196 |
|
| 197 |
<ul> |
| 198 |
<li>getListClassName() -> use ConfiguredType->getBaseType()->getListClassName() </li> |
| 199 |
<li>getTypeAlias() -> use ConfiguredType->getBaseType()->getAlias()</li> |
| 200 |
<li>getDefaultListAttributes() -> use ConfiguredType->getBaseType()->getDefaultListAttributes()</li> |
| 201 |
<li>getListAttributeDescriptions() -> use ConfiguredType->getBaseType()->getListAttributeDescriptions()</li> |
| 202 |
</ul> |
| 203 |
<li>baseType and subclasses have a new constructor argument - ConfiguredType<br> |
| 204 |
</li> |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
</ul> |
| 210 |
<br> |
| 211 |
<h2>5.6 -> 5.7</h2> |
| 212 |
<ul> |
| 213 |
<li>module interface: get_pdfEntries() must return an array key => |
| 214 |
PDFEntry (no action required if you did not build the XML yourself)<span style="color: rgb(34, 31, 30); font-family: Sans,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; background-color: rgb(214, 210, 208); display: inline ! important; float: none;"></span></li> |
| 215 |
</ul> |
| 216 |
<br> |
| 217 |
<h2>5.5 -> 5.6</h2> |
| 218 |
|
| 219 |
<ul> |
| 220 |
<li> |
| 221 |
Functions in lib/types.inc got namespace LAM/TYPES (e.g. getTypeAlias()).</li> |
| 222 |
<li> |
| 223 |
New API to access configured account types: LAM\TYPES\TypeManager.</li> |
| 224 |
<li>class baseType: new function getSuffixFilter()</li> |
| 225 |
<li>moved getSuffixList() from baseType to ConfiguredType<br> |
| 226 |
</li> |
| 227 |
|
| 228 |
</ul> |
| 229 |
|
| 230 |
|
| 231 |
<h2>5.4 -> 5.5</h2>Functions Ldap::encrypt/decrypt in ldap.inc moved to lamEncrypt/lamDecrypt in security.inc.<br> |
| 232 |
<br> |
| 233 |
<h2>5.0 -> 5.1</h2> |
| 234 |
Module interface<br> |
| 235 |
<ul> |
| 236 |
<li><span style="font-weight: bold;">getPDFEntries(): </span>It is no |
| 237 |
longer supported that modules generate PDF XML on their own. You must |
| 238 |
use addSimplePDFField/addPDFKeyValue/addPDFTable() from baseModule for |
| 239 |
this.</li> |
| 240 |
<li><span style="font-weight: bold;">getSelfServiceOptions:</span> the function must now return an array of htmlResponsiveRow instead of htmlTableRow<br> |
| 241 |
</li> |
| 242 |
</ul> |
| 243 |
|
| 244 |
<br> |
| 245 |
<h2>4.8 -> 4.9</h2> |
| 246 |
API changes<br> |
| 247 |
<ul> |
| 248 |
<li>Module interface: Function get_pdfEntries() has new parameter $pdfKeys.</li> |
| 249 |
</ul> |
| 250 |
<br> |
| 251 |
<h2>4.6 -> 4.7</h2> |
| 252 |
Account types (e.g. user, group, host) may have config options now. See baseType::get_configOptions().<br> |
| 253 |
<br> |
| 254 |
<h2>4.5 -> 4.6</h2> |
| 255 |
The valid account types for each module must now |
| 256 |
be set in can_manage(). This function is abstract in base module. |
| 257 |
Setting the account type via meta data is no longer supported.<br> |
| 258 |
<br> |
| 259 |
Example:<br> |
| 260 |
<pre> public function can_manage() {</pre> |
| 261 |
<pre> return in_array($this->get_scope(), array('user', 'host'));</pre> |
| 262 |
<pre> }</pre> |
| 263 |
<br> |
| 264 |
<h2>4.2 -> 4.3</h2> |
| 265 |
<span style="font-weight: bold;">Ldap::new_rand()</span> was replaced by <span style="font-weight: bold;">getRandomNumber()</span> in lib/account.inc.<br> |
| 266 |
Module interface:<br> |
| 267 |
<ul> |
| 268 |
<li><span style="font-weight: bold;">preModifySelfService/postModifySelfService:</span> new parameter <span style="font-style: italic;">$newAccount</span>. The user self registration now supports preCreate/postCreate events.<br> |
| 269 |
</li> |
| 270 |
</ul> |
| 271 |
|
| 272 |
<br> |
| 273 |
<h2>4.1 -> 4.2</h2> |
| 274 |
New meta HTML classes: htmlEqualHeight, htmlAccordion<br> |
| 275 |
New functions in baseModule to reduce code:<br> |
| 276 |
<ul> |
| 277 |
<li>addSimpleInputTextField() to add text fields to the edit page</li> |
| 278 |
<li>addMultiValueInputTextField()/processMultiValueInputTextField() to add multi-value text fields to the edit page</li> |
| 279 |
<li>addSimpleSelfServiceTextField()/checkSimpleSelfServiceTextField() adds and checks a text field in self-service</li> |
| 280 |
<li>addSimplePDFField() to create the PDF code for a simple text value<br> |
| 281 |
</li> |
| 282 |
</ul> |
| 283 |
|
| 284 |
<br> |
| 285 |
<h2>4.0 -> 4.1</h2> |
| 286 |
CSS changes:<br> |
| 287 |
<ul> |
| 288 |
<li>type specific "td.{TYPE}nav-activepage" was replaced by common "td.activepage" in layout.css</li> |
| 289 |
<li>renamed ".{TYPE}list-bright" to ".{TYPE}-bright" and ".{TYPE}list-dark" to ".{TYPE}-dark"</li> |
| 290 |
<li>removed "table.{TYPE}list input", "table.{TYPE}list select", |
| 291 |
"table.{TYPE}list button", "fieldset.{TYPE}edit input", |
| 292 |
"fieldset.{TYPE}edit select", "fieldset.{TYPE}edit button"</li> |
| 293 |
<li>removed "input.{TYPE}" and "select.{TYPE}"</li> |
| 294 |
<li>removed "table.{TYPE}nav" and "table.{TYPE}nav input"</li> |
| 295 |
<li>removed "table.{TYPE}list td,th"</li> |
| 296 |
<li>new ".{TYPE}-border"</li> |
| 297 |
<li>replaced "table.{TYPE}list" by ".{TYPE}-border" and "table.accountlist"<br> |
| 298 |
</li> |
| 299 |
<li>replaced "fieldset.{TYPE}edit" by ".{TYPE}-border" and ".{TYPE}-bright"</li> |
| 300 |
<li>moved type styles from 600_type_{TYPE}.css to 500_layout.css<br> |
| 301 |
</li> |
| 302 |
|
| 303 |
</ul> |
| 304 |
Updated jQuery and jQueryUI versions.<br> |
| 305 |
<br> |
| 306 |
<h2>3.9 -> 4.0</h2> |
| 307 |
Module interface:<br> |
| 308 |
<ul> |
| 309 |
<li>new function: <span style="font-weight: bold;">doUploadPreActions()</span></li> |
| 310 |
<li>function <span style="font-weight: bold;">doUploadPostActions() </span>contains attributes by reference<span style="font-weight: bold;"><br> |
| 311 |
</span></li> |
| 312 |
</ul> |
| 313 |
List interface:<br> |
| 314 |
<ul> |
| 315 |
<li>new function: <span style="font-weight: bold;">addExtraInputElementsToTopArea()</span></li> |
| 316 |
<li><span style="font-weight: bold;">listShowOUSelection()</span> now returns a <span style="font-style: italic;">htmlGroup</span><br> |
| 317 |
</li> |
| 318 |
</ul> |
| 319 |
<br> |
| 320 |
<h2>3.8 -> 3.9</h2> |
| 321 |
Module interface:<br> |
| 322 |
|
| 323 |
<ul> |
| 324 |
<li>new function <span style="font-weight: bold;">supportsAdminInterface()</span>: Can be used to mark modules that only support the self-service.</li> |
| 325 |
<li>new function <span style="font-weight: bold;">canSelfServiceFieldBeReadOnly()</span>: Specifies if a certain self-service field can be set in read-only mode.</li> |
| 326 |
<li><span style="font-weight: bold;">getSelfServiceOptions()</span>: new parameter <span style="font-style: italic;">$readOnlyFields</span> that contains read-only fields</li> |
| 327 |
<li><span style="font-weight: bold;">checkSelfServiceOptions()</span>: new parameter <span style="font-style: italic;">$readOnlyFields </span>that contains read-only fields</li> |
| 328 |
|
| 329 |
</ul> |
| 330 |
Meta HTML:<br> |
| 331 |
<ul> |
| 332 |
<li>Input fields support autocompletion<br> |
| 333 |
</li> |
| 334 |
</ul> |
| 335 |
<br> |
| 336 |
<h2>3.7 -> 3.8<br> |
| 337 |
</h2> |
| 338 |
Type interface:<br> |
| 339 |
<ul> |
| 340 |
<li><span style="font-weight: bold;">getTitleBarTitle()/getTitleBarSubtitle(): </span>changed |
| 341 |
parameter from attribute array to accountContainer object. |
| 342 |
Additionally, the functions are now called on each page refresh.<br> |
| 343 |
</li> |
| 344 |
</ul> |
| 345 |
<br> |
| 346 |
<h2>3.6 -> 3.7</h2> |
| 347 |
Module interface:<br> |
| 348 |
<ul> |
| 349 |
<li><span style="font-weight: bold;">postModifyActions()</span>: Must return an array containing any messages to display</li> |
| 350 |
<li><span style="font-weight: bold;">preModifyActions():</span> Changed return value from boolean to array of message arrays</li> |
| 351 |
<li><span style="font-weight: bold;">passwordService interface:</span> |
| 352 |
new function supportsForcePasswordChange() and changed function |
| 353 |
passwordChangeRequested() to support password change at next login <br> |
| 354 |
</li> |
| 355 |
<li><span style="font-weight: bold;">getSelfServiceOptions()/checkSelfServiceOptions():</span> added parameter to specify if only password changes are allowed</li> |
| 356 |
<li><span style="font-weight: bold;">handleAjaxRequest():</span> This new function allows AJAX requests to be answered by modules</li> |
| 357 |
<li><span style="font-weight: bold;">getSelfServiceSettings():</span> New parameter $profile that contains the full self-service profile object<br> |
| 358 |
</li> |
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
</ul> |
| 364 |
|
| 365 |
<br> |
| 366 |
<h2>3.5.0 -> 3.6</h2> |
| 367 |
LAM now supports client-side validation (required + numeric fields). See htmlInputField::setValidationRule().<br> |
| 368 |
<br> |
| 369 |
<h2>3.4.0 -> 3.5.0</h2> |
| 370 |
The old meta HTML code is no longer supported. Please use the new solution based on htmlElement (see lib/html.inc).<br> |
| 371 |
<br> |
| 372 |
<h2>3.3.0 -> 3.4.0</h2> |
| 373 |
|
| 374 |
|
| 375 |
Module interface:<br> |
| 376 |
|
| 377 |
<ul> |
| 378 |
|
| 379 |
<li><span style="font-weight: bold;">save_attributes():</span> Can |
| 380 |
now contain a return value 'info' => array() with values for |
| 381 |
pre/postModify actions</li> |
| 382 |
<li><span style="font-weight: bold;">checkSelfServiceOptions():</span> Can now contain a return value 'info' => array() with values for |
| 383 |
pre/postModify actions</li> |
| 384 |
<li><span style="font-weight: bold;">getSelfServiceOptions():</span> This function no longer supports the old meta HTML. Additionally, the module name must be specified for all help links.<br> |
| 385 |
</li> |
| 386 |
</ul> |
| 387 |
|
| 388 |
<br> |
| 389 |
|
| 390 |
<h2>3.2.0 -> 3.3.0</h2> |
| 391 |
|
| 392 |
The cache class was removed. Please use local caching and the functions |
| 393 |
searchLDAP... instead of get_cache().<br> |
| 394 |
|
| 395 |
The return values for baseModule::pre/postDeleteActions() were changed |
| 396 |
to an array of StatusMessage parameters. |
| 397 |
<br> |
| 398 |
|
| 399 |
CSS class TYPElist-sort removed without replacement.<br> |
| 400 |
|
| 401 |
<br> |
| 402 |
|
| 403 |
<h2>3.1.0 -> 3.2.0</h2> |
| 404 |
|
| 405 |
<span style="font-weight: bold;">Account types: </span>The CSS classes |
| 406 |
have changed. |
| 407 |
<ul> |
| 408 |
|
| 409 |
<li>tr.TYPElist-over: removed without replacement</li> |
| 410 |
<li>tr.TYPElist-checked: removed without replacement</li> |
| 411 |
<li>tr.TYPElist: renamed to .TYPElist-bright</li> |
| 412 |
<li>tr.TYPElist-head: renamed to .TYPElist-dark</li> |
| 413 |
<li>th.TYPElist-sort: renamed to .TYPElist-sort</li> |
| 414 |
<li>td.TYPEnav-text: removed without replacement </li> |
| 415 |
</ul> |
| 416 |
|
| 417 |
<br> |
| 418 |
|
| 419 |
<br> |
| 420 |
|
| 421 |
<h2>3.0.0 -> 3.1.0</h2> |
| 422 |
|
| 423 |
<span style="font-weight: bold;">Module interface:</span> There is a |
| 424 |
new object-oriented library to |
| 425 |
generate HTML for the account modules (e.g. used for |
| 426 |
display_html_attributes()). This will allow additional functionality |
| 427 |
like client side validation. Please see lib/html.inc or package |
| 428 |
metaHTML in the phpdoc documentation.<br> |
| 429 |
|
| 430 |
<span style="color: red; font-weight: bold;">Attention: </span><span style="color: red; font-weight: bold;">The getSelfServiceOptions() |
| 431 |
function no longer supports the old meta HTML. </span><span style="color: red; font-weight: bold;">The other functions will |
| 432 |
support the old array-based meta HTML elements only until Q2/2011! </span><br> |
| 433 |
|
| 434 |
<br> |
| 435 |
|
| 436 |
The PDF editor now supports descriptive PDF |
| 437 |
fields. You can use this by returning an associative array for the PDF |
| 438 |
fields (e.g. array('macAddress' => _('MAC address'))) in <span style="font-weight: bold;">get_pdfFields()</span> or the meta data.<br> |
| 439 |
|
| 440 |
The old format is still supported. LAM will continue to show the field |
| 441 |
name as label in this case.<br> |
| 442 |
|
| 443 |
<br> |
| 444 |
|
| 445 |
<br> |
| 446 |
|
| 447 |
<h2>2.9.0 -> 3.0.0</h2> |
| 448 |
|
| 449 |
You can now integrate JavaScript libraries by simply putting the files |
| 450 |
into templates/lib. All files with the name *.js are automatically |
| 451 |
included on all pages.<br> |
| 452 |
|
| 453 |
There is a new log level LOG_DEBUG available for logNewMessage(). |
| 454 |
<br> |
| 455 |
|
| 456 |
<h3>Module interface:</h3> |
| 457 |
|
| 458 |
The function |
| 459 |
<span style="font-weight: bold;">build_uploadAccounts()</span> |
| 460 |
has a new parameter |
| 461 |
<span style="font-weight: bold;">$selectedModules</span>.<br> |
| 462 |
|
| 463 |
<h3>Type interface:</h3> |
| 464 |
|
| 465 |
The new function <span style="font-weight: bold;">supportsFileUpload()</span> |
| 466 |
specifies if file uploads are supported (default true).<br> |
| 467 |
|
| 468 |
<br> |
| 469 |
|
| 470 |
<br> |
| 471 |
|
| 472 |
<h2>2.8.0 -> 2.9.0</h2> |
| 473 |
|
| 474 |
Several functions of the <span style="font-weight: bold;">cache</span> |
| 475 |
class were removed.<br> |
| 476 |
|
| 477 |
<br> |
| 478 |
|
| 479 |
<br> |
| 480 |
|
| 481 |
<h2>2.5.0 -> 2.6.0</h2> |
| 482 |
|
| 483 |
The class <span style="font-weight: bold; font-style: italic;">baseType</span> |
| 484 |
has two new member variables:<br> |
| 485 |
|
| 486 |
<ul> |
| 487 |
|
| 488 |
<li>$LABEL_CREATE_ANOTHER_ACCOUNT</li> |
| 489 |
<li>$LABEL_BACK_TO_ACCOUNT_LIST</li> |
| 490 |
</ul> |
| 491 |
|
| 492 |
They can be used to show a more specific text when the user is asked to |
| 493 |
create another account or return back to the account list.<br> |
| 494 |
|
| 495 |
<br> |
| 496 |
|
| 497 |
The meta HTML code now supports image buttons.<br> |
| 498 |
|
| 499 |
<br> |
| 500 |
|
| 501 |
<br> |
| 502 |
|
| 503 |
<h2>2.4.0 -> 2.5.0</h2> |
| 504 |
|
| 505 |
<h3>Self-service</h3> |
| 506 |
|
| 507 |
<span style="font-weight: bold;">$selfServiceSettings</span> in class <span style="font-style: italic;">baseModule</span> is now an object of the |
| 508 |
class <span style="font-style: italic;">selfServiceProfile.</span> |
| 509 |
This way all profile settings can be read. To access the module |
| 510 |
settings use <span style="font-weight: bold;">$this->selfServiceSettings->moduleSettings</span>.<br> |
| 511 |
|
| 512 |
<br> |
| 513 |
|
| 514 |
<br> |
| 515 |
|
| 516 |
<h2>2.2.0 -> 2.3.0</h2> |
| 517 |
|
| 518 |
<h3>Style changes</h3> |
| 519 |
|
| 520 |
If you have defined your own account types then you need to update your |
| 521 |
CSS files (style/type_<type>.css).<br> |
| 522 |
|
| 523 |
Please change "table.<type>list input,select" to |
| 524 |
"table.<type>list input,select,button" and |
| 525 |
"fieldset.<type>edit input" to "fieldset.<type>edit |
| 526 |
input,select,button". "fieldset.<type>edit select" may be deleted |
| 527 |
afterwards.<br> |
| 528 |
|
| 529 |
<br> |
| 530 |
|
| 531 |
<br> |
| 532 |
|
| 533 |
<h2>2.1.0 -> 2.2.0</h2> |
| 534 |
|
| 535 |
<h3>Account lists</h3> |
| 536 |
|
| 537 |
Account lists now support to define tools. These are displayed as |
| 538 |
linked images like the edit and delete links in the list.<br> |
| 539 |
|
| 540 |
Overwrite <span style="font-weight: bold;">lamList::getAdditionalTools()</span> |
| 541 |
to use this feature.<br> |
| 542 |
|
| 543 |
<br> |
| 544 |
|
| 545 |
The definition of account list options changed. The function <span style="font-weight: bold;">lamList::getAdditionalTools()</span> is no |
| 546 |
longer available. Use these functions instead: <span style="font-weight: bold;">lamList::listGetAllConfigOptions()</span> |
| 547 |
and <span style="font-weight: bold;">lamList::listConfigurationChanged()</span>.<br> |
| 548 |
|
| 549 |
All options are now saved in cookies for one year.<br> |
| 550 |
|
| 551 |
<br> |
| 552 |
|
| 553 |
<h3>Base module</h3> |
| 554 |
|
| 555 |
The <span style="font-weight: bold;">baseModule</span> class has a new |
| 556 |
protected option: <span style="font-weight: bold;">$autoAddObjectClasses |
| 557 |
</span>You can set it to false if you do not want that your module's |
| 558 |
object classes are added when creating or loading an account.<br> |
| 559 |
|
| 560 |
<br> |
| 561 |
|
| 562 |
Account modules can now have icons. See <span style="font-weight: bold;">baseModule->getIcon()</span>.<br> |
| 563 |
|
| 564 |
<br> |
| 565 |
|
| 566 |
<h3>Constructors</h3> |
| 567 |
|
| 568 |
LAM now uses the PHP5 syntax for constructors: <span style="font-weight: bold;">__construct()<br> |
| 569 |
<br> |
| 570 |
</span> |
| 571 |
<h3>Extended security model</h3> |
| 572 |
|
| 573 |
Each server profile now defines an access level.<br> |
| 574 |
|
| 575 |
<br> |
| 576 |
|
| 577 |
Currently these are:<br> |
| 578 |
|
| 579 |
<ul> |
| 580 |
|
| 581 |
<li>write access</li> |
| 582 |
<li>password changes</li> |
| 583 |
<li>read access<br> |
| 584 |
</li> |
| 585 |
</ul> |
| 586 |
|
| 587 |
<span style="font-weight: bold;"></span> Please check your code and |
| 588 |
prohibit any actions which do not fit the current access level.<br> |
| 589 |
|
| 590 |
There are two new functions in <span style="font-style: italic;">security.inc</span>: |
| 591 |
<span style="font-weight: bold;">checkIfWriteAccessIsAllowed()</span> |
| 592 |
and <span style="font-weight: bold;">checkIfPasswordChangeIsAllowed()</span><br> |
| 593 |
|
| 594 |
Only LAM Pro allows to change the access level from <span style="font-style: italic;">write access</span> to a smaller level.<br> |
| 595 |
|
| 596 |
<br> |
| 597 |
|
| 598 |
<br> |
| 599 |
|
| 600 |
<h2>2.0.0 -> 2.1.0</h2> |
| 601 |
|
| 602 |
<h3><span style="font-weight: bold;">Style changes</span></h3> |
| 603 |
|
| 604 |
<ul> |
| 605 |
|
| 606 |
<li>"fieldset.<type>edit fieldset" and |
| 607 |
"fieldset.<type>edit fieldset fieldset" were removed.</li> |
| 608 |
<li>"table.<type>list input" changed to "table.<type>list |
| 609 |
input,select"</li> |
| 610 |
</ul> |
| 611 |
|
| 612 |
<h3><span style="font-weight: bold;">baseModule</span></h3> |
| 613 |
|
| 614 |
The class variable<span style="font-style: italic;"> $base</span> |
| 615 |
is no longer visible in child classes. Please use <span style="font-style: italic;">$this->getAccountContainer()</span> to |
| 616 |
access the accountContainer object.<br> |
| 617 |
|
| 618 |
<br> |
| 619 |
|
| 620 |
Several other class variables in accountContainer etc. are now private. |
| 621 |
Use the new access methods.<br> |
| 622 |
|
| 623 |
<br> |
| 624 |
|
| 625 |
<br> |
| 626 |
|
| 627 |
<h2>1.3.0 -> 2.0.0</h2> |
| 628 |
|
| 629 |
LAM is now PHP5 only. Several variables are now private and need to be |
| 630 |
accessed via functions.<br> |
| 631 |
|
| 632 |
<br> |
| 633 |
|
| 634 |
<br> |
| 635 |
|
| 636 |
<h2>1.2.0 -> 1.3.0</h2> |
| 637 |
|
| 638 |
<h3><span style="font-weight: bold;">New lamList functions</span></h3> |
| 639 |
|
| 640 |
<ul> |
| 641 |
|
| 642 |
<li><span style="font-weight: bold;">listPrintTableCellContent():</span> |
| 643 |
This function allows you to control how the LDAP attributes are |
| 644 |
displayed in the table. This can be used to display links or binary |
| 645 |
data.</li> |
| 646 |
<li><span style="font-weight: bold;">listPrintAdditionalOptions():</span> |
| 647 |
If you want to display additional controls for a list please use this |
| 648 |
function. The controls will be placed under the account table.<br> |
| 649 |
</li> |
| 650 |
</ul> |
| 651 |
|
| 652 |
No more lamdaemon commands via delete_attributes() and |
| 653 |
save_attributes() in account modules.<br> |
| 654 |
|
| 655 |
Please use these new functions to call lamdaemon directly:<br> |
| 656 |
|
| 657 |
<ul> |
| 658 |
|
| 659 |
<li>preModifyActions()</li> |
| 660 |
<li>postModifyActions()</li> |
| 661 |
<li>preDeleteActions()</li> |
| 662 |
<li>postDeleteActions()</li> |
| 663 |
</ul> |
| 664 |
|
| 665 |
<br> |
| 666 |
|
| 667 |
<h2>1.1.x -> 1.2.0</h2> |
| 668 |
|
| 669 |
<h3><span style="font-weight: bold;">API changes</span></h3> |
| 670 |
|
| 671 |
<ul> |
| 672 |
|
| 673 |
<li>removed get_configDescription() from module interface</li> |
| 674 |
</ul> |
| 675 |
|
| 676 |
<br> |
| 677 |
|
| 678 |
<h2>1.0.4 -> 1.1.0</h2> |
| 679 |
|
| 680 |
<h3><span style="font-weight: bold;">API changes</span></h3> |
| 681 |
|
| 682 |
<ul> |
| 683 |
|
| 684 |
<li>removed $post parameters from module functions |
| 685 |
(delete_attributes(), process_...(), display_html_...()). Use $_POST |
| 686 |
instead.</li> |
| 687 |
<li>process_...() |
| 688 |
functions: returned messages are no longer grouped (e.g. return: |
| 689 |
array(array('INFO', 'headline', 'text'), array('INFO', 'headline2', |
| 690 |
'text2')))</li> |
| 691 |
</ul> |
| 692 |
|
| 693 |
<br> |
| 694 |
|
| 695 |
<h2>1.0.0 -> 1.0.2</h2> |
| 696 |
|
| 697 |
<h3><span style="font-weight: bold;">New module functions</span></h3> |
| 698 |
|
| 699 |
<ul> |
| 700 |
|
| 701 |
<li>getRequiredExtensions: Allows to define required PHP extensions</li> |
| 702 |
<li>getManagedObjectClasses: Definition of managed object classes for |
| 703 |
this module</li> |
| 704 |
<li>getLDAPAliases: list of LDAP alias names which are replaced by LAM</li> |
| 705 |
<li>getManagedAttributes: list of LDAP attributes which are managed |
| 706 |
by this module</li> |
| 707 |
</ul> |
| 708 |
|
| 709 |
The LDAP attributes are no longer loaded by reading the LDAP schema. If |
| 710 |
your module does not implement the load_attributes() function then you |
| 711 |
have to use getManagedAttributes() or the meta data to specify them.<br> |
| 712 |
|
| 713 |
<br> |
| 714 |
|
| 715 |
The class variable "triggered_messages" in baseModule was removed.<br> |
| 716 |
|
| 717 |
<br> |
| 718 |
|
| 719 |
</body></html> |