new type API
This commit is contained in:
parent
6d91963df0
commit
6d52216a09
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -58,7 +59,7 @@ This is a list of API changes for all LAM releases.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<h2>5.7 -> 5.8</h2>
|
<h2>5.7 -> 6.0</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>All account types allow multiple configurations by default.</li>
|
<li>All account types allow multiple configurations by default.</li>
|
||||||
<li>the following methods in baseModule have a new parameter $typeId:</li>
|
<li>the following methods in baseModule have a new parameter $typeId:</li>
|
||||||
|
@ -72,10 +73,12 @@ This is a list of API changes for all LAM releases.
|
||||||
<li>getLDAPAliases() <br>
|
<li>getLDAPAliases() <br>
|
||||||
</li>
|
</li>
|
||||||
<li>get_uploadColumns()</li>
|
<li>get_uploadColumns()</li>
|
||||||
<li>build_uploadAccounts()<br>
|
<li>build_uploadAccounts()</li>
|
||||||
|
<li>get_RDNAttributes()<br>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<li>baseType->doUploadPostActions(): new parameter $selectedModules<br>
|
<li>baseType->doUploadPostActions(): new parameter $selectedModules<br>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -574,6 +574,12 @@
|
||||||
version. Unless explicitly noticed there is no need to install an
|
version. Unless explicitly noticed there is no need to install an
|
||||||
intermediate release.</para>
|
intermediate release.</para>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<title>5.7 -> 6.0</title>
|
||||||
|
|
||||||
|
<para>No actions needed.</para>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<title>5.6 -> 5.7</title>
|
<title>5.6 -> 5.7</title>
|
||||||
|
|
||||||
|
|
|
@ -462,11 +462,12 @@ abstract class baseModule {
|
||||||
* <br>
|
* <br>
|
||||||
* <b>Example:</b> return array('uid' => 'normal', 'cn' => 'low')
|
* <b>Example:</b> return array('uid' => 'normal', 'cn' => 'low')
|
||||||
*
|
*
|
||||||
|
* @param string $typeId account type
|
||||||
* @return array list of attributes
|
* @return array list of attributes
|
||||||
*
|
*
|
||||||
* @see baseModule::get_metaData()
|
* @see baseModule::get_metaData()
|
||||||
*/
|
*/
|
||||||
public function get_RDNAttributes() {
|
public function get_RDNAttributes($typeId) {
|
||||||
if (isset($this->meta['RDN'])) return $this->meta['RDN'];
|
if (isset($this->meta['RDN'])) return $this->meta['RDN'];
|
||||||
else return array();
|
else return array();
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,7 +164,7 @@ function getRDNAttributes($typeId, $selectedModules=null) {
|
||||||
for ($i = 0; $i < sizeof($mods); $i++) {
|
for ($i = 0; $i < sizeof($mods); $i++) {
|
||||||
// get list of attributes
|
// get list of attributes
|
||||||
$module = moduleCache::getModule($mods[$i], \LAM\TYPES\getScopeFromTypeId($typeId));
|
$module = moduleCache::getModule($mods[$i], \LAM\TYPES\getScopeFromTypeId($typeId));
|
||||||
$attrs = $module->get_RDNAttributes();
|
$attrs = $module->get_RDNAttributes($typeId);
|
||||||
$keys = array_keys($attrs);
|
$keys = array_keys($attrs);
|
||||||
// sort attributes
|
// sort attributes
|
||||||
for ($k = 0; $k < sizeof($keys); $k++) {
|
for ($k = 0; $k < sizeof($keys); $k++) {
|
||||||
|
|
Loading…
Reference in New Issue