|
Moodle
2.2.1
http://www.collinsharper.com
|
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 features are not supported: ECI and FNC1 mode, Micro QR Code, QR Code model 1, Structured mode.
This class is derived from "PHP QR Code encoder" by Dominik Dzienia (http://phpqrcode.sourceforge.net/) based on "libqrencode C library 3.1.1." by Kentaro Fukuchi (http://megaui.net/fukuchi/works/qrencode/index.en.html), contains Reed-Solomon code written by Phil Karn, KA9Q. QR Code is registered trademark of DENSO WAVE INCORPORATED (http://www.denso-wave.com/qrcode/index-e.html). Please read comments on this class source file for full copyright and license information.
Definition at line 291 of file qrcode.php.
| __construct | ( | $ | code, |
| $ | eclevel = 'L' |
||
| ) |
This is the class constructor. Creates a QRcode object
| $code | (string) code to represent using QRcode |
| $eclevel | (string) error level:
|
Definition at line 639 of file qrcode.php.

| allocate | ( | $ | setLength | ) | [protected] |
Return an array with zeros
| $setLength | (int) array size |
Definition at line 2129 of file qrcode.php.

| appendBitstream | ( | $ | bitstream, |
| $ | append | ||
| ) | [protected] |
Append one bitstream to another
| $bitstream | (array) original bitstream |
| $append | (array) bitstream to append |
Definition at line 2183 of file qrcode.php.

| appendBytes | ( | $ | bitstream, |
| $ | size, | ||
| $ | data | ||
| ) | [protected] |
Append one bitstream created from bytes to another
| $bitstream | (array) original bitstream |
| $size | (int) size |
| $data | (array) bytes |
Definition at line 2215 of file qrcode.php.


| appendNewInputItem | ( | $ | items, |
| $ | mode, | ||
| $ | size, | ||
| $ | data | ||
| ) | [protected] |
Append data to an input object. The data is copied and appended to the input object.
| $items | (arrray) input items |
| $mode | (int) encoding mode. |
| $size | (int) size of data (byte). |
| $data | (array) array of input data. |
Definition at line 1696 of file qrcode.php.


| appendNum | ( | $ | bitstream, |
| $ | bits, | ||
| $ | num | ||
| ) | [protected] |
Append one bitstream created from number to another
| $bitstream | (array) original bitstream |
| $bits | (int) number of bits |
| $num | (int) number |
Definition at line 2200 of file qrcode.php.


| appendPaddingBit | ( | $ | bstream | ) | [protected] |
Append Padding Bit to bitstream
| $bstream | (array) |
Definition at line 2055 of file qrcode.php.


| binarize | ( | $ | frame | ) | [protected] |
Convert the frame in binary form
| $frame | (array) array to binarize |
Definition at line 689 of file qrcode.php.

| bitstreamToByte | ( | $ | bstream | ) | [protected] |
Convert bitstream to bytes
| $bstream | (array) original bitstream |
Definition at line 2228 of file qrcode.php.

| calcN1N3 | ( | $ | length | ) | [protected] |
calcN1N3
| $length | (int) |
Definition at line 1126 of file qrcode.php.

| calcParity | ( | $ | items | ) | [protected] |
| check | ( | $ | mode, |
| $ | size, | ||
| $ | data | ||
| ) | [protected] |
Validate the input data.
| $mode | (int) encoding mode. |
| $size | (int) size of data (byte). |
| $data | (array) data to validate |
Definition at line 1859 of file qrcode.php.


| checkModeAn | ( | $ | size, |
| $ | data | ||
| ) | [protected] |
checkModeAn
| $size | (int) |
| $data | (array) |
Definition at line 1772 of file qrcode.php.


| checkModeKanji | ( | $ | size, |
| $ | data | ||
| ) | [protected] |
checkModeKanji
| $size | (int) |
| $data | (array) |
Definition at line 1839 of file qrcode.php.

| checkModeNum | ( | $ | size, |
| $ | data | ||
| ) | [protected] |
checkModeNum
| $size | (int) |
| $data | (array) |
Definition at line 1748 of file qrcode.php.

| convertData | ( | $ | items | ) | [protected] |
convertData
| $items | (array) |
Definition at line 2026 of file qrcode.php.


| createBitStream | ( | $ | items | ) | [protected] |
createBitStream
| $items | (array) |
Definition at line 2011 of file qrcode.php.


| createFrame | ( | $ | version | ) | [protected] |
Return a copy of initialized frame.
| $version | (int) version |
Definition at line 2529 of file qrcode.php.


| eat8 | ( | ) | [protected] |
eat8
Definition at line 1395 of file qrcode.php.


| eatAn | ( | ) | [protected] |
eatAn
Definition at line 1343 of file qrcode.php.


| eatKanji | ( | ) | [protected] |
eatKanji
Definition at line 1382 of file qrcode.php.


| eatNum | ( | ) | [protected] |
eatNum
Definition at line 1311 of file qrcode.php.


| encode_rs_char | ( | $ | rs, |
| $ | data, | ||
| $ | parity | ||
| ) | [protected] |
Encode a Reed-Solomon codec and returns the parity array
| $rs | (array) RS values |
| $data | (array) data |
| $parity | (array) parity |
Definition at line 2827 of file qrcode.php.


| encodeBitStream | ( | $ | inputitem, |
| $ | version | ||
| ) | [protected] |
encodeBitStream
| $inputitem | (array) |
| $version | (int) |
Definition at line 1641 of file qrcode.php.


| encodeMask | ( | $ | mask | ) | [protected] |
Encode mask
| $mask | (int) masking mode |
Definition at line 720 of file qrcode.php.


| encodeMode8 | ( | $ | inputitem, |
| $ | version | ||
| ) | [protected] |
encodeMode8
| $inputitem | (array) |
| $version | (int) |
Definition at line 1587 of file qrcode.php.


| encodeModeAn | ( | $ | inputitem, |
| $ | version | ||
| ) | [protected] |
encodeModeAn
| $inputitem | (array) |
| $version | (int) |
Definition at line 1564 of file qrcode.php.


| encodeModeKanji | ( | $ | inputitem, |
| $ | version | ||
| ) | [protected] |
encodeModeKanji
| $inputitem | (array) |
| $version | (int) |
Definition at line 1603 of file qrcode.php.


| encodeModeNum | ( | $ | inputitem, |
| $ | version | ||
| ) | [protected] |
encodeModeNum
| $inputitem | (array) |
| $version | (int) |
Definition at line 1535 of file qrcode.php.


| encodeModeStructure | ( | $ | inputitem | ) | [protected] |
encodeModeStructure
| $inputitem | (array) |
Definition at line 1626 of file qrcode.php.


| encodeString | ( | $ | string | ) | [protected] |
Encode the input string to QR code
| $string | (string) input string to encode |
Definition at line 704 of file qrcode.php.


| estimateBitsMode8 | ( | $ | size | ) | [protected] |
estimateBitsMode8
| $size | (int) |
Definition at line 1820 of file qrcode.php.

| estimateBitsModeAn | ( | $ | size | ) | [protected] |
estimateBitsModeAn
| $size | (int) |
Definition at line 1807 of file qrcode.php.

| estimateBitsModeKanji | ( | $ | size | ) | [protected] |
estimateBitsModeKanji
| $size | (int) |
Definition at line 1829 of file qrcode.php.

| estimateBitsModeNum | ( | $ | size | ) | [protected] |
estimateBitsModeNum
| $size | (int) |
Definition at line 1786 of file qrcode.php.

| estimateBitStreamSize | ( | $ | items, |
| $ | version | ||
| ) | [protected] |
estimateBitStreamSize
| $items | (array) |
| $version | (int) |
Definition at line 1892 of file qrcode.php.


| estimateVersion | ( | $ | items | ) | [protected] |
estimateVersion
| $items | (array) |
Definition at line 1935 of file qrcode.php.


| evaluateSymbol | ( | $ | width, |
| $ | frame | ||
| ) | [protected] |
evaluateSymbol
| $width | (int) |
| $frame | (array) |
Definition at line 1157 of file qrcode.php.


| generateMaskNo | ( | $ | maskNo, |
| $ | width, | ||
| $ | frame | ||
| ) | [protected] |
Return bitmask
| $maskNo | (int) mask number |
| $width | (int) width |
| $frame | (array) frame |
Definition at line 1063 of file qrcode.php.

| getBarcodeArray | ( | ) |
Returns a barcode array which is readable by TCPDF
Definition at line 680 of file qrcode.php.
| getBitStream | ( | $ | items | ) | [protected] |
Returns a stream of bits.
| $items | (int) |
Definition at line 2105 of file qrcode.php.


| getByteStream | ( | $ | items | ) | [protected] |
Pack all bit streams padding bits into a byte array.
| $items | (int) |
Definition at line 2115 of file qrcode.php.


| getCode | ( | ) | [protected] |
Return Reed-Solomon block code.
Definition at line 909 of file qrcode.php.

| getDataLength | ( | $ | version, |
| $ | level | ||
| ) | [protected] |
Return maximum data code length (bytes) for the version.
| $version | (int) version |
| $level | (int) error correction level |
Definition at line 2284 of file qrcode.php.

| getECCLength | ( | $ | version, |
| $ | level | ||
| ) | [protected] |
Return maximum error correction code length (bytes) for the version.
| $version | (int) version |
| $level | (int) error correction level |
Definition at line 2294 of file qrcode.php.

| getEccSpec | ( | $ | version, |
| $ | level, | ||
| $ | spec | ||
| ) | [protected] |
Return an array of ECC specification.
| $version | (int) version |
| $level | (int) error correction level |
| $spec | (array) an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, # of type2 blocks, # of data code} |
Definition at line 2384 of file qrcode.php.


| getFormatInfo | ( | $ | mask, |
| $ | level | ||
| ) | [protected] |
Return BCH encoded format information pattern.
| $mask | (array) |
| $level | (int) error correction level |
Definition at line 2491 of file qrcode.php.

| getFrameAt | ( | $ | at | ) | [protected] |
Get frame value at specified position
| $at | (array) x,y position |
Definition at line 794 of file qrcode.php.
| getMinimumVersion | ( | $ | size, |
| $ | level | ||
| ) | [protected] |
Return a version number that satisfies the input code length.
| $size | (int) input code length (byte) |
| $level | (int) error correction level |
Definition at line 2322 of file qrcode.php.

| getNextPosition | ( | ) | [protected] |
Return the next frame position
Definition at line 802 of file qrcode.php.

| getRemainder | ( | $ | version | ) | [protected] |
Return the numer of remainder bits.
| $version | (int) version |
Definition at line 2312 of file qrcode.php.

| getVersionPattern | ( | $ | version | ) | [protected] |
Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. Use lower 18 bits.
| $version | (int) version |
Definition at line 2478 of file qrcode.php.

| getWidth | ( | $ | version | ) | [protected] |
Return the width of the symbol for the version.
| $version | (int) version |
Definition at line 2303 of file qrcode.php.

| identifyMode | ( | $ | pos | ) | [protected] |
identifyMode
| $pos | (int) |
Definition at line 1286 of file qrcode.php.


| init | ( | $ | spec | ) | [protected] |
Initialize code.
| $spec | (array) array of ECC specification |
Definition at line 858 of file qrcode.php.


| init_rs | ( | $ | symsize, |
| $ | gfpoly, | ||
| $ | fcr, | ||
| $ | prim, | ||
| $ | nroots, | ||
| $ | pad | ||
| ) | [protected] |
Initialize a Reed-Solomon codec and add it to existing rsitems
| $symsize | (int) symbol size, bits |
| $gfpoly | (int) Field generator polynomial coefficients |
| $fcr | (int) first root of RS code generator polynomial, index form |
| $prim | (int) primitive element to generate polynomial roots |
| $nroots | (int) RS code generator polynomial degree (number of roots) |
| $pad | (int) padding bytes at front of shortened block |
Definition at line 2702 of file qrcode.php.


| init_rs_char | ( | $ | symsize, |
| $ | gfpoly, | ||
| $ | fcr, | ||
| $ | prim, | ||
| $ | nroots, | ||
| $ | pad | ||
| ) | [protected] |
Initialize a Reed-Solomon codec and returns an array of values.
| $symsize | (int) symbol size, bits |
| $gfpoly | (int) Field generator polynomial coefficients |
| $fcr | (int) first root of RS code generator polynomial, index form |
| $prim | (int) primitive element to generate polynomial roots |
| $nroots | (int) RS code generator polynomial degree (number of roots) |
| $pad | (int) padding bytes at front of shortened block |
Definition at line 2743 of file qrcode.php.


| insertStructuredAppendHeader | ( | $ | items, |
| $ | size, | ||
| $ | index, | ||
| $ | parity | ||
| ) | [protected] |
insertStructuredAppendHeader
| $items | (array) |
| $size | (int) |
| $index | (int) |
| $parity | (int) |
Definition at line 1712 of file qrcode.php.

| isalnumat | ( | $ | str, |
| $ | pos | ||
| ) | [protected] |
Return true if the character at specified position is an alphanumeric character
| $str | (string) string |
| $pos | (int) characted position |
Definition at line 1274 of file qrcode.php.


| isdigitat | ( | $ | str, |
| $ | pos | ||
| ) | [protected] |
Return true if the character at specified position is a number
| $str | (string) string |
| $pos | (int) characted position |
Definition at line 1261 of file qrcode.php.

| lengthIndicator | ( | $ | mode, |
| $ | version | ||
| ) | [protected] |
Return the size of length indicator for the mode and version.
| $mode | (int) encoding mode |
| $version | (int) version |
Definition at line 2338 of file qrcode.php.

| lengthOfCode | ( | $ | mode, |
| $ | version, | ||
| $ | bits | ||
| ) | [protected] |
lengthOfCode
| $mode | (int) |
| $version | (int) |
| $bits | (int) |
Definition at line 1956 of file qrcode.php.

| lookAnTable | ( | $ | c | ) | [protected] |
Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19).
| $c | (int) character value |
Definition at line 1762 of file qrcode.php.

