Class cGuiPage
Generic page GUI class. Manages HTML pages and provides functions for rendering them.
Direct known subclasses
ArticleForumLeftBottom, ArticleForumRightBottom, PifaLeftBottomPage, PifaRightBottomFormDataPage, PifaRightBottomFormFieldsPage, PifaRightBottomFormPage, SolrRightBottomPageCopyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Mischa Holz
Located at classes/gui/class.page.php
public
|
#
__construct( string $pagename, string $pluginname = "", string $submenu = "" )
The constructor initializes the class and tries to get the encoding from the currently selected language. It will also add every script in the form of /scripts/*.PAGENAME.js and every stylesheet in the form of/styles/*.PAGENAME.css to the page as well as /scripts/PAGENAME.js and /styles/PAGENAME.css. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
abortRendering( )
After calling this the page will only display messages and not render the content template. NOTE: You still have to call render() to actually show any messages |
public
|
#
displayCriticalError( string $msg )
Displays an error message and aborts rendering after that NOTE: You still have to call render() to actually show any messages |
public
|
#
displayError( string $msg )
Displays an error but the rendering of the content template will continue. |
public
|
|
public
|
|
public
|
#
setContent( array|object $objects )
Sets an array (or a single object) of cHTML objects which build up the site instead of a content template. NOTE: All these objects must have a render() method or else they won't be shown |
public
|
#
appendContent( array|object $objects )
Appends all cHTML objects in an array (or a single object) which build up the site instead of a content template. NOTE: All these objects must have a render() method or else they won't be shown |
public
Ambigous
|
#
setPluginScript( unknown_type $plugin, unknown_type $filename )
Example: setPluginScript('content_allocation', 'complexlist.js'); $this->_scripts[] = 'http://contenido.local/contenido/plugins/content_allocation/scripts/complexlist.js'; |
public
|
|
public
string
|
protected
string
|
$_pagename |
|
#
The name of the page. This will be used to load the template, stylesheets and scripts. |
protected
string
|
$_pluginname |
|
#
The name of the plugin of the current webpage. |
protected
|
$_pagetemplate |
|
#
The general page template. |
protected
|
$_contenttemplate |
|
#
The template for everything that is inside the body. (Usually template.PAGENAME.html) |
protected
array
|
$_scripts |
|
#
An array of script names (inside /scripts/) which will be included in the final page. |
protected
array
|
$_styles |
|
#
An array of stylesheets (inside /styles/) which will be included in the final page. |
protected
string
|
$_subnav |
|
#
The script to set the subnavigation. This will be included in the final page. |
protected
string
|
$_markscript |
|
#
The script to markup the current submenu item. This will be included in the final page. |
protected
string
|
$_error |
|
#
An error message which will be used to display an error with the help of cGuiNotification |
protected
string
|
$_warning |
|
#
A warning which will be used to display an error with the help of cGuiNotification |
protected
unknown_type
|
$_info |
|
#
An info which will be used to display an error with the help of cGuiNotification |
protected
boolean
|
$_abort |
|
#
If true, just display the message and don't render the template |
protected
array
|
$_objects |
|
#
An array of cHTML objects which will be rendered instead of filling a template. |
protected
array
|
$_metaTags |
|
#
Array of arrays where each array contains information about a meta tag. |