Table of contents
Namespace: Com\Tecnick\Barcode\Type\Square\Datamatrix
Extends: Placement
Abstract: Yes
File: Modes.php line 34
Modes for Datamatrix Barcode type class
Tags
- since: 2015-02-21
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2010-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-barcode
Properties
$gsonemode
File: Modes.php line 67
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
Methods
get253StateCodeword()
File: Modes.php line 86
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 284
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 247
public getSwitchEncodingCodeword(int $mode) : int
Parameters
- $mode : int: New encoding mode.
Return values
int —
Switch codeword.
isGsOneChar()
File: Modes.php line 75
public isGsOneChar(int $chr) : bool
Only meaningful when the GS1 variant is selected.
Parameters
- $chr : int: Character (byte) to check.
Return values
bool