ExtensionUpdaterServiceLocator

since 2018-09-26
author

Olle Haerstedt

package

Default

Methods

addUpdaterType

addUpdaterType(string $name,callable $creator): void

Arguments

$name

string

Updater class name, like 'PluginUpdater', or 'ExtensionUpdater'.

$creator

callable

Callable that returns an ExtensionUpdater array.

Get all created updaters for all updater types (plugins, themes, .

getAllUpdaters(): array

..).

Response

array

[ExtensionUpdater[] $updaters, string[] $errors]

Get created updaters for one updater class.

getUpdater(string $name): \LimeSurvey\ExtensionInstaller\ExtensionUpdater

Arguments

$name

string

Response

\LimeSurvey\ExtensionInstaller\ExtensionUpdater

All Yii components need an init() method.

init(): void

Properties

callable>

updaters :\LimeSurvey\ExtensionInstaller\array<string,
var

callable>

Type(s)

\LimeSurvey\ExtensionInstaller\array