+ MIME_TYPE + + +
+ + + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'application/postscript'
+
+
+
+
+
+
+
+diff --git a/classes/chillerlan-QRCode-Output-QREps.html b/classes/chillerlan-QRCode-Output-QREps.html index d4b1d4f55..64e4694da 100644 --- a/classes/chillerlan-QRCode-Output-QREps.html +++ b/classes/chillerlan-QRCode-Output-QREps.html @@ -203,6 +203,19 @@
+ public
+ mixed
+ MIME_TYPE
+ = 'application/postscript'
+
+
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ public
+ mixed
+ MIME_TYPE
+ = 'application/pdf'
+
+
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
GdImage bmp output
+ + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'image/bmp'
+
+
+
+
+
+
+
+The allocated background color
+ +
+ protected
+ int
+ $background
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+ The GD image resource
+ +
+ protected
+ resource|GdImage
+ $image
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ Whether we're running in upscale mode (scale < 20)
+ +
+ protected
+ bool
+ $upscaled
+ = false
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+
+ public
+ dump([string $file = null ]) : string|resource|GdImage
+
+
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ Checks whether GD is installed and if the given mode is supported
+ +
+ protected
+ checkGD() : void
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+Creates a new GdImage resource and scales it if necessary
+ +
+ protected
+ createImage() : GdImage|resource
+
+ we're scaling the image up in order to draw crisp round circles, otherwise they appear square-y on small scales
+Draws the QR image
+ +
+ protected
+ drawImage() : void
+
+ Creates the final image by calling the desired GD output function
+ +
+ protected
+ dumpImage() : string
+
+ Returns a default value for either dark or light modules
+ +
+ protected
+ abstract getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+Creates a single QR pixel with the given settings
+ +
+ protected
+ module(int $x, int $y, int $M_TYPE) : void
+
+ Prepares the value for the given input ()
+ +
+ protected
+ abstract prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+ Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets the background color
+ +
+ protected
+ setBgColor() : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Sets the transparency color
+ +
+ protected
+ setTransparencyColor() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+ GdImage gif output
+ + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'image/gif'
+
+
+
+
+
+
+
+The allocated background color
+ +
+ protected
+ int
+ $background
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+ The GD image resource
+ +
+ protected
+ resource|GdImage
+ $image
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ Whether we're running in upscale mode (scale < 20)
+ +
+ protected
+ bool
+ $upscaled
+ = false
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+
+ public
+ dump([string $file = null ]) : string|resource|GdImage
+
+
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ Checks whether GD is installed and if the given mode is supported
+ +
+ protected
+ checkGD() : void
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+Creates a new GdImage resource and scales it if necessary
+ +
+ protected
+ createImage() : GdImage|resource
+
+ we're scaling the image up in order to draw crisp round circles, otherwise they appear square-y on small scales
+Draws the QR image
+ +
+ protected
+ drawImage() : void
+
+ Creates the final image by calling the desired GD output function
+ +
+ protected
+ dumpImage() : string
+
+ Returns a default value for either dark or light modules
+ +
+ protected
+ abstract getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+Creates a single QR pixel with the given settings
+ +
+ protected
+ module(int $x, int $y, int $M_TYPE) : void
+
+ Prepares the value for the given input ()
+ +
+ protected
+ abstract prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+ Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets the background color
+ +
+ protected
+ setBgColor() : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Sets the transparency color
+ +
+ protected
+ setTransparencyColor() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+ GdImage jpeg output
+ + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'image/jpg'
+
+
+
+
+
+
+
+The allocated background color
+ +
+ protected
+ int
+ $background
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+ The GD image resource
+ +
+ protected
+ resource|GdImage
+ $image
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ Whether we're running in upscale mode (scale < 20)
+ +
+ protected
+ bool
+ $upscaled
+ = false
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+
+ public
+ dump([string $file = null ]) : string|resource|GdImage
+
+
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ Checks whether GD is installed and if the given mode is supported
+ +
+ protected
+ checkGD() : void
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+Creates a new GdImage resource and scales it if necessary
+ +
+ protected
+ createImage() : GdImage|resource
+
+ we're scaling the image up in order to draw crisp round circles, otherwise they appear square-y on small scales
+Draws the QR image
+ +
+ protected
+ drawImage() : void
+
+ Creates the final image by calling the desired GD output function
+ +
+ protected
+ dumpImage() : string
+
+ Returns a default value for either dark or light modules
+ +
+ protected
+ abstract getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+Creates a single QR pixel with the given settings
+ +
+ protected
+ module(int $x, int $y, int $M_TYPE) : void
+
+ Prepares the value for the given input ()
+ +
+ protected
+ abstract prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+ Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets the background color
+ +
+ protected
+ setBgColor() : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Sets the transparency color
+ +
+ protected
+ setTransparencyColor() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+ GdImage png output
+ + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'image/png'
+
+
+
+
+
+
+
+The allocated background color
+ +
+ protected
+ int
+ $background
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+ The GD image resource
+ +
+ protected
+ resource|GdImage
+ $image
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ Whether we're running in upscale mode (scale < 20)
+ +
+ protected
+ bool
+ $upscaled
+ = false
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+
+ public
+ dump([string $file = null ]) : string|resource|GdImage
+
+
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ Checks whether GD is installed and if the given mode is supported
+ +
+ protected
+ checkGD() : void
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+Creates a new GdImage resource and scales it if necessary
+ +
+ protected
+ createImage() : GdImage|resource
+
+ we're scaling the image up in order to draw crisp round circles, otherwise they appear square-y on small scales
+Draws the QR image
+ +
+ protected
+ drawImage() : void
+
+ Creates the final image by calling the desired GD output function
+ +
+ protected
+ dumpImage() : string
+
+ Returns a default value for either dark or light modules
+ +
+ protected
+ abstract getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+Creates a single QR pixel with the given settings
+ +
+ protected
+ module(int $x, int $y, int $M_TYPE) : void
+
+ Prepares the value for the given input ()
+ +
+ protected
+ abstract prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+ Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets the background color
+ +
+ protected
+ setBgColor() : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Sets the transparency color
+ +
+ protected
+ setTransparencyColor() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+ GdImage webp output
+ + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'image/webp'
+
+
+
+
+
+
+
+The allocated background color
+ +
+ protected
+ int
+ $background
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+ The GD image resource
+ +
+ protected
+ resource|GdImage
+ $image
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ Whether we're running in upscale mode (scale < 20)
+ +
+ protected
+ bool
+ $upscaled
+ = false
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+
+ public
+ dump([string $file = null ]) : string|resource|GdImage
+
+
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ Checks whether GD is installed and if the given mode is supported
+ +
+ protected
+ checkGD() : void
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+Creates a new GdImage resource and scales it if necessary
+ +
+ protected
+ createImage() : GdImage|resource
+
+ we're scaling the image up in order to draw crisp round circles, otherwise they appear square-y on small scales
+Draws the QR image
+ +
+ protected
+ drawImage() : void
+
+ Creates the final image by calling the desired GD output function
+ +
+ protected
+ dumpImage() : string
+
+ Returns a default value for either dark or light modules
+ +
+ protected
+ abstract getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+Creates a single QR pixel with the given settings
+ +
+ protected
+ module(int $x, int $y, int $M_TYPE) : void
+
+ Prepares the value for the given input ()
+ +
+ protected
+ abstract prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+ Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets the background color
+ +
+ protected
+ setBgColor() : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Sets the transparency color
+ +
+ protected
+ setTransparencyColor() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
Renders the image with the gdimage function for the desired output
+ +
+ protected
+ renderImage() : void
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ public
+ mixed
+ MIME_TYPE
+ = 'text/html'
+
+
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ public
+ mixed
+ MIME_TYPE
+ = 'image/svg+xml'
+
+
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
public
string
CUSTOM
@@ -371,6 +371,31 @@
+
+ Tags
+
+
+
+
+
public
string
EPS
@@ -454,9 +479,34 @@
+
+ Tags
+
+
+
+
+
public
string
FPDF
@@ -482,9 +532,34 @@
+
+ Tags
+
+
+
+
+
public
string
GDIMAGE_BMP
@@ -510,9 +585,34 @@
+
+ Tags
+
+
+
+
+
public
string
GDIMAGE_GIF
@@ -538,9 +638,34 @@
+
+ Tags
+
+
+
+
+
public
string
GDIMAGE_JPG
@@ -566,9 +691,34 @@
+
+ Tags
+
+
+
+
+
public
string
GDIMAGE_PNG
@@ -594,9 +744,34 @@
+
+ Tags
+
+
+
+
+
public
string
GDIMAGE_WEBP
@@ -622,9 +797,34 @@
+
+ Tags
+
+
+
+
+
public
string
IMAGICK
@@ -650,6 +850,31 @@
+
+ Tags
+
+
+
+
+
public
string
MARKUP_HTML
@@ -733,9 +958,34 @@
+
+ Tags
+
+
+
+
+
public
string
MARKUP_SVG
@@ -761,9 +1011,34 @@
+
+ Tags
+
+
+
+
Map of built-in output modes => class FQN
-
+
public
array<string|int, string>
MODES
- = [self::MARKUP_SVG => \chillerlan\QRCode\Output\QRMarkupSVG::class, self::MARKUP_HTML => \chillerlan\QRCode\Output\QRMarkupHTML::class, self::GDIMAGE_BMP => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_GIF => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_JPG => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_PNG => \chillerlan\QRCode\Output\QRGdImage::class, self::GDIMAGE_WEBP => \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]
+ = [self::MARKUP_SVG => \chillerlan\QRCode\Output\QRMarkupSVG::class, self::MARKUP_HTML => \chillerlan\QRCode\Output\QRMarkupHTML::class, self::GDIMAGE_BMP => \chillerlan\QRCode\Output\QRGdImageBMP::class, self::GDIMAGE_GIF => \chillerlan\QRCode\Output\QRGdImageGIF::class, self::GDIMAGE_JPG => \chillerlan\QRCode\Output\QRGdImageJPEG::class, self::GDIMAGE_PNG => \chillerlan\QRCode\Output\QRGdImagePNG::class, self::GDIMAGE_WEBP => \chillerlan\QRCode\Output\QRGdImageWEBP::class, self::STRING_JSON => \chillerlan\QRCode\Output\QRStringJSON::class, self::STRING_TEXT => \chillerlan\QRCode\Output\QRStringText::class, self::IMAGICK => \chillerlan\QRCode\Output\QRImagick::class, self::FPDF => \chillerlan\QRCode\Output\QRFpdf::class, self::EPS => \chillerlan\QRCode\Output\QREps::class]
+
+ Tags
+
+
+
+
+
public
string
STRING_JSON
@@ -818,9 +1118,34 @@
+
+ Tags
+
+
+
+
+
public
string
STRING_TEXT
@@ -846,6 +1171,31 @@
+
+ Tags
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
protected
- toBase64DataURI(string $data, string $mime) : string
+ toBase64DataURI(string $data[, string $mime = null ]) : string
common output abstract
+ + + + + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'application/json'
+
+
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+
+ public
+ dump([string $file = null ]) : string
+
+ unused - required by interface
+ +
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+unused - required by interface
+ +
+ protected
+ getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+unused - required by interface
+ +
+ protected
+ prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+ common output abstract
+ + + + + + +
+ public
+ mixed
+ MIME_TYPE
+ = 'text/plain'
+
+
+
+
+
+
+
+
+ protected
+ float
+ $circleDiameter
+
+
+
+
+
+
+
+ protected
+ float
+ $circleRadius
+
+
+
+
+
+
+ protected
+ bool
+ $connectPaths
+
+
+
+
+
+
+ protected
+ bool
+ $drawCircularModules
+
+
+
+
+
+
+ protected
+ bool
+ $drawLightModules
+
+
+
+
+
+
+ protected
+ string
+ $eol
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $excludeFromConnect
+
+
+
+
+
+
+ protected
+ array<string|int, mixed>
+ $keepAsSquare
+
+
+
+
+
+ the side length of the QR image (modules * scale)
+ +
+ protected
+ int
+ $length
+
+
+
+
+
+
+the (filled) data matrix object
+ +
+ protected
+ QRMatrix
+ $matrix
+
+
+
+
+
+
+the current size of the QR matrix
+ +
+ protected
+ int
+ $moduleCount
+
+
+
+
+
+ an (optional) array of color values for the several QR matrix parts
+ +
+ protected
+ array<string|int, mixed>
+ $moduleValues
+
+
+
+
+
+
+
+ protected
+ SettingsContainerInterface|QROptions
+ $options
+
+
+
+
+
+
+
+ protected
+ int
+ $scale
+
+
+
+
+
+ QROutputAbstract constructor.
+ +
+ public
+ __construct(SettingsContainerInterface $options, QRMatrix $matrix) : mixed
+
+ a little helper to create a proper ANSI 8-bit color escape sequence
+ +
+ public
+ static ansi8(string $str, int $color[, bool $background = null ]) : string
+
+
+ public
+ dump([string $file = null ]) : string
+
+
+ public
+ static moduleValueIsValid(mixed $value) : bool
+
+ collects the modules per QRMatrix::M_* type and runs a $transform function on each module and +returns an array with the transformed modules
+ +
+ protected
+ collectModules(Closure $transform) : array<string|int, mixed>
+
+ The transform callback is called with the following parameters:
+$x - current column +$y - current row +$M_TYPE - field value +$M_TYPE_LAYER - (possibly modified) field value that acts as layer id
+Creates copies of several QROptions values to avoid calling the magic getters +in long loops for a significant performance increase.
+ +
+ protected
+ copyVars() : void
+
+ These variables are usually used in the "module" methods and are called up to 31329 times (at version 40).
+Returns a default value for either dark or light modules
+ +
+ protected
+ getDefaultModuleValue(bool $isDark) : mixed|null
+
+ return value depends on the output class
+Returns the prepared value for the given $M_TYPE
+ +
+ protected
+ getModuleValue(int $M_TYPE) : mixed
+
+ return value depends on the output class
+Returns the prepared module value at the given coordinate [$x, $y] (convenience)
+ +
+ protected
+ getModuleValueAt(int $x, int $y) : mixed|null
+
+ Returns a 2 element array with the current output width and height
+ +
+ protected
+ getOutputDimensions() : array<string|int, mixed>
+
+ The type and units of the values depend on the output class. The default value is the current module count * scale.
+Prepares the value for the given input ()
+ +
+ protected
+ prepareModuleValue(mixed $value) : mixed|null
+
+ return value depends on the output class
+Saves the qr $data to a $file. If $file is null, nothing happens.
+ +
+ protected
+ saveToFile(string $data[, string $file = null ]) : void
+
+ Sets/updates the matrix dimensions
+ +
+ protected
+ setMatrixDimensions() : void
+
+ Call this method if you modify the matrix from within your custom module in case the dimensions have been changed
+Sets the initial module values
+ +
+ protected
+ setModuleValues() : void
+
+ Returns a base64 data URI for the given string and mime type
+ +
+ protected
+ toBase64DataURI(string $data[, string $mime = null ]) : string
+
+ Toggles the usage of internal upscaling when `QROptions::$drawCircularModules` is set to `true` and +`QROptions::$scale` is less than 20
+ +
+ protected
+ bool
+ $gdImageUseUpscale
+ = true
+
+
+
+
+ Sets the flags to use for the `json_encode()` call
+ +
+ protected
+ int
+ $jsonFlags
+ = \JSON_THROW_ON_ERROR
+
+
+
+
+ The FQCN of the custom `QROutputInterface`
-
+
protected
string|null
$outputInterface
@@ -2111,6 +2233,24 @@
+
+ Tags
+
+
+
+
The built-in output type
-
+
protected
string
$outputType
@@ -2247,6 +2387,24 @@
QRString
+
+
+
+
+
@@ -2268,7 +2426,7 @@
@@ -2326,7 +2484,7 @@
@@ -2341,19 +2499,19 @@
The given value depends on the used output type:
-
-
QROutputInterface::GDIMAGE_BMP
: [0...1]
+QRGdImageBMP
: [0...1]
-
-
QROutputInterface::GDIMAGE_JPG
: [0...100]
+QRGdImageJPEG
: [0...100]
-
-
QROutputInterface::GDIMAGE_WEBP
: [0...9]
+QRGdImageWEBP
: [0...9]
-
-
QROutputInterface::GDIMAGE_PNG
: [0...100]
+QRGdImagePNG
: [0...100]
-
-
QROutputInterface::IMAGICK
: [0...100]
+QRImagick
: [0...100]
@@ -2462,7 +2620,7 @@
@@ -2496,7 +2654,7 @@
@@ -2532,7 +2690,7 @@
QROptionsTrait.php
:
- 433
+ 462
@@ -2566,7 +2724,7 @@
@@ -2629,7 +2787,7 @@
@@ -2663,7 +2821,7 @@
@@ -2699,7 +2857,7 @@
@@ -2748,7 +2906,7 @@
@@ -2797,7 +2955,7 @@
@@ -2849,7 +3007,7 @@
@@ -2883,7 +3041,7 @@
@@ -3078,7 +3236,7 @@
@@ -3124,7 +3282,7 @@
@@ -3192,7 +3350,7 @@
@@ -3259,7 +3417,7 @@
@@ -3326,7 +3484,7 @@
@@ -3393,7 +3551,7 @@
@@ -3460,7 +3618,7 @@
@@ -3502,7 +3660,7 @@
@@ -3558,7 +3716,7 @@
@@ -3632,7 +3790,7 @@
@@ -3705,7 +3863,7 @@
@@ -3778,7 +3936,7 @@
@@ -3851,7 +4009,7 @@
@@ -3893,7 +4051,7 @@
@@ -3935,7 +4093,7 @@
@@ -3977,7 +4135,7 @@
@@ -4019,7 +4177,7 @@
@@ -4092,7 +4250,7 @@
@@ -4134,7 +4292,7 @@
QROptionsTrait.php
:
- 505
+ 534
@@ -4176,7 +4334,7 @@
@@ -4218,7 +4376,7 @@
@@ -4260,7 +4418,7 @@
@@ -4302,7 +4460,7 @@
@@ -4463,6 +4621,7 @@ Parameters
- $eol
- $excludeFromConnect
- $fpdfMeasureUnit
+ - $gdImageUseUpscale
- $imageBase64
- $imageTransparencyBG
- $imageTransparent
@@ -4471,6 +4630,7 @@ Parameters
- $invertMatrix
- $jpegQuality
- $jsonAsBooleans
+ - $jsonFlags
- $keepAsSquare
- $logoSpaceHeight
- $logoSpaceStartX
diff --git a/classes/chillerlan-QRCode-QROptionsTrait.html b/classes/chillerlan-QRCode-QROptionsTrait.html
index dfced64e6..ed4e37bd2 100644
--- a/classes/chillerlan-QRCode-QROptionsTrait.html
+++ b/classes/chillerlan-QRCode-QROptionsTrait.html
@@ -244,6 +244,14 @@
- Measurement unit for `FPDF` output: `pt`, `mm`, `cm`, `in` (default: `pt`)
+ -
+ $gdImageUseUpscale
+
+ : bool
+
+- Toggles the usage of internal upscaling when `QROptions::$drawCircularModules` is set to `true` and
+`QROptions::$scale` is less than 20
+
-
$imageBase64
@@ -296,6 +304,13 @@
- Whether to return matrix values in JSON as booleans or `$M_TYPE` integers
+ -
+ $jsonFlags
+
+ : int
+
+- Sets the flags to use for the `json_encode()` call
+
-
$keepAsSquare
@@ -676,7 +691,7 @@
@@ -782,7 +797,7 @@
@@ -827,7 +842,7 @@
@@ -887,7 +902,7 @@
@@ -923,7 +938,7 @@
@@ -972,7 +987,7 @@
@@ -1006,7 +1021,7 @@
@@ -1076,7 +1091,7 @@
@@ -1190,7 +1205,7 @@
@@ -1226,7 +1241,7 @@
@@ -1260,7 +1275,7 @@
@@ -1291,6 +1306,64 @@
+
Toggles the usage of internal upscaling when `QROptions::$drawCircularModules` is set to `true` and +`QROptions::$scale` is less than 20
+ +
+ protected
+ bool
+ $gdImageUseUpscale
+ = true
+
+
+
+
+ Sets the flags to use for the `json_encode()` call
+ +
+ protected
+ int
+ $jsonFlags
+ = \JSON_THROW_ON_ERROR
+
+
+
+
+ The FQCN of the custom `QROutputInterface`
-
+
protected
string|null
$outputInterface
@@ -2090,6 +2212,24 @@
+
+ Tags
+
+
+
+
The built-in output type
-
+
protected
string
$outputType
@@ -2226,6 +2366,24 @@
QRString
+
+
+
+
+
@@ -2247,7 +2405,7 @@
@@ -2305,7 +2463,7 @@
@@ -2320,19 +2478,19 @@
The given value depends on the used output type:
-
-
QROutputInterface::GDIMAGE_BMP
: [0...1]
+QRGdImageBMP
: [0...1]
-
-
QROutputInterface::GDIMAGE_JPG
: [0...100]
+QRGdImageJPEG
: [0...100]
-
-
QROutputInterface::GDIMAGE_WEBP
: [0...9]
+QRGdImageWEBP
: [0...9]
-
-
QROutputInterface::GDIMAGE_PNG
: [0...100]
+QRGdImagePNG
: [0...100]
-
-
QROutputInterface::IMAGICK
: [0...100]
+QRImagick
: [0...100]
@@ -2441,7 +2599,7 @@
@@ -2475,7 +2633,7 @@
@@ -2511,7 +2669,7 @@
QROptionsTrait.php
:
- 433
+ 462
@@ -2545,7 +2703,7 @@
@@ -2608,7 +2766,7 @@
@@ -2642,7 +2800,7 @@
@@ -2678,7 +2836,7 @@
@@ -2727,7 +2885,7 @@
@@ -2776,7 +2934,7 @@
@@ -2828,7 +2986,7 @@
@@ -2862,7 +3020,7 @@
@@ -3057,7 +3215,7 @@
@@ -3103,7 +3261,7 @@
@@ -3171,7 +3329,7 @@
@@ -3238,7 +3396,7 @@
@@ -3305,7 +3463,7 @@
@@ -3372,7 +3530,7 @@
@@ -3439,7 +3597,7 @@
@@ -3481,7 +3639,7 @@
@@ -3537,7 +3695,7 @@
@@ -3611,7 +3769,7 @@
@@ -3684,7 +3842,7 @@
@@ -3757,7 +3915,7 @@
@@ -3830,7 +3988,7 @@
@@ -3872,7 +4030,7 @@
@@ -3914,7 +4072,7 @@
@@ -3956,7 +4114,7 @@
@@ -3998,7 +4156,7 @@
@@ -4071,7 +4229,7 @@
@@ -4113,7 +4271,7 @@
QROptionsTrait.php
:
- 505
+ 534
@@ -4155,7 +4313,7 @@
@@ -4197,7 +4355,7 @@
@@ -4239,7 +4397,7 @@
@@ -4281,7 +4439,7 @@
@@ -4441,6 +4599,7 @@ Parameters
- $eol
- $excludeFromConnect
- $fpdfMeasureUnit
+ - $gdImageUseUpscale
- $imageBase64
- $imageTransparencyBG
- $imageTransparent
@@ -4449,6 +4608,7 @@ Parameters
- $invertMatrix
- $jpegQuality
- $jsonAsBooleans
+ - $jsonFlags
- $keepAsSquare
- $logoSpaceHeight
- $logoSpaceStartX
diff --git a/classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html b/classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html
index 7fec85e1d..f300de465 100644
--- a/classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html
+++ b/classes/chillerlan-QRCodeTest-Output-QRGdImageBMPTest.html
@@ -143,7 +143,7 @@
@@ -181,7 +181,7 @@
-
- $FQN
+ $FQN
: string
@@ -224,6 +224,12 @@
: array<string|int, mixed>
+ -
+ testBase64MimeType()
+
+ : void
+
+
-
testInstance()
@@ -327,15 +333,15 @@
>
$FQN
-
+
@@ -344,7 +350,7 @@
protected
string
$FQN
-
+ = \chillerlan\QRCode\Output\QRGdImageBMP::class
@@ -467,7 +473,7 @@
+ public
+ testBase64MimeType() : void
+
+
+ public
+ testBase64MimeType() : void
+
+
+ public
+ testBase64MimeType() : void
+
+
+ public
+ testBase64MimeType() : void
+
+
+ public
+ testBase64MimeType() : void
+
+
+ public
+ testBase64MimeType() : void
+
+ Tests the QRString output module
+Test abstract for the several (built-in) output modules, +should also be used to test custom output modules
@@ -181,7 +182,7 @@
public
- abstract static moduleValueProvider() : array<string|int, mixed>
+ static moduleValueProvider() : array<string|int, mixed>
covers the module values settings
+
public
testSetModuleValues() : void
@@ -723,11 +727,12 @@ Attempts to create a directory under /.build and instances several required objects
+
protected
setUp() : void
@@ -868,7 +873,7 @@ Tests the QRString output module
+Test abstract for the several (built-in) output modules, +should also be used to test custom output modules
@@ -181,7 +182,7 @@
public
- abstract static moduleValueProvider() : array<string|int, mixed>
+ static moduleValueProvider() : array<string|int, mixed>
covers the module values settings
+
public
testSetModuleValues() : void
@@ -870,7 +873,7 @@ Tests the QRString output module
- - - - - - -
- protected
- string
- $builddir
- = __DIR__ . '/../../.build/output_test'
-
-
-
-
-
-
- protected
- string
- $FQN
- = \chillerlan\QRCode\Output\QRString::class
-
-
-
-
-
-
- protected
- QRMatrix
- $matrix
-
-
-
-
-
-
-
- protected
- QROptions|SettingsContainerInterface
- $options
-
-
-
-
-
-
-
- protected
- QROutputInterface
- $outputInterface
-
-
-
-
-
-
-
- protected
- string
- $type
-
-
-
-
-
-
-
- public
- static moduleValueProvider() : array<string|int, mixed>
-
- Validate the instance of the interface
- -
- public
- testInstance() : void
-
- coverage of the built-in output modules
- -
- public
- testRenderToCacheFile() : void
-
- Tests if an exception is thrown when trying to write a cache file to an invalid destination
- -
- public
- testSaveException() : void
-
- covers the module values settings
- -
- public
- abstract testSetModuleValues() : void
-
-
- public
- testValidateModuleValues(mixed $value, bool $expected) : void
-
- Attempts to create a directory under /.build and instances several required objects
- -
- protected
- setUp() : void
-
- Class QRGdImageBMP
+ + + +Class QRGdImageGIF
+ + + +Class QRGdImageJPEG
+ + + +Class QRGdImagePNG
+ + + +Class QRGdImageWEBP
+ + + +Class QRStringJSON
+ + + +Class QRStringTestAbstract
+Class QRStringText
src/Data/QRMatrix.php | +|||
src/Output/QRGdImage.php | |||
src/Output/QRImage.php | +|||
src/Output/QROutputInterface.php | +|||
src/Output/QRString.php | |||
src/QRCode.php | @@ -145,6 +154,22 @@264 | QRMatrix::size() | use QRMatrix::getSize() instead + |
+
Line | +Element | +Reason | +
---|---|---|
33 | +QRGdImage | +this class will be made abstract in future versions, +calling it directly is deprecated - use one of the child classes instead |
backward compatibility, use QRGdImage instead
+Line | +Element | +Reason | +
---|---|---|
25 | +QROutputInterface::MARKUP_HTML | +|
32 | +QROutputInterface::MARKUP_SVG | +|
39 | +QROutputInterface::GDIMAGE_BMP | +|
46 | +QROutputInterface::GDIMAGE_GIF | +|
53 | +QROutputInterface::GDIMAGE_JPG | +|
60 | +QROutputInterface::GDIMAGE_PNG | +|
67 | +QROutputInterface::GDIMAGE_WEBP | +|
74 | +QROutputInterface::STRING_JSON | +|
81 | +QROutputInterface::STRING_TEXT | +|
88 | +QROutputInterface::IMAGICK | +|
95 | +QROutputInterface::FPDF | +|
102 | +QROutputInterface::EPS | +|
109 | +QROutputInterface::CUSTOM | +|
118 | +QROutputInterface::MODES | +
Line | +Element | +Reason | +
---|---|---|
23 | +QRString | +this class will be removed in future versions, use one of QRStringText or QRStringJSON instead |
use QROptions::$outputBase64 instead
use QROptions::$outputBase64 instead
use QROptions::$quality instead
use QROptions::$quality instead
use QROptions::$quality instead
use QROptions::$quality instead
use QROptions::$transparencyColor instead
use QROptions::$transparencyColor instead
use QROptions::$bgColor instead
use QROptions::$bgColor instead
use QROptions::$outputInterface
instead
the nullable type will be removed in future versions
+and the default value will be set to QRMarkupSVG::class
use QROptions::$outputBase64 instead
use QROptions::$quality instead
use QROptions::$quality instead
use QROptions::$transparencyColor instead
use QROptions::$bgColor instead