LabelFormatType
extends Enum
in package
LabelFormatType enumeration class defines the format that the returned label should have.
Tags
Table of Contents
- PDF_100_X_70_MM = 'pdf_100x70mm'
- PDF_103_X_199_MM = 'pdf_103x199mm'
- PDF_A5 = 'pdf_a5'
- PDF_A6 = 'pdf_a6'
- PDF_A7 = 'pdf_a7'
- ZPL_2_100_X_70_MM_203_DPI = 'zpl2_100x70mm_203dpi'
- ZPL_2_103_X_199_MM_203_DPI = 'zpl2_103x199mm_203dpi'
- ZPL_2_4_X_6_IN_203_DPI = 'zpl2_4x6in_203dpi'
- ZPL_2_4_X_6_IN_300_DPI = 'zpl2_4x6in_300dpi'
- $constCacheArray : mixed
- get_class_name() : string
- Returns the name of the current instance.
- get_name_by_value() : mixed
- is_valid_value() : bool
- Validates a given $enum_value against a given $enum_type.
- to_string() : string
- For a given $enum_type, give the complete string representation for the given $enum_value (class::const)
- __construct() : void
- Due to singleton pattern make sure there are never any instances created.
Constants
PDF_100_X_70_MM
public
mixed
PDF_100_X_70_MM
= 'pdf_100x70mm'
PDF_103_X_199_MM
public
mixed
PDF_103_X_199_MM
= 'pdf_103x199mm'
PDF_A5
public
mixed
PDF_A5
= 'pdf_a5'
PDF_A6
public
mixed
PDF_A6
= 'pdf_a6'
PDF_A7
public
mixed
PDF_A7
= 'pdf_a7'
ZPL_2_100_X_70_MM_203_DPI
public
mixed
ZPL_2_100_X_70_MM_203_DPI
= 'zpl2_100x70mm_203dpi'
ZPL_2_103_X_199_MM_203_DPI
public
mixed
ZPL_2_103_X_199_MM_203_DPI
= 'zpl2_103x199mm_203dpi'
ZPL_2_4_X_6_IN_203_DPI
public
mixed
ZPL_2_4_X_6_IN_203_DPI
= 'zpl2_4x6in_203dpi'
ZPL_2_4_X_6_IN_300_DPI
public
mixed
ZPL_2_4_X_6_IN_300_DPI
= 'zpl2_4x6in_300dpi'
Properties
$constCacheArray
private
static mixed
$constCacheArray
= NULL
Methods
get_class_name()
Returns the name of the current instance.
public
static get_class_name() : string
Return values
string —get_name_by_value()
public
static get_name_by_value(mixed $enum_type, mixed $enum_value) : mixed
Parameters
- $enum_type : mixed
- $enum_value : mixed
Return values
mixed —is_valid_value()
Validates a given $enum_value against a given $enum_type.
public
static is_valid_value(string $enum_type, string $enum_value) : bool
Parameters
- $enum_type : string
- $enum_value : string
Return values
bool —to_string()
For a given $enum_type, give the complete string representation for the given $enum_value (class::const)
public
static to_string(string $enum_type, string $enum_value) : string
Parameters
- $enum_type : string
- $enum_value : string
Return values
string —__construct()
Due to singleton pattern make sure there are never any instances created.
private
final __construct() : void
