ExtensionConfig

Thin wrapper class around extension config.xml file.

package

Default

Methods

__construct

__construct(\SimpleXMLElement $xml)

Arguments

$xml

\SimpleXMLElement

Create a version fetcher for every <updater> tag in config.xml.

createVersionFetchers(): array

Response

array

VersionFetcher[]

getAuthor

getAuthor(): string

Response

string

getDescription

getDescription(): string

Response

string

getLicense

getLicense(): string

Response

string

getName

getName(): string

Response

string

Version is a string, not number, due to semantic versioning.

getVersion(): string

Response

string

Returns true if this extension config is compatible with this version of LS.

isCompatible(): boolean

Response

boolean

loadConfigFromFile

loadConfigFromFile(string $file): \ExtensionConfig
static

Arguments

$file

string

Full file path.

Response

\ExtensionConfig

Check basic properties of the config.xml.

validate(): boolean
todo

Get detailed error message.

Response

boolean

Properties

xml

xml :\SimpleXMLElement
var

Type(s)

\SimpleXMLElement