\QrGeneratorExtension
Class QrGeneratorExtension
Synopsis
class QrGeneratorExtension
extends DataExtension
{
- // methods
- public void updateCMSFields()
- public string getQRCodeBase64()
- public string generateQRCode()
- private string getQrCodeName()
- private mixed getQrCodeContent()
- public String getQRCodeURL()
Hierarchy
Extends
- DataExtension
Tasks
Line | Task |
---|---|
53+ | : make output format configurable |
53+ | : make size configurable (by DataObject) |
82+ | : use classname etc... |
110+ | : check if owner has a method to provide content. This might be useful for other types of codes, e.g. for contact data, calendar data etc... |
Methods
private
- getQrCodeContent() — Uses absolute link as default.
- getQrCodeName() — Helper method to generate the filename for the current QR-Code
public
- generateQRCode() — Very simple proof of concept for now.
- getQRCodeBase64() — for inline images
- getQRCodeURL() — URL for using in <img alt="Scan me" src="$QRCodeURL" />
- updateCMSFields()