QROutputInterface
in
Converts the data matrix into readable output
Table of Contents
- CUSTOM = 'custom'
- DEFAULT_MODULE_VALUES = [ // light \chillerlan\QRCode\Data\QRMatrix::M_NULL => false, \chillerlan\QRCode\Data\QRMatrix::M_DATA => false, \chillerlan\QRCode\Data\QRMatrix::M_FINDER => false, \chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR => false, \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT => false, \chillerlan\QRCode\Data\QRMatrix::M_TIMING => false, \chillerlan\QRCode\Data\QRMatrix::M_FORMAT => false, \chillerlan\QRCode\Data\QRMatrix::M_VERSION => false, \chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE => false, \chillerlan\QRCode\Data\QRMatrix::M_LOGO => false, \chillerlan\QRCode\Data\QRMatrix::M_TEST => false, // dark \chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE => true, \chillerlan\QRCode\Data\QRMatrix::M_DATA_DARK => true, \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DARK => true, \chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT_DARK => true, \chillerlan\QRCode\Data\QRMatrix::M_TIMING_DARK => true, \chillerlan\QRCode\Data\QRMatrix::M_FORMAT_DARK => true, \chillerlan\QRCode\Data\QRMatrix::M_VERSION_DARK => true, \chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT => true, \chillerlan\QRCode\Data\QRMatrix::M_TEST_DARK => true, ]
- EPS = 'eps'
- FPDF = 'fpdf'
- GDIMAGE_GIF = 'gif'
- GDIMAGE_JPG = 'jpg'
- GDIMAGE_PNG = 'png'
- IMAGICK = 'imagick'
- MARKUP_HTML = 'html'
- MARKUP_SVG = 'svg'
- MODES = [self::MARKUP_SVG => \chillerlan\QRCode\Output\QRMarkupSVG::class, self::MARKUP_HTML => \chillerlan\QRCode\Output\QRMarkupHTML::class, self::GDIMAGE_PNG => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_GIF => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_JPG => \chillerlan\QRCode\Output\QRGdImage::class, self::STRING_JSON => \chillerlan\QRCode\Output\QRString::class, self::STRING_TEXT => \chillerlan\QRCode\Output\QRString::class, self::IMAGICK => \chillerlan\QRCode\Output\QRImagick::class, self::FPDF => \chillerlan\QRCode\Output\QRFpdf::class, self::EPS => \chillerlan\QRCode\Output\QREps::class]
- Map of built-in output modes => modules
- STRING_JSON = 'json'
- STRING_TEXT = 'text'
- dump() : mixed
- generates the output, optionally dumps it to a file, and returns it
- moduleValueIsValid() : bool
- Determines whether the given value is valid
Constants
CUSTOM
public
string
CUSTOM
= 'custom'
DEFAULT_MODULE_VALUES
public
array<string|int, bool>
DEFAULT_MODULE_VALUES
= [
// light
\chillerlan\QRCode\Data\QRMatrix::M_NULL => false,
\chillerlan\QRCode\Data\QRMatrix::M_DATA => false,
\chillerlan\QRCode\Data\QRMatrix::M_FINDER => false,
\chillerlan\QRCode\Data\QRMatrix::M_SEPARATOR => false,
\chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT => false,
\chillerlan\QRCode\Data\QRMatrix::M_TIMING => false,
\chillerlan\QRCode\Data\QRMatrix::M_FORMAT => false,
\chillerlan\QRCode\Data\QRMatrix::M_VERSION => false,
\chillerlan\QRCode\Data\QRMatrix::M_QUIETZONE => false,
\chillerlan\QRCode\Data\QRMatrix::M_LOGO => false,
\chillerlan\QRCode\Data\QRMatrix::M_TEST => false,
// dark
\chillerlan\QRCode\Data\QRMatrix::M_DARKMODULE => true,
\chillerlan\QRCode\Data\QRMatrix::M_DATA_DARK => true,
\chillerlan\QRCode\Data\QRMatrix::M_FINDER_DARK => true,
\chillerlan\QRCode\Data\QRMatrix::M_ALIGNMENT_DARK => true,
\chillerlan\QRCode\Data\QRMatrix::M_TIMING_DARK => true,
\chillerlan\QRCode\Data\QRMatrix::M_FORMAT_DARK => true,
\chillerlan\QRCode\Data\QRMatrix::M_VERSION_DARK => true,
\chillerlan\QRCode\Data\QRMatrix::M_FINDER_DOT => true,
\chillerlan\QRCode\Data\QRMatrix::M_TEST_DARK => true,
]
EPS
public
string
EPS
= 'eps'
FPDF
public
string
FPDF
= 'fpdf'
GDIMAGE_GIF
public
string
GDIMAGE_GIF
= 'gif'
GDIMAGE_JPG
public
string
GDIMAGE_JPG
= 'jpg'
GDIMAGE_PNG
public
string
GDIMAGE_PNG
= 'png'
IMAGICK
public
string
IMAGICK
= 'imagick'
MARKUP_HTML
public
string
MARKUP_HTML
= 'html'
MARKUP_SVG
public
string
MARKUP_SVG
= 'svg'
MODES
Map of built-in output modes => modules
public
array<string|int, string>
MODES
= [self::MARKUP_SVG => \chillerlan\QRCode\Output\QRMarkupSVG::class, self::MARKUP_HTML => \chillerlan\QRCode\Output\QRMarkupHTML::class, self::GDIMAGE_PNG => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_GIF => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_JPG => \chillerlan\QRCode\Output\QRGdImage::class, self::STRING_JSON => \chillerlan\QRCode\Output\QRString::class, self::STRING_TEXT => \chillerlan\QRCode\Output\QRString::class, self::IMAGICK => \chillerlan\QRCode\Output\QRImagick::class, self::FPDF => \chillerlan\QRCode\Output\QRFpdf::class, self::EPS => \chillerlan\QRCode\Output\QREps::class]
STRING_JSON
public
string
STRING_JSON
= 'json'
STRING_TEXT
public
string
STRING_TEXT
= 'text'
Methods
dump()
generates the output, optionally dumps it to a file, and returns it
public
dump([string $file = null ]) : mixed
please note that the value of QROptions::$cachefile is already evaluated at this point. if the output module is invoked manually, it has no effect at all. you need to supply the $file parameter here in that case (or handle the option value in your custom output module).
Parameters
- $file : string = null
Tags
Return values
mixed —moduleValueIsValid()
Determines whether the given value is valid
public
static moduleValueIsValid(mixed|null $value) : bool
Parameters
- $value : mixed|null