Files
php-qrcode/docs/API-QROutputInterface.md
T
2023-07-13 23:15:16 +02:00

32 lines
2.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# QROutputInterface
The full phpDocumentor API documentation can be found at [chillerlan.github.io/php-qrcode](https://chillerlan.github.io/php-qrcode/classes/chillerlan-QRCode-Output-QROutputInterface.html).
## Methods
<!-- using non-breaking spaces chr(255) in the longest method signature to force the silly table to stretch -->
| method | return | description |
|---------------------------------------|---------|---------------------------------------------------------------------|
| (static) `moduleValueIsValid($value)` | `bool` | Determines whether the given value is valid |
| `dump(string $file = null)` | `mixed` | Generates the output, optionally dumps it to a file, and returns it |
## Constants
| name | description |
|-------------------------|----------------------------------------------------|
| `MARKUP_HTML` | |
| `MARKUP_SVG` | |
| `GDIMAGE_PNG` | |
| `GDIMAGE_JPG` | |
| `GDIMAGE_GIF` | |
| `STRING_JSON` | |
| `STRING_TEXT` | |
| `IMAGICK` | |
| `FPDF` | |
| `EPS` | |
| `CUSTOM` | |
| `MODES` | Map of built-in output modes => class FQN |
| `DEFAULT_MODULE_VALUES` | Map of module type => default value |
| `LAYERNAMES` | Map of module type => readable name (for CSS etc.) |