@@ -61,7 +62,7 @@ get_metaData() {
When the user wants to create a PDF file the LDAP account is loaded and
you module is asked for data to put into the PDF file.
-This is done with get_pdfEntries(). Please also see baseModule::addSimplePDFField() for simple cases like below.
+This is done with get_pdfEntries(). Please use one of baseModule::addSimplePDFField/addPDFKeyValue/addPDFTable() for this task.
Example:
@@ -76,13 +77,7 @@ module will return the MAC address list of the account.
*/
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>';
- }
+ $this->addSimplePDFField($return, 'macAddress', _('MAC addresses'));
return $return;
}
diff --git a/lam/docs/devel/upgrade.htm b/lam/docs/devel/upgrade.htm
index 0b3b7f0d..ed373e3f 100644
--- a/lam/docs/devel/upgrade.htm
+++ b/lam/docs/devel/upgrade.htm
@@ -19,6 +19,7 @@
+
@@ -42,7 +43,13 @@ This is a list of API changes for all LAM releases.
-
4.8 -> 4.9
API changes
+
5.0 -> 5.1
Module interface - getPDFEntries(): It is no
+longer supported that modules generate PDF XML on their own. You must
+use addSimplePDFField/addPDFKeyValue/addPDFTable() from baseModule for
+this.
+
+
4.8 -> 4.9
+API changes
Module interface: Function get_pdfEntries() has new parameter $pdfKeys.