Qrcode
Create qrcode
Create qrcode
$qrUrl = $this->get('qrcode','http://www.ekansio.fi')->getUrl();
Get url to image:
$qrUrl = $this->get('qrcode','http://www.ekansio.fi')->getUrl();
Get HTML IMG tag to image:
$qrHtmlImage = $this->get('qrcode','http://www.ekansio.fi')->getImage();
Send Image to browser:
$this->get('qrcode','http://www.ekansio.fi')->outputFile();
Save image to file:
$this->get('qrcode','http://www.ekansio.fi')->saveToFile($filename);
Get path to image in server:
$File = $this->get('qrcode','http://www.ekansio.fi')->getFile();
Method | return | Description |
---|---|---|
setCode($string) | this | QR code value. |
setWidth($int) | this | Set width. |
setHeight($int) | this | Set height. |
Method | return | Description |
---|---|---|
getUrl() | string | Get url to image. |
getImage() | string | Get HTML IMG tag to image. |
getFile() | string | Get path to file. |
outputFile() | - | Send file to browser. |
saveToFile($filename) | bool | Save image to file by given filename. Return TRUE on success. |