LimeSurvey API - Master branch

RESTVersionFetcher extends VersionFetcher
in package

Tags
since
2018-09-26
author

LimeSurvey GmbH

Table of Contents

Properties

$curlResult  : object
Result from the curl fetch.
$extensionName  : string
Which extension name this fetcher belongs to.
$extensionType  : string
Which extension type this fetcher belongs to.
$source  : string
Source.
$stable  : bool
Is this fetcher marked as stable or not? From <stable> tag.
$updaterXml  : SimpleXMLElement
<updater> XML tag from config.xml.

Methods

__construct()  : mixed
getLatestSecurityVersion()  : string
Get latest security version for configured source.
getLatestVersion()  : string
Get latest version for configured source.
getManualUpdateUrl()  : string|null
setExtensionName()  : void
setExtensionType()  : mixed
setSource()  : void
Set source to fetch version information. Can be URL to REST API, git repo, etc.
setStable()  : void
fetchCurl()  : void
Contact remote server and fetch extension information.

Properties

$extensionName

Which extension name this fetcher belongs to.

protected string $extensionName

$extensionType

Which extension type this fetcher belongs to.

protected string $extensionType

$stable

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

protected bool $stable

$updaterXml

<updater> XML tag from config.xml.

protected SimpleXMLElement $updaterXml

Methods

__construct()

public __construct(SimpleXMLElement $updaterXml) : mixed
Parameters
$updaterXml : SimpleXMLElement

getLatestSecurityVersion()

Get latest security version for configured source.

public getLatestSecurityVersion() : string
Return values
string

getLatestVersion()

Get latest version for configured source.

public getLatestVersion() : string
Return values
string

getManualUpdateUrl()

public getManualUpdateUrl() : string|null
Return values
string|null

setExtensionName()

public setExtensionName(string $name) : void
Parameters
$name : string

setExtensionType()

public setExtensionType(string $type) : mixed
Parameters
$type : string

setSource()

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

public setSource(string $source) : void
Parameters
$source : string

setStable()

public setStable(bool $stable) : void
Parameters
$stable : bool

fetchCurl()

Contact remote server and fetch extension information.

protected fetchCurl() : void

        
On this page

Search results