\App\ConfigModule\FormsComponentsFormFactory

Component configuration form factory

Summary

Methods
Properties
Constants
__construct()
create()
save()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$manager
$factory
$id
$presenter
N/A

Properties

$manager

$manager : \App\ConfigModule\Models\ComponentManager

Type

normal — Component configuration manager

$factory

$factory : \App\CoreModule\Forms\FormFactory

Type

normal — Generic form factory

$id

$id : int

Type

normal — Component ID

$presenter

$presenter : \App\ConfigModule\Presenters\ComponentPresenter

Type

normal — Component presenter

Methods

__construct()

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

Constructor

Parameters

\App\ConfigModule\Models\ComponentManager $manager

Generic configuration manager

\App\CoreModule\Forms\FormFactory $factory

Generic form factory

Returns

mixed

create()

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

Creates the components configuration form

Parameters

\App\ConfigModule\Presenters\ComponentPresenter $presenter

Component presenter

Throws

\Nette\Utils\JsonException

Returns

\Nette\Application\UI\Form —

Components configuration form

save()

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

Saves the component configuration

Parameters

\Nette\Application\UI\Form $form

Component configuration form

Throws

\Nette\Utils\JsonException