removed obsolete pages() and get_attributes() functions
This commit is contained in:
parent
3c0ebbb481
commit
4c5f43ffdd
|
@ -79,42 +79,7 @@ $this->orig['macAddress'] = $attr['macAddress'];<br>
|
|||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h2>2. Defining pages<br>
|
||||
</h2>
|
||||
You can define multiple subpages for your account page. Usually one
|
||||
page is enough but you may display certain attribute settings on an
|
||||
extra page (e.g. Unix group memberships are on a second page).<br>
|
||||
<br>
|
||||
The page names are set by <span style="font-weight: bold;">pages() </span>which
|
||||
returns an array of names.<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;">ieee802Device</span>
|
||||
module needs only one page which is called <span
|
||||
style="font-style: italic;">'attributes'</span>.<br>
|
||||
<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>
|
||||
* This function returns a list of all account pages
|
||||
in this module.<br>
|
||||
*/<br>
|
||||
<span style="font-weight: bold;">function</span> <span
|
||||
style="color: rgb(255, 0, 0);">pages</span>() {<br>
|
||||
return array('attributes');<br>
|
||||
}<br>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h2>3. Page display</h2>
|
||||
<h2>2. Page display</h2>
|
||||
Now that you have defined your subpages you will need one function for
|
||||
each page to display it. The function must return <span
|
||||
style="font-style: italic;">meta HTML code</span> as defined in the <span
|
||||
|
@ -190,7 +155,7 @@ sizeof($this->attributes['macAddress']), 'name' => 'mac_number'));<br>
|
|||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h2>4. Processing input data<br>
|
||||
<h2>3. Processing input data<br>
|
||||
</h2>
|
||||
Every time the user clicks on a submit button while your page is
|
||||
displayed LAM will call a function in your module.<br>
|
||||
|
@ -306,7 +271,7 @@ $this->inputCorrect = true;<br>
|
|||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h2>5. Defining that your module is ready for LDAP add/modify</h2>
|
||||
<h2>4. Defining that your module is ready for LDAP add/modify</h2>
|
||||
Before a new account can be created or modified all modules are asked
|
||||
if they are ready.<br>
|
||||
<br>
|
||||
|
@ -367,7 +332,7 @@ correct.<br>
|
|||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<h2>6. Saving the LDAP attributes<br>
|
||||
<h2>5. Saving the LDAP attributes<br>
|
||||
</h2>
|
||||
When all modules report that they are ready for LDAP add/modify and the
|
||||
user clicks on the add/modify button your module will be asked what
|
||||
|
|
|
@ -140,15 +140,6 @@ class account extends baseModule {
|
|||
return "enabled";
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a list of all possible pages of this module.
|
||||
*
|
||||
* @return array list of page names
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function loads all attributes into the object.
|
||||
*
|
||||
|
|
|
@ -124,13 +124,6 @@ class ieee802Device extends baseModule {
|
|||
return $_SESSION[$this->base]->save_module_attributes($this->attributes, $this->orig);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a list of all account pages in this module.
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will create the meta HTML code to show a page with all attributes.
|
||||
*
|
||||
|
|
|
@ -176,13 +176,6 @@ class inetLocalMailRecipient extends baseModule {
|
|||
return $_SESSION[$this->base]->save_module_attributes($this->attributes, $this->orig);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a list of all account pages in this module.
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will create the meta HTML code to show a page with all attributes.
|
||||
*
|
||||
|
|
|
@ -377,15 +377,6 @@ class inetOrgPerson extends baseModule {
|
|||
return "enabled";
|
||||
}
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/* This function returns an array with 4 entries:
|
||||
* array( DN1 ('add' => array($attr), 'remove' => array($attr), 'modify' => array($attr), 'lamdaemon' => array(cmds)), DN2 .... )
|
||||
* DN is the DN to change. It may be possible to change several DNs,
|
||||
|
|
|
@ -280,13 +280,6 @@ class kolabUser extends baseModule {
|
|||
return $_SESSION[$this->base]->save_module_attributes($this->attributes, $this->orig);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a list of all account pages in this module.
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will create the meta HTML code to show a page with all attributes.
|
||||
*
|
||||
|
|
|
@ -153,13 +153,6 @@ class nisMailAlias extends baseModule {
|
|||
return $_SESSION[$this->base]->save_module_attributes($this->attributes, $this->orig);
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a list of all account pages in this module.
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will create the meta HTML code to show a page with all attributes.
|
||||
*
|
||||
|
|
|
@ -443,15 +443,6 @@ class posixAccount extends baseModule {
|
|||
return true;
|
||||
}
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes', 'group');
|
||||
}
|
||||
|
||||
/* This function loads all attributes into the object
|
||||
* $attr is an array as it's retured from ldap_get_attributes
|
||||
*/
|
||||
|
|
|
@ -519,16 +519,6 @@ class posixGroup extends baseModule {
|
|||
}
|
||||
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes', 'user');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Processes user input of the primary module page.
|
||||
* It checks if all input values are correct and updates the associated LDAP attributes.
|
||||
|
|
|
@ -174,23 +174,6 @@ class quota extends baseModule {
|
|||
return true;
|
||||
}
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/* This function returns all ldap attributes
|
||||
* which are part of quota and returns
|
||||
* also their values.
|
||||
*/
|
||||
function get_attributes() {
|
||||
return $this->quota;
|
||||
}
|
||||
|
||||
/* This function loads all attributes into the object
|
||||
* $attr is an array as it's retured from ldap_get_attributes
|
||||
*/
|
||||
|
@ -468,6 +451,9 @@ class quota extends baseModule {
|
|||
return array(
|
||||
'quota_quotas' => $quotas);
|
||||
}
|
||||
else {
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -446,15 +446,6 @@ class sambaAccount extends baseModule {
|
|||
return true;
|
||||
}
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes', 'userWorkstations');
|
||||
}
|
||||
|
||||
/* This function loads all attributes into the object
|
||||
* $attr is an array as it's retured from ldap_get_attributes
|
||||
*/
|
||||
|
|
|
@ -201,15 +201,6 @@ class sambaGroupMapping extends baseModule {
|
|||
return $return;
|
||||
}
|
||||
|
||||
/* This function returns all ldap attributes
|
||||
* which are part of sambaGroupMapping and returns
|
||||
* also their values.
|
||||
*/
|
||||
function get_attributes() {
|
||||
return $this->attributes;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns meta data that is interpreted by parent class
|
||||
*
|
||||
|
@ -376,16 +367,6 @@ class sambaGroupMapping extends baseModule {
|
|||
}
|
||||
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Processes user input of the primary module page.
|
||||
* It checks if all input values are correct and updates the associated LDAP attributes.
|
||||
|
|
|
@ -437,15 +437,6 @@ class sambaSamAccount extends baseModule {
|
|||
return true;
|
||||
}
|
||||
|
||||
/* This function returns a list of all html-pages in module
|
||||
* This is usefull for mass upload and pdf-files
|
||||
* because lam can walk trough all pages itself and do some
|
||||
* error checkings
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes', 'sambaUserWorkstations');
|
||||
}
|
||||
|
||||
/* This function loads all attributes into the object
|
||||
* $attr is an array as it's retured from ldap_get_attributes
|
||||
*/
|
||||
|
|
|
@ -202,15 +202,6 @@ class shadowAccount extends baseModule {
|
|||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function returns a list of all module pages.
|
||||
*
|
||||
* @return array list of page names
|
||||
*/
|
||||
function pages() {
|
||||
return array('attributes');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of modifications which have to be made to the LDAP account.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue