Steps

Steps methods for Datamatrix Barcode type class

Namespace: Com\Tecnick\Barcode\Type\Square\Datamatrix

Extends: Modes

Abstract: Yes

File: Steps.php line 34

Steps methods for Datamatrix Barcode type class

Tags

Properties

$gsonemode

File: Modes.php line 74

public bool $gsonemode = false

$last_enc

File: Modes.php line 57

public int $last_enc = 0

$shape

File: Modes.php line 62

public string $shape

$size

File: Modes.php line 69

public string $size = ''

Methods

get253StateCodeword()

File: Modes.php line 93

public get253StateCodeword(int $cdwpad, int $cdwpos) : int

Parameters

  • $cdwpad : int: Pad codeword.
  • $cdwpos : int: Number of data codewords from the beginning of encoded data.

Return values

int

getPlacementMap()

File: Placement.php line 289

public getPlacementMap(int $nrow, int $ncol) : array<int, int>

(Annex F - ECC 200 symbol character placement)

Parameters

  • $nrow : int: Number of rows.
  • $ncol : int: Number of columns.

Return values

array<int, int>

getSwitchEncodingCodeword()

File: Modes.php line 263

public getSwitchEncodingCodeword(int $mode) : int

Parameters

  • $mode : int: New encoding mode.

Return values

int —

Switch codeword.

isGsOneChar()

File: Modes.php line 82

public isGsOneChar(int $chr) : bool

Only meaningful when the GS1 variant is selected.

Parameters

  • $chr : int: Character (byte) to check.

Return values

bool

lookAheadTest()

File: Steps.php line 45

public lookAheadTest(string $data, int $pos, int $mode) : int

Parameters

  • $data : string: Data to encode
  • $pos : int: Current position
  • $mode : int: Current encoding mode

Return values

int —

encoding mode