Overview

Namespaces

  • emberlabs
    • Barcode
  • None

Classes

  • BarcodeBase
  • Code128
  • Code39
  • Ean13
  • Ean8
  • Overview
  • Namespace
  • Class

Class BarcodeBase

emberlabs Barcode Creator - Barcode Base Abstract Base

Direct known subclasses

emberlabs\Barcode\Code128, emberlabs\Barcode\Code39, emberlabs\Barcode\Ean13, emberlabs\Barcode\Ean8
Abstract
Namespace: emberlabs\Barcode
License: The MIT License
Link: https://github.com/samt/barcode
Located at views/barcodes/BarcodeBase.php
Methods summary
abstract public
# setData( $data )
public
# getData( )
public boolean
# validate( $barcode )

Validate the given barcode.

Validate the given barcode.

Parameters

$barcode
barcode to validate

Returns

boolean
true if it complies with the barcode formatting
public mixed
# generate( $number )

Generate a barcode for this implementation using the given seed. Default implementation returns just the seed

Generate a barcode for this implementation using the given seed. Default implementation returns just the seed

Parameters

$number
seed to generate a barcode for

Returns

mixed
The generated barcode
abstract public
# draw( )
public
# setDimensions( $x, $y )
public
# setQuality( $q )
public
# enableHumanText( $enable = true )
public
# output( $type = 'png' )
public
# save( $filename )
public
# base64( )
Properties summary
protected $img
# null
protected string $data
# ''
protected integer $x
# 0
protected integer $y
# 0
protected boolean $humanText
# true
protected integer $jpgQuality
# 85
API documentation generated by ApiGen