LimeSurvey API - Master branch

PluginsController extends LSYii_Controller
in package

Tags
todo

Not used, copied to admin/pluginmanager.php. Delete this file?

todo

Actually, it's used for action direct.

Table of Contents

Properties

$navData  : array<string|int, mixed>
This array contains the survey / group / question id used by the menu widget.

Methods

__construct()  : mixed
Basic initialiser to the base controller class
actionDirect()  : mixed
Launch the event newDirectRequest
actionIndex()  : void
Show list of plugins
actionUnsecure()  : mixed
Launch the event newUnsecureRequest
createAbsoluteUrl()  : string
Returns an absolute URL based on the given controller and action information.
loadHelper()  : void
Loads a helper
loadLibrary()  : void
Loads a library
_checkInstallation()  : void
Check that installation was already done by looking for config.php Will redirect to the installer script if not exists.
customInit()  : mixed
loadPageStates()  : array<string|int, mixed>
Loads page states from a hidden input.

Properties

$navData

This array contains the survey / group / question id used by the menu widget.

public array<string|int, mixed> $navData = array()

Methods

__construct()

Basic initialiser to the base controller class

public __construct(string $id[, CWebModule $module = null ]) : mixed
Parameters
$id : string
$module : CWebModule = null
Tags
access

public

actionDirect()

Launch the event newDirectRequest

public actionDirect( $plugin[,  $function = null ]) : mixed
Parameters
$plugin :

: the target

$function : = null

: the function to call from the plugin

actionIndex()

Show list of plugins

public actionIndex() : void
Tags
deprecated

actionUnsecure()

Launch the event newUnsecureRequest

public actionUnsecure( $plugin[,  $function = null ]) : mixed
Parameters
$plugin :

: the target

$function : = null

: the function to call from the plugin

createAbsoluteUrl()

Returns an absolute URL based on the given controller and action information.

public createAbsoluteUrl(string $route[, array<string|int, mixed> $params = array() ][, string $schema = '' ][, string $ampersand = '&' ]) : string

The functionalty was moved to \LSYii_Application::createPublicUrl, to be safe the function remains here.

Parameters
$route : string

the URL route. This should be in the format of 'ControllerID/ActionID'.

$params : array<string|int, mixed> = array()

additional GET parameters (name=>value). Both the name and value will be URL-encoded.

$schema : string = ''

schema to use (e.g. http, https). If empty, the schema used for the current request will be used.

$ampersand : string = '&'

the token separating name-value pairs in the URL.

Return values
string

the constructed URL

loadHelper()

Loads a helper

public loadHelper(string $helper) : void
Parameters
$helper : string
Tags
access

public

loadLibrary()

Loads a library

public loadLibrary(string $library) : void
Parameters
$library : string
Tags
access

public

_checkInstallation()

Check that installation was already done by looking for config.php Will redirect to the installer script if not exists.

protected _checkInstallation() : void
Tags
access

protected

loadPageStates()

Loads page states from a hidden input.

protected loadPageStates() : array<string|int, mixed>
Return values
array<string|int, mixed>

the loaded page states


        
On this page

Search results