A Simple Static class providing various convenience utilities.
package |
CMS |
---|---|
license |
GPL |
author |
Robert Campbell |
copyright |
Copyright (c) 2010, Robert Campbell calguy1000@cmsmadesimple.org |
since | 1.9 |
get_app_data(string $key) : mixed
string
$keyThe key to get.
mixed
The stored data, or null
set_app_data(string $key, mixed $value)
This method is typically used to store data for later use by another part of the application. This data is not stored in the session, so it only exists for one request.
string
$keyThe name of this data.
mixed
$valueThe data to store.
get_module(string $name, string $version = '') : \CmsModule
If a version string is passed, a matching object will only be returned IF the installed version is greater than or equal to the supplied version.
string
$nameThe module name
string
$versionAn optional version string
\CmsModule
The matching module object or null
module_available(string $name) : boolean
string
$nameThe module name
boolean
get_db() : \ADOConnection
\ADOConnection
a handle to the ADODB database object
get_config() : \cms_config
get_smarty() : \Smarty_CMS
\Smarty_CMS
Handle to the Smarty object
get_current_content() : \Content
This function will always return NULL if called from an admin action
\Content
The current content object, or null
get_current_alias() : string
This function will always return NULL if called from an admin action
string
get_current_pageid() : integer
This function will always return NULL if called from an admin action
integer
get_wysiwyg_module(string $module_name = '') : \CMSModule
This is a wrapper around a similar function in the ModuleOperations class.
This method will return the currently selected frontend wysiwyg for frontend requests (or null if none is selected) For admin requests this method will return the users currently selected wysiwyg module, or null.
string
$module_nameThe module name.
get_syntax_highlighter_module() : \CMSModule
get_search_module() : \CMSModule
get_filepicker_module() : \CMSModule
get_real_ip()
This function attempts to compensate for proxy servers.
get_theme_object()