added PDFTable

This commit is contained in:
Roland Gruber 2015-07-12 08:44:22 +00:00
parent 25ff82f545
commit daafa828df
2 changed files with 11 additions and 9 deletions

View File

@ -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>
&nbsp;&nbsp;&nbsp; */<br> &nbsp;&nbsp;&nbsp; */<br>
&nbsp;&nbsp;&nbsp; function get_pdfEntries() {<br> &nbsp;&nbsp;&nbsp; function get_pdfEntries() {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $return = array();<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $return = array();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $this-&gt;addSimplePDFField($return, 'macAddress', _('MAC addresses'));<br>
(sizeof($this-&gt;attributes['macAddress']) &gt; 0) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
$return['ieee802Device_macAddress'] = '&lt;block&gt;&lt;key&gt;' .
_('MAC address list') . '&lt;/key&gt;&lt;value&gt;' . implode(', ',
$this-&gt;attributes['macAddress']) . '&lt;/value&gt;&lt;/block&gt;';<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return $return;<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return $return;<br>
&nbsp;&nbsp;&nbsp; }<br> &nbsp;&nbsp;&nbsp; }<br>
</td> </td>

View File

@ -19,6 +19,7 @@
@ -42,7 +43,13 @@ This is a list of API changes for all LAM releases.
<br> <br>
<h2>4.8 -&gt; 4.9</h2>API changes<br> <h2>5.0 -&gt; 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 -&gt; 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>