since | 2018-09-26 |
---|---|
author | Olle Haerstedt |
package | Default |
__construct(mixed $model)
mixed
Plugin model, theme model, etc, depending on extension type.
convertExtensionType(string $type): string
string
string
createUpdaters(): array
array
[ExtensionUpdater[] $updaters, string[] $errorMessages]
fetchVersions(): array
todo | Move to parent class? |
---|---|
array
$versions
foundSecurityVersion(array $versions): boolean
array
Each version has keys 'version' and 'isSecurityVersion'.
boolean
getCurrentVersion(): string
string
getExtensionConfig(): \LimeSurvey\ExtensionInstaller\ExtensionConfig
\LimeSurvey\ExtensionInstaller\ExtensionConfig
getExtensionName(): string
Extension type specific implementation.
string
getExtensionType(): string
Extension type specific implementation.
string
getLatestVersion(array $versions): array
array
array
getVersionMessage(array $versions): string
array
Each version has keys 'version' and 'isSecurityVersion', etc.
string
implodeVersions(array $versions): string
array
Each version has keys 'version' and 'isSecurityVersion'.
string
setUseUnstable(): void
versionHigherThan(string $currentVersion): integer
string
integer
versionIsStable(string $version): boolean
The version is stable IF it does not contain alpha, beta or rc suffixes.
string
boolean
model :mixed
todo | Create super class ExtensionModel that all extension model classes inherit from. |
---|---|
var |
mixed
useStable :boolean
var |
---|
boolean
useUnstable :boolean
var |
---|
boolean