CustomType
Table of Contents
Constants
- MAX_ITEM_COUNT = 50
Methods
- add() : int
- Add new entry.
- delete() : void
- Delete entry by ID.
- eraseUserFields() : void
- Remove all user fields those are belong to specified activity type entry.
- exists() : bool
- Check if entry already exists.
- get() : array<string|int, mixed>|null
- Retrieve entry by ID.
- getAll() : array<string|int, mixed>
- Get all entries
- getCount() : int
- Get total quantity
- getFieldsInfo() : array<string|int, mixed>
- Get metadata fields.
- getJavaScriptInfos() : array<string|int, mixed>
- Prepare JavaScript infos
- getList() : Result
- Get entry list
- getUserFieldTypes() : mixed
- hasDependencies() : bool
- Check if exist activities are bound to spacified type ID.
- prepareUserFieldEntityID() : string
- Prepare User field entity ID.
- update() : void
- Update entry fields.
Constants
MAX_ITEM_COUNT
public
mixed
MAX_ITEM_COUNT
= 50
Methods
add()
Add new entry.
public
static add(array<string|int, mixed> $fields) : int
Parameters
- $fields : array<string|int, mixed>
-
Fields.
Tags
Return values
intdelete()
Delete entry by ID.
public
static delete(int $ID) : void
Parameters
- $ID : int
-
Entry ID.
Tags
eraseUserFields()
Remove all user fields those are belong to specified activity type entry.
public
static eraseUserFields(int $ID) : void
Parameters
- $ID : int
-
Actiity type entry ID (must be greater than 0).
exists()
Check if entry already exists.
public
static exists(int $ID) : bool
Parameters
- $ID : int
-
Entry ID.
Tags
Return values
boolget()
Retrieve entry by ID.
public
static get(int $ID) : array<string|int, mixed>|null
Parameters
- $ID : int
-
Entry ID.
Return values
array<string|int, mixed>|nullgetAll()
Get all entries
public
static getAll([array<string|int, mixed> $sort = null ]) : array<string|int, mixed>
Parameters
- $sort : array<string|int, mixed> = null
-
Sorting params.
Tags
Return values
array<string|int, mixed>getCount()
Get total quantity
public
static getCount() : int
Return values
intgetFieldsInfo()
Get metadata fields.
public
static getFieldsInfo() : array<string|int, mixed>
Return values
array<string|int, mixed>getJavaScriptInfos()
Prepare JavaScript infos
public
static getJavaScriptInfos([array<string|int, mixed> $IDs = null ][, mixed $encode = false ]) : array<string|int, mixed>
Parameters
- $IDs : array<string|int, mixed> = null
-
Entry IDs to add.
- $encode : mixed = false
Return values
array<string|int, mixed>getList()
Get entry list
public
static getList(array<string|int, mixed> $params) : Result
Parameters
- $params : array<string|int, mixed>
-
List params.
Tags
Return values
ResultgetUserFieldTypes()
public
static getUserFieldTypes() : mixed
hasDependencies()
Check if exist activities are bound to spacified type ID.
public
static hasDependencies(int $ID) : bool
Parameters
- $ID : int
-
Entry ID.
Return values
boolprepareUserFieldEntityID()
Prepare User field entity ID.
public
static prepareUserFieldEntityID(int $ID) : string
Parameters
- $ID : int
-
Entry ID.
Return values
stringupdate()
Update entry fields.
public
static update(int $ID, array<string|int, mixed> $fields) : void
Parameters
- $ID : int
-
Entry ID.
- $fields : array<string|int, mixed>
-
Entry fields.