added PDFTable
This commit is contained in:
parent
25ff82f545
commit
daafa828df
|
@ -3,6 +3,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style/layout.css">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
|
||||
|
@ -61,7 +62,7 @@ get_metaData() {<br>
|
|||
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>
|
||||
<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>
|
||||
<span style="font-weight: bold; text-decoration: underline;">Example:</span><br style="font-weight: bold; text-decoration: underline;">
|
||||
<br>
|
||||
|
@ -76,13 +77,7 @@ module will return the MAC address list of the account.<br>
|
|||
*/<br>
|
||||
function get_pdfEntries() {<br>
|
||||
$return = array();<br>
|
||||
if
|
||||
(sizeof($this->attributes['macAddress']) > 0) {<br>
|
||||
|
||||
$return['ieee802Device_macAddress'] = '<block><key>' .
|
||||
_('MAC address list') . '</key><value>' . implode(', ',
|
||||
$this->attributes['macAddress']) . '</value></block>';<br>
|
||||
}<br>
|
||||
$this->addSimplePDFField($return, 'macAddress', _('MAC addresses'));<br>
|
||||
return $return;<br>
|
||||
}<br>
|
||||
</td>
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -42,7 +43,13 @@ This is a list of API changes for all LAM releases.
|
|||
|
||||
<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>
|
||||
<li>Module interface: Function get_pdfEntries() has new parameter $pdfKeys.</li>
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue