\App\ConfigModule\FormsSchedulerFormFactory

Scheduler's task configuration form factory

Summary

Methods
Properties
Constants
__construct()
create()
createTasksMultiplier()
validate()
save()
No public properties found
PREFIX
No protected methods found
No protected properties found
N/A
load()
addTimeSpec()
getMessagings()
$manager
$factory
$presenter
$schemaManager
$serviceManager
N/A

Constants

PREFIX

PREFIX = 'config.scheduler.form.' : 

Translation prefix

Properties

$manager

$manager : \App\ConfigModule\Models\SchedulerManager

Type

normal — Scheduler manager

$factory

$factory : \App\CoreModule\Forms\FormFactory

Type

normal — Generic form factory

$presenter

$presenter : \App\ConfigModule\Presenters\SchedulerPresenter

Type

normal — Scheduler presenter

$schemaManager

$schemaManager : \App\IqrfNetModule\Models\ApiSchemaManager

Type

normal — JSON API schema manager

$serviceManager

$serviceManager : \App\ServiceModule\Models\ServiceManager

Type

normal — Service manager

Methods

__construct()

__construct(\App\CoreModule\Forms\FormFactory  $factory, \App\ConfigModule\Models\SchedulerManager  $manager, \App\ServiceModule\Models\ServiceManager  $serviceManager, \App\IqrfNetModule\Models\ApiSchemaManager  $schemaManager) : mixed

Constructor

Parameters

\App\CoreModule\Forms\FormFactory $factory

Generic form factory

\App\ConfigModule\Models\SchedulerManager $manager

Scheduler manager

\App\ServiceModule\Models\ServiceManager $serviceManager

Service manager

\App\IqrfNetModule\Models\ApiSchemaManager $schemaManager

Returns

mixed

create()

create(\App\ConfigModule\Presenters\SchedulerPresenter  $presenter) : \Nette\Application\UI\Form

Creates the Scheduler's task configuration form

Parameters

\App\ConfigModule\Presenters\SchedulerPresenter $presenter

Scheduler configuration presenter

Returns

\Nette\Application\UI\Form —

Scheduler's task configuration form

createTasksMultiplier()

createTasksMultiplier(\Nette\Forms\Container  $container) : void

Creates tasks multiplier

Parameters

\Nette\Forms\Container $container

Form container

Throws

\Nette\Utils\JsonException

validate()

validate(\Nette\Application\UI\Form  $form) : void

Validates scheduler task configuration from values

Parameters

\Nette\Application\UI\Form $form

Scheduler task configuration from

save()

save(\Nette\Application\UI\Form  $form) : void

Saves the task's configuration

Parameters

\Nette\Application\UI\Form $form

Scheduler task configuration form

load()

load(int  $id) : \stdClass

Loads the task

Parameters

int $id

Task ID

Throws

\Nette\Utils\JsonException

Returns

\stdClass —

Task

addTimeSpec()

addTimeSpec(\Nette\Application\UI\Form  $form) : void

Adds the time specification

Parameters

\Nette\Application\UI\Form $form

Task's configuration form

getMessagings()

getMessagings() : array<string,\Contributte\Translation\Wrappers\NotTranslate>

Returns available messagings

Throws

\Nette\Utils\JsonException

Returns

array

Messagings