Properties

$_parameters

$_parameters

$_cache

$_cache

Methods

__construct()

__construct()

__call()

__call( $key,  $args)

Parameters

$key
$args

__get()

__get( $key)

Parameters

$key

__set()

__set( $key,  $value)

Parameters

$key
$value

refresh_get()

refresh_get( $key)

Parameters

$key

__toString()

__toString()

setFlashNotice()

setFlashNotice(string $message)

Set flash notice message

Parameters

string $message

Message text for flash

setFlashError()

setFlashError(string $message)

Set flash error message

Parameters

string $message

Message text for flash

get()

get( $key)

Parameters

$key

getValues()

getValues()

getWords()

getWords() : object

returns an instance of the MOD_words class

Returns

object

logWrite()

logWrite(string $string, string $type)

wrapper for calls to MOD_log::get->write()

Parameters

string $string
string $type

getLog()

getLog() : object

wrapper function for MOD_log::get()

Returns

object

getVersionInfo()

getVersionInfo() : string

returns the revision number saved in revision.txt

Returns

string

redirect()

redirect( $request,  $get_args)

Parameters

$request
$get_args

redirectHome()

redirectHome( $get_args)

Parameters

$get_args

redirectRefresh()

redirectRefresh()

redirectAbsolute()

redirectAbsolute( $url,  $get_args)

Parameters

$url
$get_args

setTitle()

setTitle( $title)

Parameters

$title

setTitleTranslate()

setTitleTranslate( $title)

Parameters

$title

cleanVars()

cleanVars(array $post_vars) : array

trims all values posted back to controller

Parameters

array $post_vars

Returns

array

redirectToLogin()

redirectToLogin(string $url_part)

redirects to a login screen, returning the user to where it was afterwards

Parameters

string $url_part
  • relative url

setFlash()

setFlash(string $message, string $type)

Set flash message

Parameters

string $message

Message text for flash

string $type

Type of flash, i.e. "error" or "notice"