Externalizer
FinalYes
Table of Contents
Methods
- __construct() : mixed
- Constructor of Externalizer.
- getExternalData() : array<string|int, mixed>
- Returns data to show in response by REST. If $data contains objects we run converting.
Methods
__construct()
Constructor of Externalizer.
public
__construct(Base $service, CRestServer $restServer) : mixed
Parameters
- $service : Base
-
Service which provides methods for REST.
- $restServer : CRestServer
-
REST server object.
getExternalData()
Returns data to show in response by REST. If $data contains objects we run converting.
public
getExternalData(mixed $data) : array<string|int, mixed>
Parameters
- $data : mixed
-
Data to show in response by REST.
Tags
Return values
array<string|int, mixed> —Result.