SpecRs

Symbol specification and frame methods for QrCode Barcode type class

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

Abstract: Yes

File: SpecRs.php line 36

Symbol specification and frame methods for QrCode Barcode type class

Tags

Methods

createFrame()

File: SpecRs.php line 221

public createFrame(int $version) : array<int, string>

Parameters

  • $version : int: Version

Tags

  • SuppressWarnings: (“PHPMD.ExcessiveMethodLength”)

Return values

array<int, string> —

of unsigned char.

getVersionPattern()

File: SpecRs.php line 372

public getVersionPattern(int $version) : int

Use lower 18 bits.

Parameters

  • $version : int: Version

Return values

int

putAlignmentMarker()

File: SpecRs.php line 321

public putAlignmentMarker(array<int, string> $frame, int $pox, int $poy) : array<int, string>

Parameters

  • $frame : array<int, string>: Frame
  • $pox : int: X center coordinate of the pattern
  • $poy : int: Y center coordinate of the pattern

Return values

array<int, string> —

frame

putAlignmentPattern()

File: SpecRs.php line 390

public putAlignmentPattern(int $version, array<int, string> $frame, int $width) : array<int, string>

Parameters

  • $version : int: Version
  • $frame : array<int, string>: Frame
  • $width : int: Width

Return values

array<int, string> —

frame

putFinderPattern()

File: SpecRs.php line 348

public putFinderPattern(array<int, string> $frame, int $pox, int $poy) : array<int, string>

Parameters

  • $frame : array<int, string>: Frame
  • $pox : int: X center coordinate of the pattern
  • $poy : int: Y center coordinate of the pattern

Return values

array<int, string> —

frame

qrstrset()

File: SpecRs.php line 299

public qrstrset(array<int, string> $srctab, int $xpos, int $ypos, string $repl[, int|null $replLen = null ]) : array<int, string>

Parameters

  • $srctab : array<int, string>: Source table
  • $xpos : int: X position
  • $ypos : int: Y position
  • $repl : string: Value to replace
  • $replLen : int|null = null: Length of the repl string

Return values

array<int, string> —

srctab

rsBlockNum()

File: SpecRs.php line 108

public rsBlockNum(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsBlockNum1()

File: SpecRs.php line 120

public rsBlockNum1(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsBlockNum2()

File: SpecRs.php line 156

public rsBlockNum2(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsDataCodes1()

File: SpecRs.php line 132

public rsDataCodes1(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsDataCodes2()

File: SpecRs.php line 168

public rsDataCodes2(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsDataLength()

File: SpecRs.php line 192

public rsDataLength(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsEccCodes1()

File: SpecRs.php line 144

public rsEccCodes1(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsEccCodes2()

File: SpecRs.php line 180

public rsEccCodes2(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value

rsEccLength()

File: SpecRs.php line 207

public rsEccLength(array<int, int> $spec) : int

Parameters

  • $spec : array<int, int>: Spec

Return values

int —

value