\App\ConfigModule\ModelsSchedulerManager

Scheduler configuration manager

Summary

Methods
Properties
Constants
__construct()
delete()
getTaskFiles()
getMessagings()
getServices()
list()
getRequest()
fixHwpid()
load()
loadType()
save()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\App\ConfigModule\Models\MainManager  mainManager, \App\ConfigModule\Models\GenericManager  genericManager, \App\ConfigModule\Models\TaskTimeManager  timeManager, \App\ConfigModule\Models\ServiceManager  serviceManager) : 

Constructor

Parameters

\App\ConfigModule\Models\MainManager mainManager

Main configuration manager

\App\ConfigModule\Models\GenericManager genericManager

Generic configuration manager

\App\ConfigModule\Models\TaskTimeManager timeManager

Scheduler's task time specification manager

\App\ConfigModule\Models\ServiceManager serviceManager

IQRF Gateway Daemon's service manager

Returns

delete()

delete(  id) : 

Deletes a task

Parameters

id

Task ID

Throws

\App\ConfigModule\Models\JsonException

Returns

getTaskFiles()

getTaskFiles() : string||string|int

Gets task's files

Throws

\App\ConfigModule\Models\JsonException

Returns

string||string|int —

Files with tasks

getMessagings()

getMessagings() : string[]||string|int

Gets available messagings

Throws

\App\ConfigModule\Models\JsonException

Returns

string[]||string|int —

Available messagings

getServices()

getServices() : string||string|int

Gets scheduler's services

Throws

\App\ConfigModule\Models\JsonException

Returns

string||string|int —

Scheduler's services

list()

list() : mixed||string|int

Gets tasks

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Tasks

getRequest()

getRequest(mixed||string|int  data) : 

Gets DPA request from JSON

Parameters

mixed||string|int data

JSON

Returns

DPA request

fixHwpid()

fixHwpid(int|null  hwpId = null) : 

Fixes the HWPID format

Parameters

int|null hwpId

HWPID to fix

Returns

Fixed HWPID

load()

load(  id) : mixed||string|int

Loads the task's configuration

Parameters

id

Task ID

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Array for the form

loadType()

loadType(  type) : array|null

Loads the task's configuration from the task's message type

Parameters

type

Task's message type

Throws

\App\ConfigModule\Models\JsonException

Returns

array|null —

Array for the form

save()

save(mixed||string|int  config) : 

Saves the task's configuration

Parameters

mixed||string|int config

Task's configuration

Throws

\App\ConfigModule\Models\JsonException

Returns