Documentation

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

Methods

convertEncoding()

encoding conversion helper

public static convertEncoding(string $string) : string
Parameters
$string : string
Return values
string

getCharCount()

returns the character count of the $data string

protected getCharCount() : int
Return values
int

getLengthBits()

shortcut

protected static getLengthBits(int $versionNumber) : int
Parameters
$versionNumber : int
Return values
int

        
On this page

Search results