Documentation

Code39 extends AbstractBarcode
in package
implements BarcodeInterface

CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.

Table of Contents

Interfaces

BarcodeInterface

Properties

$data  : array<string|int, mixed>

Methods

__construct()  : mixed
getChecksum()  : string
getData()  : array<string|int, mixed>
getKey()  : mixed
getType()  : string
binseqToArray()  : array<string|int, mixed>
Convert binary barcode sequence to barcode array
checksum()  : string
Calculate CODE 39 checksum (modulo 43).
encodeExt()  : string
Encode a string to be used for CODE 39 Extended mode.
init()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(string $code, float $printRatio[, bool $extended = false ][, bool $checksum = false ][, mixed $quiet_zone_left = null ][, mixed $quiet_zone_right = null ]) : mixed
Parameters
$code : string
$printRatio : float
$extended : bool = false
$checksum : bool = false
$quiet_zone_left : mixed = null
$quiet_zone_right : mixed = null

getData()

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getKey()

public getKey(string $key) : mixed
Parameters
$key : string

getType()

public getType() : string
Tags
inheritdoc
Return values
string

binseqToArray()

Convert binary barcode sequence to barcode array

protected binseqToArray(string $seq, array<string|int, mixed> $barcodeData) : array<string|int, mixed>
Parameters
$seq : string
$barcodeData : array<string|int, mixed>
Return values
array<string|int, mixed>

checksum()

Calculate CODE 39 checksum (modulo 43).

protected checksum(string $code) : string
Parameters
$code : string
Return values
string

mixed

encodeExt()

Encode a string to be used for CODE 39 Extended mode.

protected encodeExt(string $code) : string
Parameters
$code : string
Return values
string

init()

private init(string $code, float $printRatio, bool $extended, bool $checksum) : array<string|int, mixed>
Parameters
$code : string
$printRatio : float
$extended : bool
$checksum : bool
Return values
array<string|int, mixed>

        
On this page

Search results