\App\ConfigModule\FormsSchedulerImportFormFactory

Scheduler's task import form factory

Summary

Methods
Properties
Constants
__construct()
create()
import()
No public properties found
TRANSLATOR_PREFIX
No protected methods found
No protected properties found
N/A
importJson()
importZip()
$factory
$presenter
$manager
$migrationManager
N/A

Constants

TRANSLATOR_PREFIX

TRANSLATOR_PREFIX = 'config.scheduler.importForm' : 

Translator prefix

Properties

$factory

$factory : \App\CoreModule\Forms\FormFactory

Type

normal — Generic form factory

$presenter

$presenter : \App\ConfigModule\Presenters\SchedulerPresenter

Type

normal — Scheduler presenter

$manager

$manager : \App\ConfigModule\Models\SchedulerManager

Type

normal — Scheduler manager

$migrationManager

$migrationManager : \App\ConfigModule\Models\SchedulerMigrationManager

Type

normal — Scheduler migration manager

Methods

__construct()

__construct(\App\CoreModule\Forms\FormFactory  $factory, \App\ConfigModule\Models\SchedulerManager  $manager, \App\ConfigModule\Models\SchedulerMigrationManager  $migrationManager) : mixed

Constructor

Parameters

\App\CoreModule\Forms\FormFactory $factory

Generic form factory

\App\ConfigModule\Models\SchedulerManager $manager

Scheduler manager

\App\ConfigModule\Models\SchedulerMigrationManager $migrationManager

Scheduler migration manager

Returns

mixed

create()

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

Creates the task import form

Parameters

\App\ConfigModule\Presenters\SchedulerPresenter $presenter

Scheduler presenter

Returns

\Nette\Application\UI\Form —

Task import form

import()

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

Imports a file

Parameters

\Nette\Application\UI\Form $form

Scheduler configuration import form

importJson()

importJson(\Nette\Application\UI\Form  $form, \Nette\Http\FileUpload  $file) : void

Imports JSON file with task configuration

Parameters

\Nette\Application\UI\Form $form

Scheduler configuration import form

\Nette\Http\FileUpload $file

JSON file with task configuration

importZip()

importZip(\Nette\Application\UI\Form  $form, \Nette\Http\FileUpload  $file) : void

Imports ZIP archive with scheduler configuration

Parameters

\Nette\Application\UI\Form $form

Scheduler configuration import form

\Nette\Http\FileUpload $file

ZIP archive with scheduler configuration