QRDataModeAbstract
in package
implements
QRDataModeInterface
AbstractYes
abstract methods for the several data modes
Table of Contents
Interfaces
- QRDataModeInterface
- Specifies the methods reqired for the data modules (Number, Alphanum, Byte and Kanji)
Properties
- $data : string
- The data to write
Methods
- __construct() : mixed
- QRDataModeAbstract constructor.
- convertEncoding() : string
- encoding conversion helper
- getCharCount() : int
- returns the character count of the $data string
- getLengthBits() : int
- shortcut
Properties
$data
The data to write
protected
string
$data
Methods
__construct()
QRDataModeAbstract constructor.
public
__construct(string $data) : mixed
Parameters
- $data : string
Tags
convertEncoding()
encoding conversion helper
public
static convertEncoding(string $string) : string
Parameters
- $string : string
Return values
stringgetCharCount()
returns the character count of the $data string
protected
getCharCount() : int
Return values
intgetLengthBits()
shortcut
protected
static getLengthBits(int $versionNumber) : int
Parameters
- $versionNumber : int