LimeSurvey API - Master branch

OptinController extends LSYii_Controller
in package

optin

Tags
copyright

2011

access

public

Table of Contents

Properties

$defaultAction  : mixed
$layout  : mixed
$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
actionaddtokens()  : mixed
Add token back to the survey (remove 'OptOut' status) and/or add participant back to the CPDB (remove from blocklist).
actionparticipants()  : mixed
Display the confirmation for global opt in
actiontokens()  : mixed
Display the confirmation for individual survey opt in
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.
renderHtml()  : void
Render stuff

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

actionaddtokens()

Add token back to the survey (remove 'OptOut' status) and/or add participant back to the CPDB (remove from blocklist).

public actionaddtokens() : mixed

The participant is only removed from the blocklist if the 'global' URL param is true and 'allowunblacklist' is enabled.

actionparticipants()

Display the confirmation for global opt in

public actionparticipants() : mixed

actiontokens()

Display the confirmation for individual survey opt in

public actiontokens() : mixed

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

renderHtml()

Render stuff

private renderHtml(string $message, Survey $survey[, string $link = '' ][, array<string, mixed> $token = [] ][, array<string, mixed> $participant = [] ]) : void
Parameters
$message : string
$survey : Survey
$link : string = ''
$token : array<string, mixed> = []
$participant : array<string, mixed> = []

        
On this page

Search results