added PDFTable
This commit is contained in:
parent
25ff82f545
commit
daafa828df
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="style/layout.css">
|
<link rel="stylesheet" type="text/css" href="style/layout.css">
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
|
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
|
||||||
<div style="text-align: center;">
|
<div style="text-align: center;">
|
||||||
|
@ -61,7 +62,7 @@ get_metaData() {<br>
|
||||||
When the user wants to create a PDF file the LDAP account is loaded and
|
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.<br>
|
you module is asked for data to put into the PDF file.<br>
|
||||||
<br>
|
<br>
|
||||||
This is done with <span style="font-weight: bold;">get_pdfEntries()</span>. Please also see <span style="font-style: italic;">baseModule::addSimplePDFField() </span>for simple cases like below.<br>
|
This is done with <span style="font-weight: bold;">get_pdfEntries()</span>. Please use one of <span style="font-style: italic;">baseModule::addSimplePDFField/addPDFKeyValue/addPDFTable() </span>for this task.<br>
|
||||||
<br>
|
<br>
|
||||||
<span style="font-weight: bold; text-decoration: underline;">Example:</span><br style="font-weight: bold; text-decoration: underline;">
|
<span style="font-weight: bold; text-decoration: underline;">Example:</span><br style="font-weight: bold; text-decoration: underline;">
|
||||||
<br>
|
<br>
|
||||||
|
@ -76,13 +77,7 @@ module will return the MAC address list of the account.<br>
|
||||||
*/<br>
|
*/<br>
|
||||||
function get_pdfEntries() {<br>
|
function get_pdfEntries() {<br>
|
||||||
$return = array();<br>
|
$return = array();<br>
|
||||||
if
|
$this->addSimplePDFField($return, 'macAddress', _('MAC addresses'));<br>
|
||||||
(sizeof($this->attributes['macAddress']) > 0) {<br>
|
|
||||||
|
|
||||||
$return['ieee802Device_macAddress'] = '<block><key>' .
|
|
||||||
_('MAC address list') . '</key><value>' . implode(', ',
|
|
||||||
$this->attributes['macAddress']) . '</value></block>';<br>
|
|
||||||
}<br>
|
|
||||||
return $return;<br>
|
return $return;<br>
|
||||||
}<br>
|
}<br>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +43,13 @@ This is a list of API changes for all LAM releases.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<h2>4.8 -> 4.9</h2>API changes<br>
|
<h2>5.0 -> 5.1</h2>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.<br>
|
||||||
|
<br>
|
||||||
|
<h2>4.8 -> 4.9</h2>
|
||||||
|
API changes<br>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Module interface: Function get_pdfEntries() has new parameter $pdfKeys.</li>
|
<li>Module interface: Function get_pdfEntries() has new parameter $pdfKeys.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue