AdminController

Extends \LSYii_Controller

Methods

_init

_init() 
inherited

Shows a nice error message to the world

error(string $message, $sURL = array()) : void
access

public

Arguments

$message

string

The error message

$sURL

Load and set session vars

_sessioncontrol() : void
access

protected

Checks for action specific authorization and then executes an action

run(string $action) : bool
access

public

Arguments

$action

string

Response

bool

Routes all the actions to their respective places

actions() : array
access

public

Response

array

getActionClasses

getActionClasses() 

Set Session User Rights

_GetSessionUserRights($loginID) : void
access

public

Arguments

$loginID

Prints Admin Header

_getAdminHeader(bool $meta = false, bool $return = false) : mixed
access

protected

Arguments

$meta

bool

$return

bool

Response

mixed

Prints Admin Footer

_getAdminFooter(string $url, string $explanation, bool $return = false) : mixed
access

protected

Arguments

$url

string

$explanation

string

$return

bool

Response

mixed

Shows a message box

_showMessageBox(string $title, string $message, string $class = "message-box-error") : void
access

public

Arguments

$title

string

$message

string

$class

string

_loadEndScripts

_loadEndScripts() 

Basic initialiser to the base controller class

__construct(string $id, \CWebModule $module = null) : void
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

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

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 page states from a hidden input.

loadPageStates() : array
inherited

Response

array

the loaded page states

Properties

layout

layout : 

user_id

user_id : 

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

navData : array
inherited
var

Type(s)

array