Category extends ClassConstant
Class Category
Table of Contents
Constants
- ADDITIONAL = 3
- BASE = 1
- CASES = 4
- RECENT = 100
- USER = 2
Methods
- getCode() : string|null
- Get code.
- getCodes() : array<string|int, mixed>
- Get codes.
- getId() : int|null
- Get ID.
- getList() : array<string|int, mixed>
- Get list.
- getName() : int|null
- Get caption.
- getNamedCodes() : array<string|int, mixed>
- Get named list.
- getNamedList() : array<string|int, mixed>
- Get named list.
- sortByCode() : int
- Sort by code.
Constants
ADDITIONAL
public
mixed
ADDITIONAL
= 3
BASE
public
mixed
BASE
= 1
CASES
public
mixed
CASES
= 4
RECENT
public
mixed
RECENT
= 100
USER
public
mixed
USER
= 2
Methods
getCode()
Get code.
public
static getCode(int $id) : string|null
Parameters
- $id : int
-
ID.
Return values
string|nullgetCodes()
Get codes.
public
static getCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
Get ID.
public
static getId(string $code) : int|null
Parameters
- $code : string
-
Code.
Return values
int|nullgetList()
Get list.
public
static getList() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
Get caption.
public
static getName(int $id) : int|null
Parameters
- $id : int
-
ID.
Return values
int|nullgetNamedCodes()
Get named list.
public
static getNamedCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>getNamedList()
Get named list.
public
static getNamedList() : array<string|int, mixed>
Return values
array<string|int, mixed>sortByCode()
Sort by code.
public
static sortByCode(string $codeA, string $codeB) : int
Parameters
- $codeA : string
-
Code A.
- $codeB : string
-
Code B.