PluginInstaller

Extends\LimeSurvey\ExtensionInstaller\ExtensionInstaller

Base class for different extension installers.

All extension have this in common:

  • Upload ZIP file or grab files from web (e.g. git repo)
  • Read config.xml
  • If config.xml is valid and the extension compatible with current version of LimeSurvey, then -- Copy files to correct folder (depends on extension type) -- Insert database row (depends on extension type)
since 2018-09-24
author

Olle Haerstedt

package

Default

Methods

Installation procedure was not completed, abort changes.

abort(): void
inheritedabstract

Order the file fetcher to fetch files.

fetchFiles(): void
inheritedabstract
Throws
\LimeSurvey\ExtensionInstaller\Exception

Get the configuration from temp dir.

getConfig(): \LimeSurvey\ExtensionInstaller\ExtensionConfig
inheritedabstract

Before an extension is installed, we need to read the config file. That's why the extension if fetched into a temp folder first.

Response

\LimeSurvey\ExtensionInstaller\ExtensionConfig

Install extension, which includes moving files from temp dir to final dir, and creating the necessary database changes.

install(): void
inheritedabstract

setFileFetcher

setFileFetcher(\LimeSurvey\ExtensionInstaller\FileFetcher $fileFetcher): void
inherited

setPluginType

setPluginType(string $pluginType): void

Arguments

$pluginType

string

Uninstall the extension.

uninstall(): void
inheritedabstract

Update extension.

update(): void
inheritedabstract

Properties

Class responsible for fetching files from source.

fileFetcher :\LimeSurvey\ExtensionInstaller\FileFetcher
inherited

Core, upload or user.

pluginType :string
var

Type(s)

string