| 1 | <?php |
||
| 19 | class QrCodeAction extends Action |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string the text to render if there are no parameter. Defaults to null, which means the component should |
||
| 23 | * render the text given as a parameter. |
||
| 24 | */ |
||
| 25 | public $text; |
||
| 26 | /** |
||
| 27 | * @var string the parameter |
||
| 28 | */ |
||
| 29 | public $param = 'text'; |
||
| 30 | /** |
||
| 31 | * @var string whether the URL parameter is passed via GET or POST. Defaults to 'get'. |
||
| 32 | */ |
||
| 33 | public $method = 'get'; |
||
| 34 | /** |
||
| 35 | * @var string the qr component name configured on the Yii2 app. The component should have configured all the |
||
| 36 | * possible options like adding a logo, styling, labelling, etc. |
||
| 37 | */ |
||
| 38 | public $component = 'qr'; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Runs the action. |
||
| 42 | */ |
||
| 43 | public function run() |
||
| 56 | } |
||
| 57 |