AnswerTypes
Table of Contents
Constants
Methods
- getFullList() : array<string|int, mixed>
- Gets types list
- getTitleById() : string
- Returns type title.
- getTitledList() : array<string|int, mixed>
- Returns array of types
Constants
CHECKBOX
public
mixed
CHECKBOX
= 1
DROPDOWN
public
mixed
DROPDOWN
= 2
MULTISELECT
public
mixed
MULTISELECT
= 3
RADIO
public
mixed
RADIO
= 0
TEXT
public
mixed
TEXT
= 4
TEXTAREA
public
mixed
TEXTAREA
= 5
Methods
getFullList()
Gets types list
public
static getFullList() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitleById()
Returns type title.
public
static getTitleById(int|string $id) : string
Parameters
- $id : int|string
-
Field type like (0 - radio).
Return values
stringgetTitledList()
Returns array of types
public
static getTitledList() : array<string|int, mixed>