AlphaNum
Alphanumeric mode: 0 to 9, A to Z, space, $ % * + - . / :
ISO/IEC 18004:2000 Section 8.3.3 ISO/IEC 18004:2000 Section 8.4.3
- Full name:
\chillerlan\QRCode\Data\AlphaNum
- Parent class:
\chillerlan\QRCode\Data\QRDataAbstract
- This class is marked as final and can't be subclassed
- This class is a Final class
Properties
datamode
the current data mode: Num, Alphanum, Kanji, Byte
lengthBits
mode length bits for the version breakpoints 1-9, 10-26 and 27-40
ISO/IEC 18004:2000 Table 3 - Number of bits in Character Count Indicator
Methods
write
writes the actual data string to the BitBuffer
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string |
getCharCode
get the code for the given character
Parameters:
Parameter | Type | Description |
---|---|---|
$chr |
string |
Throws:
on an illegal character occurence
Inherited methods
__construct
QRDataInterface constructor.
public __construct(\chillerlan\Settings\SettingsContainerInterface $options, string $data = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$options |
\chillerlan\Settings\SettingsContainerInterface | |
$data |
string |
setData
Sets the data string (internally called by the constructor)
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string |
initMatrix
returns a fresh matrix object with the data written for the given $maskPattern
Parameters:
Parameter | Type | Description |
---|---|---|
$maskPattern |
int | |
$test |
bool |
getLengthBits
returns the length bits for the version breakpoints 1-9, 10-26 and 27-40
Throws:
getLength
returns the byte count of the $data string
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string |
getMinimumVersion
returns the minimum version number for the given string
Throws:
write
writes the actual data string to the BitBuffer
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string |
See Also:
- \chillerlan\QRCode\Data\QRDataAbstract::writeBitBuffer() -
writeBitBuffer
creates a BitBuffer and writes the string data to it
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string |
Throws:
on data overflow
maskECC
ECC masking
ISO/IEC 18004:2000 Section 8.5 ff
See Also:
- http://www.thonky.com/qr-code-tutorial/error-correction-coding -
poly
helper method for the polynomial operations
Parameters:
Parameter | Type | Description |
---|---|---|
$key |
int | |
$count |
int |
Automatically generated on 2025-03-18