Rest
Proxy class for REST purpose.
Table of Contents
Methods
- register() : int
- Adds or updates Prompt.
- unRegister() : bool
- Removes existing Prompt.
Methods
register()
Adds or updates Prompt.
public
static register(array<string|int, mixed> $data[, mixed $service = null ][, mixed $server = null ]) : int
Parameters
- $data : array<string|int, mixed>
-
Array contains fields: ['category', 'section', 'sort', 'code', 'parent_code', 'icon', 'prompt', 'translate', 'work_with_result'].
- $service : mixed = null
-
During REST executes.
- $server : mixed = null
-
During REST executes.
Return values
intunRegister()
Removes existing Prompt.
public
static unRegister(array<string|int, mixed> $data[, mixed $service = null ][, mixed $server = null ]) : bool
Parameters
- $data : array<string|int, mixed>
-
Array contains fields: ['code'].
- $service : mixed = null
-
During REST executes.
- $server : mixed = null
-
During REST executes.