Barcode
Create barcode
Create barcode
$imgUrl = $this->get('barcode','123456789')->getUrl();
Get url to image file:
$imgUrl = $this->get('barcode','123456789')->getUrl();
Send Image to browser:
$this->get('barcode','123456789')->outputFile();
Save image to file:
$this->get('barcode','123456789')->saveToFile($filename);
Get path to image in server:
$File = $this->get('barcode','123456789')->getFile();
Method | return | Description |
---|---|---|
setCode($string) | this | Barcode value. |
setCodebase($string) | this | Codebase to use. |
setLabel($bool) | this | Use defined font. |
Method | return | Description |
---|---|---|
getUrl() | string | Get url to barcode image. |
getFile() | string | Get path to barcode file. |
outputFile() | - | Stream file to browser. |
saveToFile($filename) | bool | Save barcode image to given filename. Return TRUE on success. |