Quittio 0.3 API

UnitCode : string
in package
uses HasLabel

Unit of measure (BT-130, BT-150), UN/ECE Recommendation 20 and 21. Further codes can be used as RawCode.

Table of Contents

Cases

Box  = 'XBX'
Centimetre  = 'CMT'
CubicMetre  = 'MTQ'
Day  = 'DAY'
Dozen  = 'DZN'
Gram  = 'GRM'
Hour  = 'HUR'
Kilogram  = 'KGM'
Kilometre  = 'KMT'
Kilowatt  = 'KWT'
KilowattHour  = 'KWH'
Litre  = 'LTR'
LumpSum  = 'LS'
Metre  = 'MTR'
Millilitre  = 'MLT'
Millimetre  = 'MMT'
Minute  = 'MIN'
Month  = 'MON'
Package  = 'XPK'
Pair  = 'PR'
Pallet  = 'XPX'
Percent  = 'P1'
Piece  = 'H87'
Quarter  = 'QAN'
Second  = 'SEC'
ServiceUnit  = 'E48'
Set  = 'SET'
SquareMetre  = 'MTK'
Tonne  = 'TNE'
Unit  = 'C62'
Week  = 'WEE'
Year  = 'ANN'

Methods

isValidCode()  : bool
Whether a raw code value is valid according to the official code list.
labelGroup()  : string

Cases

Methods

isValidCode()

Whether a raw code value is valid according to the official code list.

public static isValidCode(string $code) : bool
Parameters
$code : string
Return values
bool

labelGroup()

public static labelGroup() : string
Return values
string
On this page

Search results