RESTVersionFetcher
extends VersionFetcher
in package
Tags
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
$curlResult
Result from the curl fetch.
protected
object
$curlResult
= null
$extensionName
Which extension name this fetcher belongs to.
protected
string
$extensionName
$extensionType
Which extension type this fetcher belongs to.
protected
string
$extensionType
$source
Source.
protected
string
$source
From
$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
stringgetLatestVersion()
Get latest version for configured source.
public
getLatestVersion() : string
Return values
stringgetManualUpdateUrl()
public
getManualUpdateUrl() : string|null
Return values
string|nullsetExtensionName()
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