| makeMask | ( | $ | width, |
| $ | frame, | ||
| $ | maskNo, | ||
| $ | level | ||
| ) | [protected] |
makeMask
| $width | (int) |
| $frame | (array) |
| $maskNo | (int) |
| $level | (int) |
Definition at line 1114 of file qrcode.php.


| makeMaskNo | ( | $ | maskNo, |
| $ | width, | ||
| $ | s, | ||
| &$ | d, | ||
| $ | maskGenOnly = false |
||
| ) | [protected] |
makeMaskNo
| $maskNo | (int) |
| $width | (int) |
| $s | (int) |
| $d | (int) |
| $maskGenOnly | (boolean) |
Definition at line 1087 of file qrcode.php.


| mask | ( | $ | width, |
| $ | frame, | ||
| $ | level | ||
| ) | [protected] |
mask
| $width | (int) |
| $frame | (array) |
| $level | (int) |
Definition at line 1219 of file qrcode.php.


| mask0 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask0
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 982 of file qrcode.php.
| mask1 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask1
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 992 of file qrcode.php.
| mask2 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask2
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 1002 of file qrcode.php.
| mask3 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask3
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 1012 of file qrcode.php.
| mask4 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask4
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 1022 of file qrcode.php.
| mask5 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask5
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 1032 of file qrcode.php.
| mask6 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask6
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 1042 of file qrcode.php.
| mask7 | ( | $ | x, |
| $ | y | ||
| ) | [protected] |
mask7
| $x | (int) X position |
| $y | (int) Y position |
Definition at line 1052 of file qrcode.php.
| maximumWords | ( | $ | mode, |
| $ | version | ||
| ) | [protected] |
Return the maximum length for the mode and version.
| $mode | (int) encoding mode |
| $version | (int) version |
Definition at line 2358 of file qrcode.php.

| mergeBitStream | ( | $ | items | ) | [protected] |
mergeBitStream
| $items | (array) items |
Definition at line 2088 of file qrcode.php.


| modnn | ( | $ | rs, |
| $ | x | ||
| ) | [protected] |
modnn
| $rs | (array) RS values |
| $x | (int) X position |
Definition at line 2725 of file qrcode.php.

| newFrame | ( | $ | version | ) | [protected] |
Set new frame for the specified version.
| $version | (int) version |
Definition at line 2594 of file qrcode.php.


| newFromBytes | ( | $ | size, |
| $ | data | ||
| ) | [protected] |
Return new bitstream from bytes
| $size | (int) size |
| $data | (array) bytes |
Definition at line 2159 of file qrcode.php.


| newFromNum | ( | $ | bits, |
| $ | num | ||
| ) | [protected] |
Return new bitstream from number
| $bits | (int) number of bits |
| $num | (int) number |
Definition at line 2139 of file qrcode.php.


| newInputItem | ( | $ | mode, |
| $ | size, | ||
| $ | data, | ||
| $ | bstream = null |
||
| ) | [protected] |
newInputItem
| $mode | (int) |
| $size | (int) |
| $data | (array) |
| $bstream | (array) |
Definition at line 1513 of file qrcode.php.


| putAlignmentMarker | ( | $ | frame, |
| $ | ox, | ||
| $ | oy | ||
| ) | [protected] |
Put an alignment marker.
| $frame | (array) frame |
| $ox | (int) X center coordinate of the pattern |
| $oy | (int) Y center coordinate of the pattern |
Definition at line 2415 of file qrcode.php.


| putAlignmentPattern | ( | $ | version, |
| $ | frame, | ||
| $ | width | ||
| ) | [protected] |
Put an alignment pattern.
| $version | (int) version |
| $frame | (array) frame |
| $width | (int) width |
Definition at line 2438 of file qrcode.php.


| putFinderPattern | ( | $ | frame, |
| $ | ox, | ||
| $ | oy | ||
| ) | [protected] |
Put a finder pattern.
| $frame | (array) frame |
| $ox | (int) X center coordinate of the pattern |
| $oy | (int) Y center coordinate of the pattern |
Definition at line 2508 of file qrcode.php.


| qrstrset | ( | $ | srctab, |
| $ | x, | ||
| $ | y, | ||
| $ | repl, | ||
| $ | replLen = false |
||
| ) | [protected] |
Replace a value on the array at the specified position
| $srctab | (array) |
| $x | (int) X position |
| $y | (int) Y position |
| $repl | (string) value to replace |
| $replLen | (int) length of the repl string |
Definition at line 2273 of file qrcode.php.

| rsBlockNum | ( | $ | spec | ) | [protected] |
Return block number 0
| $spec | (array) |
Definition at line 2612 of file qrcode.php.

| rsBlockNum1 | ( | $ | spec | ) | [protected] |
Return block number 1
| $spec | (array) |
Definition at line 2621 of file qrcode.php.

| rsBlockNum2 | ( | $ | spec | ) | [protected] |
Return block number 2
| $spec | (array) |
Definition at line 2648 of file qrcode.php.

| rsDataCodes1 | ( | $ | spec | ) | [protected] |
Return data codes 1
| $spec | (array) |
Definition at line 2630 of file qrcode.php.

| rsDataCodes2 | ( | $ | spec | ) | [protected] |
Return data codes 2
| $spec | (array) |
Definition at line 2657 of file qrcode.php.

| rsDataLength | ( | $ | spec | ) | [protected] |
Return data length
| $spec | (array) |
Definition at line 2675 of file qrcode.php.

| rsEccCodes1 | ( | $ | spec | ) | [protected] |
Return ecc codes 1
| $spec | (array) |
Definition at line 2639 of file qrcode.php.

| rsEccCodes2 | ( | $ | spec | ) | [protected] |
Return ecc codes 2
| $spec | (array) |
Definition at line 2666 of file qrcode.php.

| rsEccLength | ( | $ | spec | ) | [protected] |
Return ecc length
| $spec | (array) |
Definition at line 2684 of file qrcode.php.

| setFrameAt | ( | $ | at, |
| $ | val | ||
| ) | [protected] |
Set frame value at specified position
| $at | (array) x,y position |
| $val | (int) value of the character to set |
Definition at line 785 of file qrcode.php.

| splitString | ( | ) | [protected] |
splitString
Definition at line 1443 of file qrcode.php.


| toUpper | ( | ) | [protected] |
toUpper
Definition at line 1484 of file qrcode.php.


| writeFormatInformation | ( | $ | width, |
| &$ | frame, | ||
| $ | mask, | ||
| $ | level | ||
| ) | [protected] |
Write Format Information on frame and returns the number of black bits
| $width | (int) frame width |
| $frame | (array) frame |
| $mask | (array) masking mode |
| $level | (int) error correction level |
Definition at line 940 of file qrcode.php.


$alignmentPattern [protected] |
array( array( 0, 0), array( 0, 0), array(18, 0), array(22, 0), array(26, 0), array(30, 0), array(34, 0), array(22, 38), array(24, 42), array(26, 46), array(28, 50), array(30, 54), array(32, 58), array(34, 62), array(26, 46), array(26, 48), array(26, 50), array(30, 54), array(30, 56), array(30, 58), array(34, 62), array(28, 50), array(26, 50), array(30, 54), array(28, 54), array(32, 58), array(30, 58), array(34, 62), array(26, 50), array(30, 54), array(26, 52), array(30, 56), array(34, 60), array(30, 58), array(34, 62), array(30, 54), array(24, 50), array(28, 54), array(32, 58), array(26, 54), array(30, 58) )
Array Positions of alignment patterns. This array includes only the second and the third position of the alignment patterns. Rest of them can be calculated from the distance between them. See Table 1 in Appendix E (pp.71) of JIS X0510:2004.
Definition at line 589 of file qrcode.php.
$anTable [protected] |
array( -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 )
Alphabet-numeric convesion table.
Definition at line 463 of file qrcode.php.
$b1 [protected] |
Value b1.
Definition at line 421 of file qrcode.php.
$barcode_array = array() [protected] |
Barcode array to be returned which is readable by TCPDF.
Definition at line 297 of file qrcode.php.
$bit [protected] |
Single bit value.
Definition at line 371 of file qrcode.php.
$blocks [protected] |
Blocks.
Definition at line 391 of file qrcode.php.
$capacity [protected] |
Array Table of the capacity of symbols. See Table 1 (pp.13) and Table 12-16 (pp.30-36), JIS X0510:2004.
Definition at line 479 of file qrcode.php.
$casesensitive = true [protected] |
Boolean flag, if true the input string will be converted to uppercase.
Definition at line 321 of file qrcode.php.
$count [protected] |
Counter.
Definition at line 403 of file qrcode.php.
$data [protected] |
Mask data.
Definition at line 333 of file qrcode.php.
$datacode = array() [protected] |
Data code.
Definition at line 379 of file qrcode.php.
$dataLength [protected] |
Data length.
Definition at line 409 of file qrcode.php.
$dataStr = '' [protected] |
Input data string.
Definition at line 437 of file qrcode.php.
$dir [protected] |
Direction.
Definition at line 365 of file qrcode.php.
$ecccode = array() [protected] |
Error correction code.
Definition at line 385 of file qrcode.php.
$eccLength [protected] |
Error correction length.
Definition at line 415 of file qrcode.php.
$eccTable [protected] |
Array Table of the error correction code (Reed-Solomon block). See Table 12-16 (pp.30-36), JIS X0510:2004.
Definition at line 539 of file qrcode.php.
$formatInfo [protected] |
array( array(0x77c4, 0x72f3, 0x7daa, 0x789d, 0x662f, 0x6318, 0x6c41, 0x6976), array(0x5412, 0x5125, 0x5e7c, 0x5b4b, 0x45f9, 0x40ce, 0x4f97, 0x4aa0), array(0x355f, 0x3068, 0x3f31, 0x3a06, 0x24b4, 0x2183, 0x2eda, 0x2bed), array(0x1689, 0x13be, 0x1ce7, 0x19d0, 0x0762, 0x0255, 0x0d0c, 0x083b) )
Array Format information
Definition at line 619 of file qrcode.php.
$frame [protected] |
Frame.
Definition at line 347 of file qrcode.php.
$frames = array() [protected] |
Array of frames.
Definition at line 457 of file qrcode.php.
$hint = QR_MODE_8B [protected] |
Encoding mode.
Definition at line 315 of file qrcode.php.
$items [protected] |
Input items.
Definition at line 443 of file qrcode.php.
$lengthTableBits [protected] |
$level = QR_ECLEVEL_L [protected] |
Levels of error correction. See definitions for possible values.
Definition at line 309 of file qrcode.php.
$rsblocks = array() [protected] |
Reed-Solomon blocks.
Definition at line 397 of file qrcode.php.
$rsitems = array() [protected] |
Reed-Solomon items.
Definition at line 451 of file qrcode.php.
$runLength = array() [protected] |
Run length.
Definition at line 429 of file qrcode.php.
$structured = 0 [protected] |
Structured QR code (not supported yet).
Definition at line 327 of file qrcode.php.
$version = 0 [protected] |
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.
Definition at line 303 of file qrcode.php.
$versionPattern [protected] |
array( 0x07c94, 0x085bc, 0x09a99, 0x0a4d3, 0x0bbf6, 0x0c762, 0x0d847, 0x0e60d, 0x0f928, 0x10b78, 0x1145d, 0x12a17, 0x13532, 0x149a6, 0x15683, 0x168c9, 0x177ec, 0x18ec4, 0x191e1, 0x1afab, 0x1b08e, 0x1cc1a, 0x1d33f, 0x1ed75, 0x1f250, 0x209d5, 0x216f0, 0x228ba, 0x2379f, 0x24b0b, 0x2542e, 0x26a64, 0x27541, 0x28c69 )
Array Version information pattern (BCH coded). See Table 1 in Appendix D (pp.68) of JIS X0510:2004. size: [QRSPEC_VERSION_MAX - 6]
Definition at line 607 of file qrcode.php.
$width [protected] |
Width.
Definition at line 341 of file qrcode.php.
$x [protected] |
X position of bit.
Definition at line 353 of file qrcode.php.
$y [protected] |
Y position of bit.
Definition at line 359 of file qrcode.php.