Documentation

QRDataModeAbstract
in package
implements QRDataModeInterface

abstract methods for the several data modes

Interfaces, Classes, Traits and Enums

QRDataModeInterface
Specifies the methods reqired for the data modules (Number, Alphanum, Byte and Kanji)

Table of Contents

$data  : string
The data to write
__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
Tags
inheritDoc
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

Search results