class JsonPage extends Page

Properties

WebserviceController $mod
protected $default_page from  Page

Methods

ModuleService|null
getModuleServiceHook(string $moduleName, string $methodName)

No description

string
get_json_error(string $message, int $code = -32603, array $data = [], bool $isRestStyle = false)

JSON-RPC Error

xelos_global_template|string|bool
get_page(string|null $instance = null)

No description

string
handleFileUploadToSystemDMS()

Small endpoint wrapper to call the upload service

string
invokeServiceMethod(string|Service $instance_id, string $method_name, array $parameters, int $groupContext = null)

No description

page_json_docs(?string $instance = null)

JSON Documentation based on SOAP Services

Details

at line 213
protected ModuleService|null getModuleServiceHook(string $moduleName, string $methodName)

No description

Parameters

string $moduleName
string $methodName

Return Value

ModuleService|null

at line 180
protected string get_json_error(string $message, int $code = -32603, array $data = [], bool $isRestStyle = false)

JSON-RPC Error

Parameters

string $message

A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.

int $code

A Number that indicates the error type that occurred. This MUST be an integer.

array $data

A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).

bool $isRestStyle

Used in RestPage to differentiate REST-style error messages from JSON RPC messages

Return Value

string

JSON Format

at line 51
xelos_global_template|string|bool get_page(string|null $instance = null)

No description

Parameters

string|null $instance

Return Value

xelos_global_template|string|bool

Exceptions

ReflectionException
ContentException

at line 493
string handleFileUploadToSystemDMS()

Small endpoint wrapper to call the upload service

Return Value

string

at line 243
protected string invokeServiceMethod(string|Service $instance_id, string $method_name, array $parameters, int $groupContext = null)

No description

Parameters

string|Service $instance_id
string $method_name

Function name containing module name, hook name and method name

array $parameters
int $groupContext

Local Group ID

Return Value

string

An empty string, since the output is already written to the stdout

Exceptions

ReflectionException
Exception

at line 345
Template page_json_docs(?string $instance = null)

JSON Documentation based on SOAP Services

Parameters

?string $instance

Return Value

Template