\DateTimeRpcService
Simple Date Time RPC Service
Synopsis
class DateTimeRpcService
extends BaseJsonRpcServer
{
- // Inherited constants from BaseJsonRpcServer
- const ParseError = 32700;
- // Inherited members from BaseJsonRpcServer
- protected array $instances;
- protected object|array $request;
- protected array $calls;
- protected array $response;
- protected bool $hasCalls;
- protected array $hiddenMethods;
- public string $ContentType;
- public bool $IsXDR;
- public integer $MaxBatchCalls;
- protected array $errorMessages;
- // methods
- public string GetTime()
- public array GetTimeZones()
- public string GetRelativeTime()
- public string Implode()
- // Inherited methods from BaseJsonRpcServer
- public void __construct()
- public $this RegisterInstance()
- public void Execute()
Hierarchy
Extends
Constants
Name | Value |
---|---|
ParseError | 32700 |
Members
protected
- $calls
—
array
Array of Received Calls - $errorMessages
—
array
Error Messages - $hasCalls
—
bool
Has Calls Flag (not notifications) - $instances
—
array
Exposed Instances - $request
—
object|array
Decoded Json Request - $response
—
array
Array of Responses for Calls
public
- $ContentType
—
string
Content Type - $IsXDR
—
bool
Allow Cross-Domain Requests - $MaxBatchCalls
—
int
Max Batch Calls
Methods
public
- GetRelativeTime() — Get Relative time
- GetTime() — Get Current Time
- GetTimeZones() — Returns associative array containing dst, offset and the timezone name
- Implode() — Implode Function
Inherited from BaseJsonRpcServer
public
- Execute() — Handle Requests
- RegisterInstance() — Register Instance