Class cRegistry
This class contains functions for global interaction in CONTENIDO.
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/class.registry.php
public static
path
|
#
getBackendPath( )
Function wich returns path after the last possible place changing via configuration file. |
public static
URL
|
#
getBackendUrl( )
Function wich returns the backend URL after the last possible place changing via configuration file. |
public static
path
|
#
getFrontendPath( )
Function wich returns path after the last possible place changing via configuration file. The path point to the current client |
public static
URL
|
#
getFrontendUrl( )
Function wich returns URL after the last possible place changing via configuration file. The path point to the current client |
public static
string
|
#
getBackendSessionId( )
Returns the CONTENIDO Session ID stored in the global variable "contenido". |
public static
string
|
#
getBackendLanguage( )
Returns the CONTENIDO backend language stored in the global variable "belang" |
public static
boolean
|
#
isBackendEditMode( )
Checks if the edit mode in backend is active or not stored in the global variable "edit" |
public static
integer
|
|
public static
|
|
public static
integer
|
|
public static
|
|
public static
integer
|
#
getArticleId( boolean $autoDetect = false )
Returns the article id stored in the global variable "idart". |
public static
|
|
public static
integer
|
#
getArticleLanguageId( boolean $autoDetect = false )
Returns the article language id stored in the global variable "idartlang". |
public static
|
|
public static
integer
|
#
getCategoryId( boolean $autoDetect = false )
Returns the category id stored in the global variable "idcat". |
public static
|
|
public static
integer
|
#
getCategoryLanguageId( boolean $autoDetect = false )
Returns the category language id stored in the global variable "idcatlang". |
public static
|
|
public static
integer
|
#
getCategoryArticleId( boolean $autoDetect = false )
Returns the category/article relation id stored in the global variable "idcatart". |
public static
|
#
getCategoryArticle( )
Returns the loaded cApiCategoryArticle object for the current category/article relation. |
public static
integer
|
#
getCurrentModuleId( )
Returns the current module ID. Note: This function will work only within module code. |
public static
integer
|
#
getCurrentContainerId( )
Returns the current container ID. Note: This function will work only within module code. |
public static
|
|
public static
|
|
public static
|
|
public static
array
|
|
public static
array
|
#
getConfigValue( string $sectionName = NULL, string $optionName = NULL, string $defaultValue = NULL )
This function returns either a full configuration section or the value for a certain configuration option if a $optionName is given. In this case a $default value can be given which will be returned if this option is not defined. |
public static
array
|
#
getClientConfig( integer $clientId = 0 )
Returns the client configuration array stored in the global variable "cfgClient". If no client ID is specified or is 0 the complete array is returned. |
public static
|
|
public static
string
|
|
public static
|
|
public static
|
|
public static
mixed
|
|
public static
|
|
final protected static
mixed
|
#
_fetchGlobalVariable( string $variableName, mixed $defaultValue = NULL )
Fetches the global variable requested. If variable is not set, the default value is returned. |
final protected static
|
#
_fetchItemObject( string $apiClassName, integer $objectId )
Fetches the corresponding Item object for the specific class name and its primary key value. |
final public static
|
|
final public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
array
|
|
public static
array
|
|
public static
array
|
|
public static
boolean
|
#
isTrackingAllowed( )
Returns true if the DNT header is set and equal to 1. Returns false if the DNT header is unset or not equal to 1. |
protected static
array
|
$_appVars | array() |
#
Container for application variables. Meant to set and get application wide variables as an alternative to store them in global scope. |
protected static
array
|
$_infoMessages | array() |
#
Container for information messages. |
protected static
array
|
$_errMessages | array() |
#
Container for error messages. |
protected static
array
|
$_warnMessages | array() |
#
Container for warning messages. |