QROptions
The QRCode settings container
- Full name:
\chillerlan\QRCode\QROptions
- Parent class:
\chillerlan\Settings\SettingsContainerAbstract
Inherited methods
__construct
SettingsContainerAbstract constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
$properties |
iterable |
construct
calls a method with trait name as replacement constructor for each used trait (remember pre-php5 classname constructors? yeah, basically this.)
__get
Retrieve the value of $property
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string |
__set
Set $property to $value while avoiding private and non-existing properties
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string | |
$value |
mixed |
__isset
Checks if $property is set (aka. not null), excluding private properties
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string |
__unset
Unsets $property while avoiding private and non-existing properties
Parameters:
Parameter | Type | Description |
---|---|---|
$property |
string |
__toString
toArray
Returns an array representation of the settings object
fromIterable
Sets properties from a given iterable
Parameters:
Parameter | Type | Description |
---|---|---|
$properties |
iterable |
toJSON
Returns a JSON representation of the settings object
Parameters:
Parameter | Type | Description |
---|---|---|
$jsonOptions |
int |
fromJSON
Sets properties from a given JSON string
Parameters:
Parameter | Type | Description |
---|---|---|
$json |
string |
jsonSerialize
setMinMaxVersion
clamp min/max version number
Parameters:
Parameter | Type | Description |
---|---|---|
$versionMin |
int | |
$versionMax |
int |
set_versionMin
sets the minimum version number
Parameters:
Parameter | Type | Description |
---|---|---|
$version |
int |
set_versionMax
sets the maximum version number
Parameters:
Parameter | Type | Description |
---|---|---|
$version |
int |
set_eccLevel
sets the error correction level
Parameters:
Parameter | Type | Description |
---|---|---|
$eccLevel |
int |
Throws:
set_maskPattern
sets/clamps the mask pattern
Parameters:
Parameter | Type | Description |
---|---|---|
$maskPattern |
int |
set_imageTransparencyBG
sets the transparency background color
Parameters:
Parameter | Type | Description |
---|---|---|
$imageTransparencyBG |
array |
Throws:
set_version
sets/clamps the version number
Parameters:
Parameter | Type | Description |
---|---|---|
$version |
int |
set_fpdfMeasureUnit
sets the FPDF measurement unit
Parameters:
Parameter | Type | Description |
---|---|---|
$unit |
string |
Automatically generated on 2025-03-18