Skip to content

pa-de-solminihac/clementine-framework-module-barcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clementine Framework : module Barcode

Wrap tc-lib-barcode library in a Clementine helper, in a way that enables you to override it easyly.

Usage

// generate a QRCODE through a resizable SVG with "qrcode" CSS class
echo $this->getHelper('barcode')
          ->getBarcodeObj('QRCODE', 'hello world');
          ->getResizableSvgCode('class="qrcode"');

Overriding

// inject class="foo" in the SVG tag
public function getSvgCode()
{
    return str_replace('<svg ', '<svg class="foo" ', parent::getSvgCode());
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages