296 |
aurelien |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Docs For Class TCPDF2DBarcode</title>
|
|
|
4 |
<link rel="stylesheet" type="text/css" href="../media/style.css">
|
|
|
5 |
</head>
|
|
|
6 |
<body>
|
|
|
7 |
|
|
|
8 |
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
|
|
|
9 |
<tr>
|
|
|
10 |
<td class="header_top">com-tecnick-tcpdf</td>
|
|
|
11 |
</tr>
|
|
|
12 |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
|
|
|
13 |
<tr>
|
|
|
14 |
<td class="header_menu">
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
[ <a href="../classtrees_com-tecnick-tcpdf.html" class="menu">class tree: com-tecnick-tcpdf</a> ]
|
|
|
18 |
[ <a href="../elementindex_com-tecnick-tcpdf.html" class="menu">index: com-tecnick-tcpdf</a> ]
|
|
|
19 |
[ <a href="../elementindex.html" class="menu">all elements</a> ]
|
|
|
20 |
</td>
|
|
|
21 |
</tr>
|
|
|
22 |
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
|
|
|
23 |
</table>
|
|
|
24 |
|
|
|
25 |
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
|
26 |
<tr valign="top">
|
|
|
27 |
<td width="200" class="menu">
|
|
|
28 |
<b>Packages:</b><br />
|
|
|
29 |
<a href="../li_com-tecnick-tcpdf.html">com-tecnick-tcpdf</a><br />
|
|
|
30 |
<br /><br />
|
|
|
31 |
<b>Files:</b><br />
|
|
|
32 |
<div class="package">
|
|
|
33 |
<a href="../com-tecnick-tcpdf/_2dbarcodes.php.html"> 2dbarcodes.php
|
|
|
34 |
</a><br>
|
|
|
35 |
<a href="../com-tecnick-tcpdf/_barcodes.php.html"> barcodes.php
|
|
|
36 |
</a><br>
|
|
|
37 |
<a href="../com-tecnick-tcpdf/_htmlcolors.php.html"> htmlcolors.php
|
|
|
38 |
</a><br>
|
|
|
39 |
<a href="../com-tecnick-tcpdf/_pdf417.php.html"> pdf417.php
|
|
|
40 |
</a><br>
|
|
|
41 |
<a href="../com-tecnick-tcpdf/_qrcode.php.html"> qrcode.php
|
|
|
42 |
</a><br>
|
|
|
43 |
<a href="../com-tecnick-tcpdf/_tcpdf.php.html"> tcpdf.php
|
|
|
44 |
</a><br>
|
|
|
45 |
<a href="../com-tecnick-tcpdf/_config---tcpdf_config.php.html"> tcpdf_config.php
|
|
|
46 |
</a><br>
|
|
|
47 |
<a href="../com-tecnick-tcpdf/_unicode_data.php.html"> unicode_data.php
|
|
|
48 |
</a><br>
|
|
|
49 |
</div><br />
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
<b>Classes:</b><br />
|
|
|
53 |
<div class="package">
|
|
|
54 |
<a href="../com-tecnick-tcpdf/PDF417.html">PDF417</a><br />
|
|
|
55 |
<a href="../com-tecnick-tcpdf/QRcode.html">QRcode</a><br />
|
|
|
56 |
<a href="../com-tecnick-tcpdf/TCPDF.html">TCPDF</a><br />
|
|
|
57 |
<a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html">TCPDF2DBarcode</a><br />
|
|
|
58 |
<a href="../com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br />
|
|
|
59 |
<a href="../com-tecnick-tcpdf/TCPDF_UNICODE_DATA.html">TCPDF_UNICODE_DATA</a><br />
|
|
|
60 |
</div>
|
|
|
61 |
</td>
|
|
|
62 |
<td>
|
|
|
63 |
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
|
|
|
64 |
|
|
|
65 |
<h1>Class: TCPDF2DBarcode</h1>
|
|
|
66 |
Source Location: /2dbarcodes.php<br /><br />
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
<table width="100%" border="0">
|
|
|
70 |
<tr><td valign="top">
|
|
|
71 |
|
|
|
72 |
<h3><a href="#class_details">Class Overview</a></h3>
|
|
|
73 |
<pre></pre><br />
|
|
|
74 |
<div class="description">PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></div><br /><br />
|
|
|
75 |
<h4>Author(s):</h4>
|
|
|
76 |
<ul>
|
|
|
77 |
<li>Nicola Asuni</li>
|
|
|
78 |
</ul>
|
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
<h4>Version:</h4>
|
|
|
86 |
<ul>
|
|
|
87 |
<li>1.0.007</li>
|
|
|
88 |
</ul>
|
|
|
89 |
|
|
|
90 |
|
|
|
91 |
</td>
|
|
|
92 |
|
|
|
93 |
<td valign="top">
|
|
|
94 |
<h3><a href="#class_vars">Variables</a></h3>
|
|
|
95 |
<ul>
|
|
|
96 |
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#var$barcode_array">$barcode_array</a></li>
|
|
|
97 |
</ul>
|
|
|
98 |
</td>
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
<td valign="top">
|
|
|
102 |
<h3><a href="#class_methods">Methods</a></h3>
|
|
|
103 |
<ul>
|
|
|
104 |
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#method__construct">__construct</a></li>
|
|
|
105 |
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#methodgetBarcodeArray">getBarcodeArray</a></li>
|
|
|
106 |
<li><a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html#methodsetBarcode">setBarcode</a></li>
|
|
|
107 |
</ul>
|
|
|
108 |
</td>
|
|
|
109 |
|
|
|
110 |
</tr></table>
|
|
|
111 |
<hr />
|
|
|
112 |
|
|
|
113 |
<table width="100%" border="0"><tr>
|
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
</tr></table>
|
|
|
121 |
<hr />
|
|
|
122 |
|
|
|
123 |
<a name="class_details"></a>
|
|
|
124 |
<h3>Class Details</h3>
|
|
|
125 |
<div class="tags">
|
|
|
126 |
[line 55]<br />
|
|
|
127 |
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /><br /><br /><br /><br />
|
|
|
128 |
<h4>Tags:</h4>
|
|
|
129 |
<div class="tags">
|
|
|
130 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
131 |
<tr>
|
|
|
132 |
<td><b>author:</b> </td><td>Nicola Asuni</td>
|
|
|
133 |
</tr>
|
|
|
134 |
<tr>
|
|
|
135 |
<td><b>version:</b> </td><td>1.0.007</td>
|
|
|
136 |
</tr>
|
|
|
137 |
<tr>
|
|
|
138 |
<td><b>link:</b> </td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
|
|
|
139 |
</tr>
|
|
|
140 |
<tr>
|
|
|
141 |
<td><b>name:</b> </td><td>TCPDFBarcode</td>
|
|
|
142 |
</tr>
|
|
|
143 |
<tr>
|
|
|
144 |
<td><b>license:</b> </td><td><a href="http://www.gnu.org/copyleft/lesser.html">LGPL</a></td>
|
|
|
145 |
</tr>
|
|
|
146 |
</table>
|
|
|
147 |
</div>
|
|
|
148 |
</div><br /><br />
|
|
|
149 |
<div class="top">[ <a href="#top">Top</a> ]</div><br />
|
|
|
150 |
|
|
|
151 |
<hr />
|
|
|
152 |
<a name="class_vars"></a>
|
|
|
153 |
<h3>Class Variables</h3>
|
|
|
154 |
<div class="tags">
|
|
|
155 |
<a name="var$barcode_array"></a>
|
|
|
156 |
<p></p>
|
|
|
157 |
<h4>$barcode_array = <span class="value"> false</span></h4>
|
|
|
158 |
<p>[line 61]</p>
|
|
|
159 |
<br /><br />
|
|
|
160 |
<h4>Tags:</h4>
|
|
|
161 |
<div class="tags">
|
|
|
162 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
163 |
<tr>
|
|
|
164 |
<td><b>var:</b> </td><td>representation of barcode.</td>
|
|
|
165 |
</tr>
|
|
|
166 |
<tr>
|
|
|
167 |
<td><b>access:</b> </td><td>protected</td>
|
|
|
168 |
</tr>
|
|
|
169 |
</table>
|
|
|
170 |
</div>
|
|
|
171 |
|
|
|
172 |
<br />
|
|
|
173 |
<div class="tags">
|
|
|
174 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
175 |
<tr>
|
|
|
176 |
<td><b>Type:</b> </td>
|
|
|
177 |
<td>array</td>
|
|
|
178 |
</tr>
|
|
|
179 |
</table>
|
|
|
180 |
</div><br /><br />
|
|
|
181 |
<div class="top">[ <a href="#top">Top</a> ]</div><br />
|
|
|
182 |
</div><br />
|
|
|
183 |
|
|
|
184 |
<hr />
|
|
|
185 |
<a name="class_methods"></a>
|
|
|
186 |
<h3>Class Methods</h3>
|
|
|
187 |
<div class="tags">
|
|
|
188 |
|
|
|
189 |
<hr />
|
|
|
190 |
<a name="method__construct"></a>
|
|
|
191 |
<h3>constructor __construct <span class="smalllinenumber">[line 73]</span></h3>
|
|
|
192 |
<div class="function">
|
|
|
193 |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
194 |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
195 |
<code>TCPDF2DBarcode __construct(
|
|
|
196 |
string
|
|
|
197 |
$code, string
|
|
|
198 |
$type)</code>
|
|
|
199 |
</td></tr></table>
|
|
|
200 |
</td></tr></table><br />
|
|
|
201 |
|
|
|
202 |
This is the class constructor.<br /><br /><p>Return an array representations for 2D barcodes:<ul><li>$arrcode['code'] code to be printed on text label</li><li>$arrcode['num_rows'] required number of rows</li><li>$arrcode['num_cols'] required number of columns</li><li>$arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)</li></ul></p><br /><br /><br />
|
|
|
203 |
<h4>Tags:</h4>
|
|
|
204 |
<div class="tags">
|
|
|
205 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
206 |
<tr>
|
|
|
207 |
<td><b>access:</b> </td><td>public</td>
|
|
|
208 |
</tr>
|
|
|
209 |
</table>
|
|
|
210 |
</div>
|
|
|
211 |
<br /><br />
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
<h4>Parameters:</h4>
|
|
|
215 |
<div class="tags">
|
|
|
216 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
217 |
<tr>
|
|
|
218 |
<td class="type">string </td>
|
|
|
219 |
<td><b>$code</b> </td>
|
|
|
220 |
<td>code to print</td>
|
|
|
221 |
</tr>
|
|
|
222 |
<tr>
|
|
|
223 |
<td class="type">string </td>
|
|
|
224 |
<td><b>$type</b> </td>
|
|
|
225 |
<td>type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul></td>
|
|
|
226 |
</tr>
|
|
|
227 |
</table>
|
|
|
228 |
</div><br />
|
|
|
229 |
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
230 |
</div>
|
|
|
231 |
<hr />
|
|
|
232 |
<a name="methodgetBarcodeArray"></a>
|
|
|
233 |
<h3>method getBarcodeArray <span class="smalllinenumber">[line 81]</span></h3>
|
|
|
234 |
<div class="function">
|
|
|
235 |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
236 |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
237 |
<code>array getBarcodeArray(
|
|
|
238 |
)</code>
|
|
|
239 |
</td></tr></table>
|
|
|
240 |
</td></tr></table><br />
|
|
|
241 |
|
|
|
242 |
Return an array representations of barcode.<br /><br /><br /><br />
|
|
|
243 |
<h4>Tags:</h4>
|
|
|
244 |
<div class="tags">
|
|
|
245 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
246 |
<tr>
|
|
|
247 |
<td><b>access:</b> </td><td>public</td>
|
|
|
248 |
</tr>
|
|
|
249 |
</table>
|
|
|
250 |
</div>
|
|
|
251 |
<br /><br />
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
255 |
</div>
|
|
|
256 |
<hr />
|
|
|
257 |
<a name="methodsetBarcode"></a>
|
|
|
258 |
<h3>method setBarcode <span class="smalllinenumber">[line 91]</span></h3>
|
|
|
259 |
<div class="function">
|
|
|
260 |
<table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
|
|
|
261 |
<table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
|
|
|
262 |
<code>array setBarcode(
|
|
|
263 |
string
|
|
|
264 |
$code, string
|
|
|
265 |
$type)</code>
|
|
|
266 |
</td></tr></table>
|
|
|
267 |
</td></tr></table><br />
|
|
|
268 |
|
|
|
269 |
Set the barcode.<br /><br /><br /><br />
|
|
|
270 |
<h4>Tags:</h4>
|
|
|
271 |
<div class="tags">
|
|
|
272 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
273 |
<tr>
|
|
|
274 |
<td><b>access:</b> </td><td>public</td>
|
|
|
275 |
</tr>
|
|
|
276 |
</table>
|
|
|
277 |
</div>
|
|
|
278 |
<br /><br />
|
|
|
279 |
|
|
|
280 |
|
|
|
281 |
<h4>Parameters:</h4>
|
|
|
282 |
<div class="tags">
|
|
|
283 |
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
284 |
<tr>
|
|
|
285 |
<td class="type">string </td>
|
|
|
286 |
<td><b>$code</b> </td>
|
|
|
287 |
<td>code to print</td>
|
|
|
288 |
</tr>
|
|
|
289 |
<tr>
|
|
|
290 |
<td class="type">string </td>
|
|
|
291 |
<td><b>$type</b> </td>
|
|
|
292 |
<td>type of barcode: <ul><li>RAW: raw mode - comma-separad list of array rows</li><li>RAW2: raw mode - array rows are surrounded by square parenthesis.</li><li>QRCODE : QR-CODE Low error correction</li><li>QRCODE,L : QR-CODE Low error correction</li><li>QRCODE,M : QR-CODE Medium error correction</li><li>QRCODE,Q : QR-CODE Better error correction</li><li>QRCODE,H : QR-CODE Best error correction</li><li>PDF417 : PDF417 (ISO/IEC 15438:2006)</li><li>PDF417,a,e,t,s,f,o0,o1,o2,o3,o4,o5,o6 : PDF417 with parameters: a = aspect ratio (width/height); e = error correction level (0-8); t = total number of macro segments; s = macro segment index (0-99998); f = file ID; o0 = File Name (text); o1 = Segment Count (numeric); o2 = Time Stamp (numeric); o3 = Sender (text); o4 = Addressee (text); o5 = File Size (numeric); o6 = Checksum (numeric). NOTES: Parameters t, s and f are required for a Macro Control Block, all other parametrs are optional. To use a comma character ',' on text options, replace it with the character 255: "\xff".</li></ul></td>
|
|
|
293 |
</tr>
|
|
|
294 |
</table>
|
|
|
295 |
</div><br />
|
|
|
296 |
<div class="top">[ <a href="#top">Top</a> ]</div>
|
|
|
297 |
</div>
|
|
|
298 |
</div><br />
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
<div class="credit">
|
|
|
302 |
<hr />
|
|
|
303 |
Documentation generated on Sat, 04 Dec 2010 11:25:36 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
|
|
|
304 |
</div>
|
|
|
305 |
</td></tr></table>
|
|
|
306 |
</td>
|
|
|
307 |
</tr>
|
|
|
308 |
</table>
|
|
|
309 |
|
|
|
310 |
</body>
|
|
|
311 |
</html>
|