Method
class Method
Helper class to define webservice methods.
Methods
Method constructor.
Adds an input parameter to the method definition.
Adds an output parameter to the method definition.
Execute Method with argument supplied by the API
No description
No description
No description
No description
No description
The name depends on the version. If a version bigger than 1 is set, the method name is suffixed with _v{$versionNumber}
No description
No description
No description
No description
Instead of a defining a separate function in the service hook,
No description
No description
No description
No description
Details
at line 46
__construct(string $name)
Method constructor.
at line 64
Method
addInputParameter(string $parameter, string $type, bool|null $required = null, string|null $description = null, mixed $defaultValue = null, ParameterObject|null $parameterObject = null)
Adds an input parameter to the method definition.
Beware: The order of the parameters matters!
at line 259
Method
addInputXQLParameterObject(ParameterObject $parameterObject = null)
No description
at line 94
Method
addOutputParameter(string $parameter, string $type, string|null $description = null, ParameterObject|null $parameterObject = null)
Adds an output parameter to the method definition.
Beware: The order of the parameters matters!
at line 178
array
execute(array $arguments = [])
Execute Method with argument supplied by the API
at line 155
callable|null
getCallback()
No description
at line 198
string|null
getDescription()
No description
at line 220
string
getHttpMethod()
No description
at line 78
array
getInputParameters()
No description
at line 254
bool|null
getIsInternal()
No description
at line 115
string
getName()
The name depends on the version. If a version bigger than 1 is set, the method name is suffixed with _v{$versionNumber}
at line 106
array
getOutputParameters()
No description
at line 228
string|null
getResource()
No description
at line 236
string|null
getResourceId()
No description
at line 138
int
getVersion()
No description
at line 166
Method
setCallback(callable|null $callback = null)
Instead of a defining a separate function in the service hook,
at line 189
Method
setDescription(string|null $description)
No description
at line 245
Method
setIsInternal(bool|null $isInternal)
No description
at line 130
Method
setName(string $name)
No description
at line 210
Method
setRestApiInfo(string $httpMethod = 'POST', string $resource = null, string $resourceId = null)
No description
at line 147
Method
setVersion(int $version)
No description