Byte
extends QRDataModeAbstract
in package
Byte mode, ISO-8859-1 or UTF-8
ISO/IEC 18004:2000 Section 8.3.4 ISO/IEC 18004:2000 Section 8.4.4
Table of Contents
- $data : string
- The data to write
- $datamode : int
- the current data mode: Num, Alphanum, Kanji, Byte
- __construct() : mixed
- QRDataModeAbstract constructor.
- decodeSegment() : string
- getDataMode() : int
- returns the current data mode constant
- getLengthInBits() : int
- validateString() : bool
- write() : void
- getCharCount() : int
- returns the character count of the $data string
Properties
$data
The data to write
protected
string
$data
$datamode
the current data mode: Num, Alphanum, Kanji, Byte
protected
static int
$datamode
= chillerlanQRCodeCommonMode::BYTE
Tags
Methods
__construct()
QRDataModeAbstract constructor.
public
__construct(string $data) : mixed
Parameters
- $data : string
Tags
Return values
mixed —decodeSegment()
public
static decodeSegment(BitBuffer $bitBuffer, int $versionNumber) : string
Parameters
- $bitBuffer : BitBuffer
- $versionNumber : int
Tags
Return values
string —getDataMode()
returns the current data mode constant
public
getDataMode() : int
Tags
Return values
int —getLengthInBits()
public
getLengthInBits() : int
Tags
Return values
int —validateString()
public
static validateString(string $string) : bool
Parameters
- $string : string
Tags
Return values
bool —write()
public
write(BitBuffer $bitBuffer, int $versionNumber) : void
Parameters
- $bitBuffer : BitBuffer
- $versionNumber : int
Tags
Return values
void —getCharCount()
returns the character count of the $data string
protected
getCharCount() : int