QRString
Converts the matrix data into string types
- Full name:
\chillerlan\QRCode\Output\QRString
- Parent class:
\chillerlan\QRCode\Output\QROutputAbstract
Properties
defaultMode
the default output mode of the current output module
Methods
setModuleValues
Sets the initial module values (clean-up & defaults)
text
string output
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string |
json
JSON output
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string |
Inherited methods
__construct
QROutputAbstract constructor.
public __construct(\chillerlan\Settings\SettingsContainerInterface $options, \chillerlan\QRCode\Data\QRMatrix $matrix): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$options |
\chillerlan\Settings\SettingsContainerInterface | |
$matrix |
\chillerlan\QRCode\Data\QRMatrix |
setModuleValues
Sets the initial module values (clean-up & defaults)
- This method is abstract.
saveToFile
saves the qr data to a file
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string | |
$file |
string |
Throws:
See Also:
- \chillerlan\QRCode\Output\file_put_contents() - * \chillerlan\QRCode\QROptions::cachefile -
dump
generates the output, optionally dumps it to a file, and returns it
Parameters:
Parameter | Type | Description |
---|---|---|
$file |
string |
Automatically generated on 2025-03-18