class ApiService extends Service

Class ApiService

Properties

SystemTasksController $mod
array $_hook_info

Hook Information "id" => "4914" "instance_id" => "api_microsoft" "name" => "oauth_client" "hook" => "webservice.oauth_client" "type" => "object" "registry_name" => "oauth_client" "function_name" => "" "internal" => "no" "dep_mode" => "local" "active" => "yes" "title" => "Basic functions" "description" => "" "options" => ""

from  BaseHook

Methods

mixed
__call(string $name, array $arguments)

Checks if a callback is defined on the Method and calls it.

from  Service
array
createColumn(array $columns)

Create columns for list

array
createTask(array $tasks)

Create task

string
getHookDescription()

No description

from  BaseHook
string
getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

from  BaseHook
array
getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

from  BaseHook
string
getHookInstance()

No description

from  BaseHook
string
getHookName()

No description

from  BaseHook
string
getHookTitle()

No description

from  BaseHook
callable|null
getMethodCallback(string $name)

Returns the callback of a method if it is defined.

from  Service
getObject()

No description

from  BaseHook
get_service_description()

Returns the registered webservice methods.

from  Service
init()

Initialization after construction with access to $this->mod

from  Service
bool
isAvailable()

Returns true if this hook is available otherwise false.

from  Service
array
setupMethods()

No description

array
syncChanged(array $changedList)

Sync task and column changes -- more added later

Details

in Service at line 124
mixed __call(string $name, array $arguments)

Checks if a callback is defined on the Method and calls it.

Parameters

string $name
array $arguments

Return Value

mixed

Exceptions

RuntimeException

Thrown if the method is not defined.

See also

Method::setCallback

at line 202
array createColumn(array $columns)

Create columns for list

Parameters

array $columns

Return Value

array

at line 166
array createTask(array $tasks)

Create task

Parameters

array $tasks

Return Value

array

in BaseHook at line 76
string getHookDescription()

No description

Return Value

string

in BaseHook at line 55
string getHookIdentifier()

Get Hook identifier consists of instance_id puncto separator and hook name Ex. instance_id.name

Return Value

string

in BaseHook at line 45
array getHookInfoValue(bool $key = false)

Return Hook information (ID, InstanceID, Name, Hook Type, Object Type, ...)

Parameters

bool $key

Return Value

array

in BaseHook at line 69
string getHookInstance()

No description

Return Value

string

in BaseHook at line 62
string getHookName()

No description

Return Value

string

in BaseHook at line 83
string getHookTitle()

No description

Return Value

string

in Service at line 140
callable|null getMethodCallback(string $name)

Returns the callback of a method if it is defined.

Parameters

string $name

Method name

Return Value

callable|null

in BaseHook at line 88
getObject()

No description

in Service at line 168
get_service_description()

Returns the registered webservice methods.

See also

setupMethods Please use setupMethods to define and return your webservice methods.

Examples

[
'hello' => [
'input' => ['name' => 'string],
'output' => ['greeting' => 'string],
]

in Service at line 153
init()

Initialization after construction with access to $this->mod

in Service at line 185
bool isAvailable()

Returns true if this hook is available otherwise false.

Return Value

bool

at line 31
array setupMethods()

No description

Return Value

array

at line 264
array syncChanged(array $changedList)

Sync task and column changes -- more added later

Parameters

array $changedList

= [task{ 'id' => 1, 'title' => 'placeholder', 'list_id' => 2, 'type' => 'open|closed', 'sort' => 5, //sort within column 'list_column_index' => 3, 'updated_at' => 1606246325, 'created_at' => 1606246325, 'model' => 'task', 'frontend_id' => 3, 'frontend_updated_at' => 1606246325, 'frontend_created_at' => 1606246325 }, column{ 'id' => 1 'title' => 'placeholder', 'list_id' => 2, 'sort' => 1 'updated_at' => 1606246325, 'created_at' => 1606246325, 'model' => 'column' 'frontend_id' => 3, 'frontend_updated_at' => 1606246325, 'frontend_created_at' => 1606246325 }]

Return Value

array