LimeSurvey API - Master branch

VersionFetcherServiceLocator
in package

Central Yii component to add and retrieve version fetcher strategies.

Tags
since
2018-09-26
author

LimeSurvey GmbH

Table of Contents

Properties

$versionFetcherCreators  : array<string, callable>
Array of callables that return a version fetcher.

Methods

addVersionFetcherType()  : void
createVersionFetcher()  : VersionFetcher
Creates a version fetcher based on xml $updaterXml.
init()  : void
All Yii components need an init() method.
validateXml()  : void

Properties

$versionFetcherCreators

Array of callables that return a version fetcher.

protected array<string, callable> $versionFetcherCreators

Methods

addVersionFetcherType()

public addVersionFetcherType(string $name, callable $vfCreator) : void
Parameters
$name : string
$vfCreator : callable
Tags
throws
Exception

if version fetcher with name $name already exists.

createVersionFetcher()

Creates a version fetcher based on xml $updaterXml.

public createVersionFetcher(SimpleXMLElement $updaterXml) : VersionFetcher
Parameters
$updaterXml : SimpleXMLElement

tag from config.xml.

Tags
throws
Exception

if version fetcher is not found.

Return values
VersionFetcher

validateXml()

protected validateXml(SimpleXMLElement $xml) : void
Parameters
$xml : SimpleXMLElement
Tags
throws
Exception

on invalid xml.


        
On this page

Search results