LimeSurvey API - Master branch

PluginInstaller extends ExtensionInstaller
in package

Base class for different extension installers.

Tags
since
2018-09-24
author

LimeSurvey GmbH

Table of Contents

Properties

$fileFetcher  : FileFetcher
Class responsible for fetching files from source.
$pluginType  : string
Core, upload or user.

Methods

abort()  : void
When installation procedure was not completed, abort changes.
fetchFiles()  : void
Order the file fetcher to fetch files.
getConfig()  : ExtensionConfig|null
Get the configuration from temp dir.
install()  : void
Install unzipped package into correct folder.
isWhitelisted()  : bool
Returns true if the plugin name is allowlisted or the allowlist is disabled.
setFileFetcher()  : void
setPluginType()  : void
uninstall()  : void
Uninstall the extension.
update()  : void
Update the plugin.

Properties

Methods

abort()

When installation procedure was not completed, abort changes.

public abort() : void

fetchFiles()

Order the file fetcher to fetch files.

public fetchFiles() : void
Tags
throws
Exception

getConfig()

Get the configuration from temp dir.

public getConfig() : ExtensionConfig|null

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

Return values
ExtensionConfig|null

install()

Install unzipped package into correct folder.

public install() : void

Assumes file fetcher and config is set.

Tags
throws
Exception

isWhitelisted()

Returns true if the plugin name is allowlisted or the allowlist is disabled.

public isWhitelisted() : bool
Return values
bool

setPluginType()

public setPluginType(string $pluginType) : void
Parameters
$pluginType : string

uninstall()

Uninstall the extension.

public uninstall() : void
Tags
todo

update()

Update the plugin.

public update() : void

Assumes file fetcher and config is set.

Tags
throws
Exception

        
On this page

Search results