\App\ConfigModule\ModelsSchedulerManager

Scheduler configuration manager

Summary

Methods
Properties
Constants
__construct()
add()
delete()
getLastId()
getMessagings()
getServices()
list()
getRequest()
fixHwpid()
load()
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) : 

Constructor

Parameters

\App\ConfigModule\Models\MainManager mainManager

Main configuration manager

\App\ConfigModule\Models\GenericManager genericManager

Generic configuration manager

Returns

add()

add(  type) : 

Add task

Parameters

type

Task type

Throws

\App\ConfigModule\Models\JsonException

Returns

delete()

delete(  id) : 

Delete task

Parameters

id

Task ID

Throws

\App\ConfigModule\Models\JsonException

Returns

getLastId()

getLastId() : 

Get last ID

Throws

\App\ConfigModule\Models\JsonException

Returns

Last ID in array

getMessagings()

getMessagings() : mixed||string|int

Get available messagings

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Available messagings

getServices()

getServices() : mixed||string|int

Get scheduler's services

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Scheduler's services

list()

list() : mixed||string|int

Get tasks in Scheduler

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Tasks

getRequest()

getRequest(mixed||string|int  data) : 

Get DPA request from JSON

Parameters

mixed||string|int data

JSON

Returns

DPA request

fixHwpid()

fixHwpid(int|null  hwpId = null) : 

Fix HWPID format

Parameters

int|null hwpId

HWPID to fix

Returns

Fixed HWPID

load()

load(  id) : mixed||string|int

Convert Task JSON array to Task configuration form array

Parameters

id

Task ID

Throws

\App\ConfigModule\Models\JsonException

Returns

mixed||string|int —

Array for form

save()

save(mixed||string|int  array,   id) : 

Save scheduler setting

Parameters

mixed||string|int array

Scheduler settings

id

Task ID

Throws

\App\ConfigModule\Models\JsonException

Returns