SurveysController

Extends\LSYii_Controller

This class will handle survey creation and manipulation.

package

Default

Methods

Basic initialiser to the base controller class

__construct(string $id,\CWebModule $module = null)
inherited
access

public

Arguments

$id

string

$module

\CWebModule

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

_checkInstallation(): void
inherited
access

protected

_init

_init()
inherited

System error : only 404 error are managed here (2016-11-29) SurveysController is the default controller set in internal

actionError()
see http://www.yiiframework.com/doc/guide/1.1/en/topics.error#handling-errors-using-an-action
Throws
\CException
\CHttpException
\Throwable
\Twig_Error_Loader
\Twig_Error_Syntax
\WrongTemplateVersionException

actionPublicList

actionPublicList( $lang = null)

Arguments

$lang

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

createAbsoluteUrl(string $route,array $params = array(),string $schema = '',string $ampersand = '&'): string
inherited

Arguments

$route

string

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

$params

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.

Response

string

the constructed URL

Loads a helper

loadHelper(string $helper): void
inherited
access

public

Arguments

$helper

string

Loads a library

loadLibrary(string $library): void
inherited
access

public

Arguments

$library

string

Loads page states from a hidden input.

loadPageStates(): array
inherited

Response

array

the loaded page states

Echo $error as HTML and end execution.

spitOutHtmlError(array $error,\CException|null $oException = null): void
Throws
\CException
\Throwable
\Twig_Error_Loader
\Twig_Error_Syntax
\WrongTemplateVersionException

Arguments

$error

array

$oException

\CException|null

Echo JSON $error and ends execution.

spitOutJsonError(array $error,\CException $oException): void
Throws
\CException

Arguments

$error

array

$oException

\CException

Properties

layout

layout :

Type(s)

sTemplate

sTemplate :

Type(s)

aReplacementData

aReplacementData :

Type(s)

aGlobalData

aGlobalData :

Type(s)

defaultAction

defaultAction :

Type(s)

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

navData :array
inherited
var

Type(s)

array