Rights extends Base
FinalYes
Table of Contents
Constants
- ERROR_REQUIRED_PARAMETER = 'DISK_BASE_SERVICE_22001'
Methods
- __construct() : mixed
- Base constructor.
- className() : string
- getErrorByCode() : array<string|int, Error>
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getErrorsByCode() : array<string|int, Error>
- Getting array of errors with the necessary code.
- processMethodRequest() : mixed
- Executes method.
Constants
ERROR_REQUIRED_PARAMETER
public
mixed
ERROR_REQUIRED_PARAMETER
= 'DISK_BASE_SERVICE_22001'
Methods
__construct()
Base constructor.
public
__construct(string $methodName, array<string|int, mixed> $params, string $start, CRestServer $restServer) : mixed
Parameters
- $methodName : string
-
Method name which invokes REST.
- $params : array<string|int, mixed>
-
Input params.
- $start : string
-
Start position for listing items.
- $restServer : CRestServer
className()
public
static className() : string
Return values
string —the fully qualified name of this class.
getErrorByCode()
Getting once error with the necessary code.
public
getErrorByCode(string $code) : array<string|int, Error>
Parameters
- $code : string
-
Code of error.
Return values
array<string|int, Error>getErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getErrorsByCode()
Getting array of errors with the necessary code.
public
getErrorsByCode(string $code) : array<string|int, Error>
Parameters
- $code : string
-
Code of error.
Return values
array<string|int, Error>processMethodRequest()
Executes method.
public
processMethodRequest() : mixed