Properties

$versionManager

$versionManager : \App\CoreModule\Models\VersionManager

Type

normal — Version manager

$lang

$lang : string

Type

normal — Language

$dataGridFactory

$dataGridFactory : \App\GatewayModule\Datagrids\UpgradablePackagesDataGridFactory

Type

normal — Upgradable packages data grid factory

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

$manager

$manager : \App\GatewayModule\Models\UpdaterManager

Type

normal — Updater manager

Methods

flashInfo()

flashInfo(string  $message) : \stdClass

Saves the info flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashSuccess()

flashSuccess(string  $message) : \stdClass

Saves the success flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashWarning()

flashWarning(string  $message) : \stdClass

Saves the warning flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashError()

flashError(string  $message) : \stdClass

Saves the error flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

afterRender()

afterRender() : void

After template render

checkRequirements()

checkRequirements(mixed  $element) : void

Checks requirements

Parameters

mixed $element

Element

injectTranslator()

injectTranslator(\Nette\Localization\ITranslator  $translator) : void

Injects the translator service

Parameters

\Nette\Localization\ITranslator $translator

Translator

getTranslator()

getTranslator() : \Nette\Localization\ITranslator

Returns the translator

Returns

\Nette\Localization\ITranslator —

Translator

createTemplate()

createTemplate() : \Nette\Application\UI\ITemplate

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

__construct()

__construct(\App\GatewayModule\Models\UpdaterManager  $manager) : mixed

Constructor

Parameters

\App\GatewayModule\Models\UpdaterManager $manager

Updater manager

Returns

mixed

handleList()

handleList() : void

Handles listing of upgradable packages

handleUpdate()

handleUpdate() : void

Handles updating package's cache

showCommandOutput()

showCommandOutput(string  $type, string|null  $buffer) : void

Shows shell command output

Parameters

string $type

Output type

string|null $buffer

Output buffer

handleUpgrade()

handleUpgrade() : void

Handles updating packages

startup()

startup() : void

Checks if the updater is enabled

createComponentUpgradablePackagesGrid()

createComponentUpgradablePackagesGrid(string  $name) : \Ublaboo\DataGrid\DataGrid

Creates the data grid with upgradable packages

Parameters

string $name

Component name

Throws

\Ublaboo\DataGrid\Exception\DataGridColumnStatusException
\Ublaboo\DataGrid\Exception\DataGridException

Returns

\Ublaboo\DataGrid\DataGrid —

Datagrid with upgradable packages