Class: QRcode
Source Location: /qrcode.php
Class to create QR-code arrays for TCPDF class.
Author(s):
Version:
Copyright:
- 2010 Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) Via Della Pace, 11 - 09044 - Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
|
|
|
Class Details
Class Variables
Class Methods
constructor __construct [line 656]
QRcode __construct(
string
$code, [string
$eclevel = 'L'])
|
|
This is the class constructor. Creates a QRcode object
Tags:
Parameters:
method allocate [line 2138]
array allocate(
int
$setLength)
|
|
Return an array with zeros
Tags:
Parameters:
method appendBitstream [line 2192]
array appendBitstream(
array
$bitstream, array
$append)
|
|
Append one bitstream to another
Tags:
Parameters:
method appendBytes [line 2224]
array appendBytes(
array
$bitstream, int
$size, array
$data)
|
|
Append one bitstream created from bytes to another
Tags:
Parameters:
method appendNewInputItem [line 1710]
items appendNewInputItem(
array
$items, int
$mode, int
$size, array
$data)
|
|
Append data to an input object. The data is copied and appended to the input object.
Tags:
Parameters:
method appendNum [line 2209]
array appendNum(
array
$bitstream, int
$bits, int
$num)
|
|
Append one bitstream created from number to another
Tags:
Parameters:
method appendPaddingBit [line 2070]
array appendPaddingBit(
array
$bstream)
|
|
Append Padding Bit to bitstream
Tags:
Parameters:
method binarize [line 703]
array binarize(
array
$frame)
|
|
Convert the frame in binary form
Tags:
Parameters:
method bitstreamToByte [line 2237]
array bitstreamToByte(
$bstream, array
$bitstream)
|
|
Convert bitstream to bytes
Tags:
Parameters:
method calcN1N3 [line 1140]
int calcN1N3(
int
$length)
|
|
calcN1N3
Tags:
Parameters:
method calcParity [line 1741]
int calcParity(
array
$items)
|
|
calcParity
Tags:
Parameters:
method check [line 1874]
boolean check(
int
$mode, int
$size, array
$data)
|
|
Validate the input data.
Tags:
Parameters:
method checkModeAn [line 1807]
boolean checkModeAn(
int
$size, array
$data)
|
|
checkModeAn
Tags:
Parameters:
method checkModeKanji [line 1854]
boolean checkModeKanji(
int
$size, array
$data)
|
|
checkModeKanji
Tags:
Parameters:
method checkModeNum [line 1759]
boolean checkModeNum(
int
$size, array
$data)
|
|
checkModeNum
Tags:
Parameters:
method convertData [line 2041]
array convertData(
array
$items)
|
|
convertData
Tags:
Parameters:
method createBitStream [line 2026]
array createBitStream(
array
$items)
|
|
createBitStream
Tags:
Parameters:
method createFrame [line 2537]
Array createFrame(
int
$version)
|
|
Return a copy of initialized frame.
Tags:
Parameters:
method eat8 [line 1409]
method eatAn [line 1357]
method eatKanji [line 1396]
method eatNum [line 1325]
method encodeBitStream [line 1655]
array encodeBitStream(
array
$inputitem, int
$version)
|
|
encodeBitStream
Tags:
Parameters:
method encodeMask [line 734]
void encodeMask(
int
$mask)
|
|
Encode mask
Tags:
Parameters:
method encodeMode8 [line 1601]
array encodeMode8(
array
$inputitem, int
$version)
|
|
encodeMode8
Tags:
Parameters:
method encodeModeAn [line 1578]
array encodeModeAn(
array
$inputitem, int
$version)
|
|
encodeModeAn
Tags:
Parameters:
method encodeModeKanji [line 1617]
array encodeModeKanji(
array
$inputitem, int
$version)
|
|
encodeModeKanji
Tags:
Parameters:
method encodeModeNum [line 1549]
array encodeModeNum(
array
$inputitem, int
$version)
|
|
encodeModeNum
Tags:
Parameters:
method encodeModeStructure [line 1640]
array encodeModeStructure(
array
$inputitem)
|
|
encodeModeStructure
Tags:
Parameters:
method encodeString [line 718]
void encodeString(
string
$string)
|
|
Encode the input string to QR code
Tags:
Parameters:
method encode_rs_char [line 2837]
parity encode_rs_char(
array
$rs, array
$data, array
$parity)
|
|
Encode a Reed-Solomon codec and returns the parity array
Tags:
Parameters:
method estimateBitsMode8 [line 1835]
int estimateBitsMode8(
int
$size)
|
|
estimateBitsMode8
Tags:
Parameters:
method estimateBitsModeAn [line 1821]
int estimateBitsModeAn(
int
$size)
|
|
estimateBitsModeAn
Tags:
Parameters:
method estimateBitsModeKanji [line 1844]
int estimateBitsModeKanji(
int
$size)
|
|
estimateBitsModeKanji
Tags:
Parameters:
method estimateBitsModeNum [line 1773]
int estimateBitsModeNum(
int
$size)
|
|
estimateBitsModeNum
Tags:
Parameters:
method estimateBitStreamSize [line 1907]
int estimateBitStreamSize(
array
$items, int
$version)
|
|
estimateBitStreamSize
Tags:
Parameters:
method estimateVersion [line 1950]
int estimateVersion(
array
$items)
|
|
estimateVersion
Tags:
Parameters:
method evaluateSymbol [line 1171]
int evaluateSymbol(
int
$width, array
$frame)
|
|
evaluateSymbol
Tags:
Parameters:
method generateMaskNo [line 1077]
array generateMaskNo(
int
$maskNo, int
$width, array
$frame)
|
|
Return bitmask
Tags:
Parameters:
method getBarcodeArray [line 694]
Returns a barcode array which is readable by TCPDF
Tags:
method getBitStream [line 2114]
array getBitStream(
int
$items)
|
|
Returns a stream of bits.
Tags:
Parameters:
method getByteStream [line 2124]
array getByteStream(
int
$items)
|
|
Pack all bit streams padding bits into a byte array.
Tags:
Parameters:
method getCode [line 923]
Return Reed-Solomon block code.
Tags:
method getDataLength [line 2290]
int getDataLength(
int
$version, int
$level)
|
|
Return maximum data code length (bytes) for the version.
Tags:
Parameters:
method getECCLength [line 2300]
int getECCLength(
int
$version, int
$level)
|
|
Return maximum error correction code length (bytes) for the version.
Tags:
Parameters:
method getEccSpec [line 2390]
array getEccSpec(
int
$version, int
$level, array
$spec)
|
|
Return an array of ECC specification.
Tags:
Parameters:
method getFormatInfo [line 2498]
BCH getFormatInfo(
array
$mask, int
$level)
|
|
Return BCH encoded format information pattern.
Tags:
Parameters:
method getFrameAt [line 808]
value getFrameAt(
array
$at)
|
|
Get frame value at specified position
Tags:
Parameters:
method getMinimumVersion [line 2328]
int getMinimumVersion(
int
$size, int
$level)
|
|
Return a version number that satisfies the input code length.
Tags:
Parameters:
method getNextPosition [line 816]
Return the next frame position
Tags:
method getRemainder [line 2318]
int getRemainder(
int
$version)
|
|
Return the numer of remainder bits.
Tags:
Parameters:
method getVersionPattern [line 2485]
BCH getVersionPattern(
int
$version)
|
|
Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. Use lower 18 bits.
Tags:
Parameters:
method getWidth [line 2309]
int getWidth(
int
$version)
|
|
Return the width of the symbol for the version.
Tags:
Parameters:
method identifyMode [line 1300]
int identifyMode(
int
$pos)
|
|
identifyMode
Tags:
Parameters:
method init [line 872]
Initialize code.
Tags:
Parameters:
method init_rs [line 2710]
array init_rs(
int
$symsize, int
$gfpoly, int
$fcr, int
$prim, int
$nroots, int
$pad)
|
|
Initialize a Reed-Solomon codec and add it to existing rsitems
Tags:
Parameters:
method init_rs_char [line 2751]
array init_rs_char(
int
$symsize, int
$gfpoly, int
$fcr, int
$prim, int
$nroots, int
$pad)
|
|
Initialize a Reed-Solomon codec and returns an array of values.
Tags:
Parameters:
method insertStructuredAppendHeader [line 1723]
array insertStructuredAppendHeader(
array
$items, int
$size, int
$index, int
$parity)
|
|
insertStructuredAppendHeader
Tags:
Parameters:
method isalnumat [line 1288]
boolean isalnumat(
string
$str, int
$pos)
|
|
Return true if the character at specified position is an alphanumeric character
Tags:
Parameters:
method isdigitat [line 1275]
boolean isdigitat(
string
$str, int
$pos)
|
|
Return true if the character at specified position is a number
Tags:
Parameters:
method lengthIndicator [line 2344]
int lengthIndicator(
int
$mode, int
$version)
|
|
Return the size of length indicator for the mode and version.
Tags:
Parameters:
method lengthOfCode [line 1971]
int lengthOfCode(
int
$mode, int
$version, int
$bits)
|
|
lengthOfCode
Tags:
Parameters:
method lookAnTable [line 1797]
value lookAnTable(
int
$c)
|
|
Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19).
Tags:
Parameters:
method makeMask [line 1128]
array makeMask(
int
$width, array
$frame, int
$maskNo, int
$level)
|
|
makeMask
Tags:
Parameters:
method makeMaskNo [line 1101]
int makeMaskNo(
int
$maskNo, int
$width, int
$s,
&$d, [boolean
$maskGenOnly = false], int
$d)
|
|
makeMaskNo
Tags:
Parameters:
method mask [line 1233]
array mask(
int
$width, array
$frame, int
$level)
|
|
mask
Tags:
Parameters:
method mask0 [line 996]
int mask0(
int
$x, int
$y)
|
|
mask0
Tags:
Parameters:
method mask1 [line 1006]
int mask1(
int
$x, int
$y)
|
|
mask1
Tags:
Parameters:
method mask2 [line 1016]
int mask2(
int
$x, int
$y)
|
|
mask2
Tags:
Parameters:
method mask3 [line 1026]
int mask3(
int
$x, int
$y)
|
|
mask3
Tags:
Parameters:
method mask4 [line 1036]
int mask4(
int
$x, int
$y)
|
|
mask4
Tags:
Parameters:
method mask5 [line 1046]
int mask5(
int
$x, int
$y)
|
|
mask5
Tags:
Parameters:
method mask6 [line 1056]
int mask6(
int
$x, int
$y)
|
|
mask6
Tags:
Parameters:
method mask7 [line 1066]
int mask7(
int
$x, int
$y)
|
|
mask7
Tags:
Parameters:
method maximumWords [line 2364]
int maximumWords(
int
$mode, int
$version)
|
|
Return the maximum length for the mode and version.
Tags:
Parameters:
method mergeBitStream [line 2100]
array mergeBitStream(
$items, array
$bstream)
|
|
mergeBitStream
Tags:
Parameters:
method modnn [line 2733]
int modnn(
array
$rs, int
$x)
|
|
modnn
Tags:
Parameters:
method newFrame [line 2602]
Array newFrame(
int
$version)
|
|
Set new frame for the specified version.
Tags:
Parameters:
method newFromBytes [line 2168]
array newFromBytes(
int
$size, array
$data)
|
|
Return new bitstream from bytes
Tags:
Parameters:
method newFromNum [line 2148]
array newFromNum(
int
$bits, int
$num)
|
|
Return new bitstream from number
Tags:
Parameters:
method newInputItem [line 1527]
array newInputItem(
int
$mode, int
$size, array
$data, [array
$bstream = null])
|
|
newInputItem
Tags:
Parameters:
method putAlignmentMarker [line 2422]
array putAlignmentMarker(
array
$frame, int
$ox, int
$oy, int
$width)
|
|
Put an alignment marker.
Tags:
Parameters:
method putAlignmentPattern [line 2445]
array putAlignmentPattern(
int
$version,
$frame, int
$width, array
$fram)
|
|
Put an alignment pattern.
Tags:
Parameters:
method putFinderPattern [line 2516]
array putFinderPattern(
array
$frame, int
$ox, int
$oy, int
$width)
|
|
Put a finder pattern.
Tags:
Parameters:
method qrstrset [line 2279]
array qrstrset(
array
$srctab, int
$x, int
$y, string
$repl, [int
$replLen = false])
|
|
Replace a value on the array at the specified position
Tags:
Parameters:
method rsBlockNum [line 2620]
int rsBlockNum(
array
$spec)
|
|
Return block number 0
Tags:
Parameters:
method rsBlockNum1 [line 2629]
int rsBlockNum1(
array
$spec)
|
|
Return block number 1
Tags:
Parameters:
method rsBlockNum2 [line 2656]
int rsBlockNum2(
array
$spec)
|
|
Return block number 2
Tags:
Parameters:
method rsDataCodes1 [line 2638]
int rsDataCodes1(
array
$spec)
|
|
Return data codes 1
Tags:
Parameters:
method rsDataCodes2 [line 2665]
int rsDataCodes2(
array
$spec)
|
|
Return data codes 2
Tags:
Parameters:
method rsDataLength [line 2683]
int rsDataLength(
array
$spec)
|
|
Return data length
Tags:
Parameters:
method rsEccCodes1 [line 2647]
int rsEccCodes1(
array
$spec)
|
|
Return ecc codes 1
Tags:
Parameters:
method rsEccCodes2 [line 2674]
int rsEccCodes2(
array
$spec)
|
|
Return ecc codes 2
Tags:
Parameters:
method rsEccLength [line 2692]
int rsEccLength(
array
$spec)
|
|
Return ecc length
Tags:
Parameters:
method setFrameAt [line 799]
void setFrameAt(
array
$at, int
$val)
|
|
Set frame value at specified position
Tags:
Parameters:
method splitString [line 1457]
method toUpper [line 1498]
method writeFormatInformation [line 954]
int writeFormatInformation(
int
$width,
&$frame, array
$mask, int
$level, array
$frame)
|
|
Write Format Information on frame and returns the number of black bits
Tags:
Parameters:
|
|