diff --git a/lam/docs/devel/mod_accountPages.htm b/lam/docs/devel/mod_accountPages.htm
index 93592dd0..38d66d6d 100644
--- a/lam/docs/devel/mod_accountPages.htm
+++ b/lam/docs/devel/mod_accountPages.htm
@@ -11,7 +11,75 @@
/** + * This function loads all needed attributes into the +object. + * + * @param array $attr an array as it is retured from +ldap_get_attributes + */ + function load_attributes($attr) { + +$this->attributes['objectClass'] = array(); + +$this->attributes['macAddress'] = array(); + $this->orig['objectClass'] = +array(); + $this->orig['macAddress'] = +array(); + if (isset($attr['objectClass'])) { + +unset($attr['objectClass']['count']); + +$this->attributes['objectClass'] = $attr['objectClass']; + +$this->orig['objectClass'] = $attr['objectClass']; + } + if (isset($attr['macAddress'])) { + +unset($attr['macAddress']['count']); + +$this->attributes['macAddress'] = $attr['macAddress']; + +$this->orig['macAddress'] = $attr['macAddress']; + } + return 0; + } + |
+
+ | /** + * Returns a list of modifications which have to be +made to the LDAP account. + * + * @return array list of modifications + * <br>This function returns an array with 3 +entries: + * <br>array( DN1 ('add' => array($attr), +'remove' => array($attr), 'modify' => array($attr)), DN2 .... ) + * <br>DN is the DN to change. It may be +possible to change several DNs (e.g. create a new user and add him to +some groups via attribute memberUid) + * <br>"add" are attributes which have to be +added to LDAP entry + * <br>"remove" are attributes which have to be +removed from LDAP entry + * <br>"modify" are attributes which have to +been modified in LDAP entry + */ + function save_attributes() { + return +$_SESSION[$this->base]->save_module_attributes($this->attributes, +$this->orig); + } |
+/** + * Returns meta data that is interpreted by parent +class + * + * @return array array with meta data + */ + function +get_metaData() { + $return = array(); +[...] + // available PDF fields + + $return['PDF_fields'] = array( + + 'macAddress' + + ); + return $return; + } + + |
+
/** + * Returns a list of PDF entries + */ + function get_pdfEntries() { + $return = array(); + if +(sizeof($this->attributes['macAddress']) > 0) { + +$return['ieee802Device_macAddress'] = '<block><key>' . +_('MAC address list') . '</key><value>' . implode(', ', +$this->attributes['macAddress']) . '</value></block>'; + } + return $return; + } + |
+