MCPcopy Create free account
hub / github.com/codemistic/Web-Development / QRcode

Class QRcode

text-to-qr/lib/phpqrcode/bindings/tcpdf/qrcode.php:308–2872  ·  view source on GitHub ↗

* Class to create QR-code arrays for TCPDF class. * QR Code symbol is a 2D barcode that can be scanned by handy terminals such as a mobile phone with CCD. * The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness. * This class supports QR Code model 2, described in JIS (Japanese Industrial Standards) X0510:2004 or ISO/IEC 18004. * Currently the following fe

Source from the content-addressed store, hash-verified

306 * @version 1.0.002
307 */
308 class QRcode {
309
310 /**
311 * @var barcode array to be returned which is readable by TCPDF
312 * @access protected
313 */
314 protected $barcode_array = array();
315
316 /**
317 * @var QR code version. Size of QRcode is defined as version. Version is from 1 to 40. Version 1 is 21*21 matrix. And 4 modules increases whenever 1 version increases. So version 40 is 177*177 matrix.
318 * @access protected
319 */
320 protected $version = 0;
321
322 /**
323 * @var Levels of error correction. See definitions for possible values.
324 * @access protected
325 */
326 protected $level = QR_ECLEVEL_L;
327
328 /**
329 * @var Encoding mode
330 * @access protected
331 */
332 protected $hint = QR_MODE_8B;
333
334 /**
335 * @var if true the input string will be converted to uppercase
336 * @access protected
337 */
338 protected $casesensitive = true;
339
340 /**
341 * @var structured QR code (not supported yet)
342 * @access protected
343 */
344 protected $structured = 0;
345
346 /**
347 * @var mask data
348 * @access protected
349 */
350 protected $data;
351
352 // FrameFiller
353
354 /**
355 * @var width
356 * @access protected
357 */
358 protected $width;
359
360 /**
361 * @var frame
362 * @access protected
363 */
364 protected $frame;
365

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected