Constructor - creates a new web page taking the proper security measures and all other necessary steps.
Creates a page instance of the given web module
Page
Page
(string $module, [optional $title = ""], [mixed $name = ""])
-
string
$module: The web module to create
-
optional
$title: array $title The page title
Return CSS for the given module
void
css
([optional $module = ""])
-
optional
$module: string $module The template CSS to be displayed
Returns CSS public URL for the given web module If module is not given, just return the common CSS.
void
cssUrl
(optional 0)
-
optional
0: string $module The web module whose CSS is to be returned
Display the given configuration template (if exists). See config/README for more information.
void
customTemplate
(string $template)
-
string
$template: The template name
Returns public URL for the given web module keeping the active date (d) parameter
string
dateUrl
([optional $module = ""], [optional $params = ""], [optional $full = false], [optional $rawsep = false])
-
optional
$module: string $module See Page::url() for info
-
optional
$params: array $params See Page::url() for info
-
optional
$full: boolean $full See Page::url() for info
-
optional
$rawsep: boolean $rawsep See Page::url() for info
Display the current page
void
display
()
Return the current page module as a string
string
get
()
Return page name (if available), otherwise return page title
void
getName
()
Returns a the page module name
string
module
()
Returns the news page URL for the given item (area, site, category, user or subscription)
void
newsUrl
([optional $item = ""], [optional $params = ""])
-
optional
$item: string $item The item whose news page is to be returned
-
optional
$params: string $params Additional parameters (optional)
Process a web module
void
process
(string $module)
-
string
$module: Module to be processed
Redirects browser to the given module If the module is omitted, redirectsi to the home page.
This function can be used statically (via Page::) or through a real class method (in which case the current parameters will be passed to the new module)
void
redirect
([optional $module = ""], [optional $params = ""])
-
optional
$module: string $module The web module
-
optional
$params: array $params Optional module parameters as an associative array of $key => $value
Returns the RSS2 feed URL. If params are not given, and the function is not called statically then the current page parameters are used.
void
rss2Url
([optional $params = array()])
-
optional
$params: string $type The type of the feed. Only rss2 is supported at this time.
Returns URL based on the active web module and its parameters
string
selfUrl
([optional $module = ""], [optional $params = ""])
-
optional
$module: string $module The web module. If omitted current web module is used.
-
optional
$params: array $params Module parameters. If omitted, current parameterse are passed.
Set raw output for this page. Must be called before any output is shown
void
setRawOutput
()
Adds the given variable to the local template variables
void
setTplVar
(strin $varname, mixed $varcontent)
-
strin
$varname: The variable name
-
mixed
$varcontent: The variable content
Returns the public site full URL
void
siteUrl
()
Display the template for the given page module
void
template
(string $module)
-
string
$module: The module to be displayed
Returns public URL for the given web module If the module is omitted, returns the home page URL
string
url
([optional $module = ""], [optional $params = ""], [optional $full = false], [optional $rawsep = false])
-
optional
$module: string $module The web module
-
optional
$params: array $params Optional module parameters as an associative array of $key => $value If $params is not an array, then the internal parameters (set when the page was displayed) are used.
-
optional
$full: boolean $full Return full URL instead of relative one (ie. include hostname)
-
optional
$rawsep: boolean $rawsep Use & instead of & as URL parameter separator