VersionFetcher

since 2018-09-26
author

Olle Haerstedt

package

Default

Methods

__construct

__construct(\LimeSurvey\ExtensionInstaller\SimpleXMLElement $updaterXml) 

Arguments

$updaterXml

\LimeSurvey\ExtensionInstaller\SimpleXMLElement

Get latest security version for configured source.

getLatestSecurityVersion() : string
abstract

Response

string

Semantic versioning string.

Get latest version for configured source.

getLatestVersion() : string
abstract

Response

string

Semantic versioning string.

getManualUpdateUrl

getManualUpdateUrl() : string

Response

string

setExtensionName

setExtensionName(string $name) : void

Arguments

$name

string

setExtensionType

setExtensionType(string $type) 

Arguments

$type

string

Set source to fetch version information. Can be URL to REST API, git repo, etc.

setSource(string $source) : void

Arguments

$source

string

setStable

setStable(boolean $stable) : void

Arguments

$stable

boolean

Properties

<updater> XML tag from config.xml.

updaterXml : \LimeSurvey\ExtensionInstaller\SimpleXMLElement
var

Type(s)

\LimeSurvey\ExtensionInstaller\SimpleXMLElement

Source.

source : string

From tag.

var

Type(s)

string

Is this fetcher marked as stable or not? From <stable> tag.

stable : boolean
var

Type(s)

boolean

Which extension name this fetcher belongs to.

extensionName : string
var

Type(s)

string

Which extension type this fetcher belongs to.

extensionType : string
var

Type(s)

string