Properties

$_words

$_words

$_model

$_model

$_parameters

$_parameters

$_cache

$_cache

$_widgets

$_widgets

$_early_scriptfiles

$_early_scriptfiles

$_late_scriptfiles

$_late_scriptfiles

Methods

setModel()

setModel( $model)

some view classes need to store a model object.

Parameters

$model

createWidget()

createWidget( $classname)

Parameters

$classname

render()

render()

__call()

__call( $key,  $args)

Parameters

$key
$args

__construct()

__construct()

__get()

__get( $key)

Parameters

$key

__set()

__set( $key,  $value)

Parameters

$key
$value

refresh_get()

refresh_get( $key)

Parameters

$key

__toString()

__toString()

addWidget()

addWidget(\RoxWidget $widget)

Widgets added this way will be asked for stylesheet and scriptfile information TODO: evtl not a good idea to do it this way.

Parameters

\RoxWidget $widget

getModel()

getModel()

Get the model object that was stored using setModel

showTemplate()

showTemplate( $rel_path,  $args)

Parameters

$rel_path
$args

set_layoutkit()

set_layoutkit(\unknown_type $layoutkit)

called by the framework, to inject some essential values.

.

Parameters

\unknown_type $layoutkit

getTemplatePrefix()

getTemplatePrefix( $classname)

Parameters

$classname

getAppname()

getAppname( $classname)

Parameters

$classname

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

init()

init()

getCustomElements()

getCustomElements() : array

skeleton method of getCustomElements

Returns

array

getStylesheets()

getStylesheets()

don't forget to call $stylesheets = parent::$this->getStylesheets(); when reimplementing this method!!

getStylesheetPatches()

getStylesheetPatches()

getScriptfiles()

getScriptfiles() : array

returns all registered early load scripts these are the scripts to be loaded in the html head element

Returns

array

getLateLoadScriptfiles()

getLateLoadScriptfiles() : array

returns all registered late load scripts these are the scripts to be loaded at the end of the page

Returns

array

addEarlyLoadScriptFile()

addEarlyLoadScriptFile(string $file) : void

registers a script for early loading

Parameters

string $file
  • js file to early load

addLateLoadScriptFile()

addLateLoadScriptFile(string $file) : void

registers a script for late loading

Parameters

string $file
  • js file to early load

getPageTitle()

getPageTitle()

printHTML()

printHTML()

includeStylesheets()

includeStylesheets()

includeCustomElements()

includeCustomElements()

allows for outputting custom elements in the page <head> element

includeJsConfig()

includeJsConfig()

Inserts JavaScript configuration.

Reads [javascript] section in rox.ini and makes it available via bwroxConfig object in JavaScript.

includeScriptfiles()

includeScriptfiles()

includeLateScriptfiles()

includeLateScriptfiles() : void

outputs script tags that include script files called at the end of pages

head()

head()

getPagePermalink()

getPagePermalink()

statusMessage()

statusMessage()