QROptions
(via QROptionsTrait)
The full phpDocumentor API documentation can be found at chillerlan.github.io/php-qrcode.
Methods
Inherited from SettingsContainerAbstract
method |
return |
info |
|---|---|---|
|
- |
calls |
(protected) |
|
calls a method with trait name as replacement constructor for each used trait (similar to PHP4 constructors) |
|
|
calls |
|
|
calls |
|
|
|
|
|
|
|
|
a JSON string |
|
|
|
|
|
|
|
|
accepts JSON options constants |
|
|
|
|
|
implements the |
Properties
property |
type |
default |
allowed |
description |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
Minimum QR version (if |
|
|
|
|
Maximum QR version (if |
|
|
|
|
Error correct level, where X = L (7%), M (15%), Q (25%), H (30%) |
|
|
|
|
Mask Pattern to use |
|
|
|
* |
Add a “quiet zone” (margin) according to the QR code spec |
|
|
|
clamped to |
Size of the quiet zone |
|
|
|
|
The built-in output type, XXX can be one of: |
|
|
|
* |
The FQCN of the custom |
|
|
|
* |
Return the image resource instead of a render if applicable. |
|
|
|
* |
Optional cache file path |
|
|
|
* |
Toggle base64 or raw image data (if applicable) |
|
|
|
* |
Newline string (HTML, SVG, TEXT) |
|
|
|
a valid FPDF, GD or Imagick color value |
Sets the image background color (if applicable). QRImagick: defaults to “white”, QRGdImage: defaults to [255, 255, 255], QRFpdf: defaults to blank internally (white page) |
|
|
|
* |
Whether to draw the light (false) modules |
|
|
|
* |
Specify whether to draw the modules as filled circles |
|
|
|
|
Specifies the radius of the modules when $svgDrawCircularModules is set to true |
|
|
|
|
Specifies which module types to exclude when $svgDrawCircularModules is set to true |
|
|
|
* |
Whether to connect the paths for the several module types to avoid weird glitches when using gradients etc. |
|
|
|
|
Specify which paths/patterns to exclude from connecting if $svgConnectPaths is set to true |
|
|
|
* |
Module values map, see [[Custom module values]] |
|
|
|
* |
Toggles logo space creation |
|
|
|
* |
Width of the logo space |
|
|
|
* |
Height of the logo space |
|
|
|
* |
Optional horizontal start position of the logo space (top left corner) |
|
|
|
* |
Optional vertical start position of the logo space (top left corner) |
|
|
|
* |
Pixel size of a QR code module |
|
|
|
* |
Toggle transparency (no jpeg support), QRGdImage and QRImagick only. The given |
|
|
|
a valid GD or Imagick color value |
Sets a transparency color for when |
|
|
|
|
|
|
|
|
|
|
|
|
|
* |
ImageMagick output type, see |
|
|
|
* |
A common css class |
|
|
|
* |
Markup substitute for dark (CSS value) |
|
|
|
* |
Markup substitute for light (CSS value) |
|
|
|
* |
Whether to add an XML header line or not, e.g. to embed the SVG directly in HTML |
|
|
|
|
SVG opacity |
|
|
|
* |
Anything in the |
|
|
|
* |
SVG viewBox size. A single integer number which defines width/height of the viewBox attribute |
|
|
|
* |
|
|
|
|
* |
Optional “width” attribute with the specified value (note that the value is not checked!) |
|
|
|
* |
Optional “height” attribute with the specified value (note that the value is not checked!) |
|
|
|
* |
String substitute for dark |
|
|
|
* |
String substitute for light |
|
|
|
* |
Measurement unit for FPDF output: pt, mm, cm, in |
|
|
|
* |
Use Imagick (if available) when reading QR Codes |
|
|
|
* |
Grayscale the image before reading |
|
|
|
* |
Increase the contrast before reading |