|
XOOPS
2.6.0
|

Public Member Functions | |
| getDescription () | |
| getImgTag (Response $response, $qrText, $attributes=array()) | |
| getImgUrl (Response $response, $qrText) | |
| getName () | |
Public Member Functions inherited from Xoops\Core\Service\AbstractContract | |
| getDescription () | |
| getMode () | |
| getName () | |
| getPriority () | |
| setPriority ($priority) | |
Protected Attributes | |
| $renderScript = 'modules/qrcode/include/qrrender.php' | |
Protected Attributes inherited from Xoops\Core\Service\AbstractContract | |
| $priority = Manager::PRIORITY_MEDIUM | |
Private Member Functions | |
| getQRUrl ($qrText) | |
Additional Inherited Members | |
Public Attributes inherited from Xoops\Core\Service\Contract\QrcodeInterface | |
| const | MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE |
Definition at line 28 of file QrcodeProvider.php.
| QrcodeProvider::getDescription | ( | ) |
getDescription - get human readable description of the service provider
Definition at line 49 of file QrcodeProvider.php.
| QrcodeProvider::getImgTag | ( | Response | $response, |
| $qrText, | |||
$attributes = array() |
|||
| ) |
getImgTag - get a full HTML img tag to display a QR Code image of supplied text
| Response | $response | object |
| string | $qrText | text to encode in QR Code |
| array | $attributes | array of attribute name => value pairs for img tag |
Implements Xoops\Core\Service\Contract\QrcodeInterface.
Definition at line 94 of file QrcodeProvider.php.
References $url, getQRUrl(), and Xoops\Core\Service\Response\setValue().

| QrcodeProvider::getImgUrl | ( | Response | $response, |
| $qrText | |||
| ) |
getImgUrl - get URL to QR Code image of supplied text
| Response | $response | object |
| string | $qrText | text to encode in QR Code |
Implements Xoops\Core\Service\Contract\QrcodeInterface.
Definition at line 80 of file QrcodeProvider.php.
References getQRUrl(), and Xoops\Core\Service\Response\setValue().

| QrcodeProvider::getName | ( | ) |
getName - get a short name for this service provider. This should be unique within the scope of the named service, so using module dirname is suggested.
Definition at line 39 of file QrcodeProvider.php.
|
private |
getQRUrl
| string | $qrText | text for QR code |
Definition at line 62 of file QrcodeProvider.php.
References $url, $xoops, and Xoops\getInstance().
Referenced by getImgTag(), and getImgUrl().


|
protected |
Definition at line 31 of file QrcodeProvider.php.