VersionFetcherServiceLocator

Central Yii component to add and retrieve version fetcher strategies.

since 2018-09-26
author

Olle Haerstedt

package

Default

Methods

addVersionFetcherType

addVersionFetcherType(string $name, callable $vfCreator) : void
Throws
\LimeSurvey\ExtensionInstaller\Exception

if version fetcher with name $name already exists.

Arguments

$name

string

$vfCreator

callable

Creates a version fetcher based on xml $updaterXml.

createVersionFetcher(\LimeSurvey\ExtensionInstaller\SimpleXMLElement $updaterXml) : \LimeSurvey\ExtensionInstaller\VersionFetcher
Throws
\LimeSurvey\ExtensionInstaller\Exception

if version fetcher is not found.

Arguments

$updaterXml

\LimeSurvey\ExtensionInstaller\SimpleXMLElement

tag from config.xml.

Response

\LimeSurvey\ExtensionInstaller\VersionFetcher

All Yii components need an init() method.

init() : void

validateXml

validateXml(\LimeSurvey\ExtensionInstaller\SimpleXMLElement $xml) : void
Throws
\LimeSurvey\ExtensionInstaller\Exception

on invalid xml.

Arguments

$xml

\LimeSurvey\ExtensionInstaller\SimpleXMLElement

Properties

Array of callables that return a version fetcher.

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

callable>

Type(s)

\LimeSurvey\ExtensionInstaller\array