Methods summary
public static
string
|
#
getBackendPath( )
Function wich returns path after the last possible place changing via
configuration file.
Function wich returns path after the last possible place changing via
configuration file.
Returns
string path
|
public static
string
|
#
getBackendUrl( )
Function wich returns the backend URL after the last possible place changing
via configuration file.
Function wich returns the backend URL after the last possible place changing
via configuration file.
Returns
string URL
|
public static
string
|
#
getFrontendPath( )
Function wich returns path after the last possible place changing via
configuration file. The path point to the current client
Function wich returns path after the last possible place changing via
configuration file. The path point to the current client
Returns
string path
|
public static
string
|
#
getFrontendUrl( )
Function wich returns URL after the last possible place changing via
configuration file. The path point to the current client
Function wich returns URL after the last possible place changing via
configuration file. The path point to the current client
Returns
string URL
|
public static
string
|
#
getBackendSessionId( )
Returns the CONTENIDO Session ID stored in the global variable
"contenido".
Returns the CONTENIDO Session ID stored in the global variable
"contenido".
Returns
string
|
public static
string
|
#
getBackendLanguage( )
Returns the CONTENIDO backend language stored in the global variable
"belang"
Returns the CONTENIDO backend language stored in the global variable
"belang"
Returns
string
|
public static
boolean
|
#
isBackendEditMode( )
Checks if the edit mode in backend is active or not stored in the global
variable "edit"
Checks if the edit mode in backend is active or not stored in the global
variable "edit"
Returns
boolean
|
public static
integer
|
#
getLanguageId( )
Returns the current language ID stored in the global variable "lang".
Returns the current language ID stored in the global variable "lang".
Returns
integer
|
public static
cApiLanguage
|
#
getLanguage( )
Returns the loaded cApiLanguage object for the current language.
Returns the loaded cApiLanguage object for the current language.
Returns
|
public static
integer
|
#
getClientId( )
Returns the current client ID stored in the global variable "client".
Returns the current client ID stored in the global variable "client".
Returns
integer
|
public static
cApiClient
|
#
getClient( )
Returns the loaded cApiClient object for the current client.
Returns the loaded cApiClient object for the current client.
Returns
|
public static
integer
|
#
getArticleId( boolean $autoDetect = false )
Returns the article id stored in the global variable "idart".
Returns the article id stored in the global variable "idart".
Parameters
- $autoDetect
boolean $autoDetect If true, the value is tried to detected automatically. (default:
false)
Returns
integer
|
public static
cApiArticle
|
#
getArticle( )
Returns the loaded cApiArticle object for the current article.
Returns the loaded cApiArticle object for the current article.
Returns
|
public static
integer
|
#
getArticleLanguageId( boolean $autoDetect = false )
Returns the article language id stored in the global variable
"idartlang".
Returns the article language id stored in the global variable
"idartlang".
Parameters
- $autoDetect
boolean $autoDetect If true, the value is tried to detected automatically. (default:
false)
Returns
integer
|
public static
cApiArticleLanguage
|
#
getArticleLanguage( )
Returns the loaded cApiArticleLanguage object for the current article.
Returns the loaded cApiArticleLanguage object for the current article.
Returns
|
public static
integer
|
#
getCategoryId( boolean $autoDetect = false )
Returns the category id stored in the global variable "idcat".
Returns the category id stored in the global variable "idcat".
Parameters
- $autoDetect
boolean $autoDetect If true, the value is tried to detected automatically. (default:
false)
Returns
integer
|
public static
cApiCategory
|
#
getCategory( )
Returns the loaded cApiCategory object for the current category.
Returns the loaded cApiCategory object for the current category.
Returns
|
public static
integer
|
#
getCategoryLanguageId( boolean $autoDetect = false )
Returns the category language id stored in the global variable
"idcatlang".
Returns the category language id stored in the global variable
"idcatlang".
Parameters
- $autoDetect
boolean $autoDetect If true, the value is tried to detected automatically. (default:
false)
Returns
integer
|
public static
cApiCategoryLanguage
|
#
getCategoryLanguage( )
Returns the loaded cApiCategoryLanguage object for the current category.
Returns the loaded cApiCategoryLanguage object for the current category.
Returns
|
public static
integer
|
#
getCategoryArticleId( boolean $autoDetect = false )
Returns the category/article relation id stored in the global variable
"idcatart".
Returns the category/article relation id stored in the global variable
"idcatart".
Parameters
- $autoDetect
boolean $autoDetect If true, the value is tried to detected automatically. (default:
false)
Returns
integer
|
public static
cApiCategoryArticle
|
#
getCategoryArticle( )
Returns the loaded cApiCategoryArticle object for the current
category/article relation.
Returns the loaded cApiCategoryArticle object for the current
category/article relation.
Returns
|
public static
integer
|
#
getCurrentModuleId( )
Returns the current module ID. Note: This function will work only within
module code.
Returns the current module ID. Note: This function will work only within
module code.
Returns
integer
|
public static
integer
|
#
getCurrentContainerId( )
Returns the current container ID. Note: This function will work only within
module code.
Returns the current container ID. Note: This function will work only within
module code.
Returns
integer
|
public static
cSession
|
#
getSession( )
Return the session object stored in the global variable "sess".
Return the session object stored in the global variable "sess".
Returns
|
public static
cAuth
|
#
getAuth( )
Returns the auth object stored in the global variable "auth".
Returns the auth object stored in the global variable "auth".
Returns
|
public static
cPermission
|
#
getPerm( )
Returns the permission object stored in the global variable "perm".
Returns the permission object stored in the global variable "perm".
Returns
|
public static
array
|
#
getConfig( )
Returns the configuration array stored in the global variable "cfg".
Returns the configuration array stored in the global variable "cfg".
Returns
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.
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.
Parameters
- $sectionName
string $sectionName
- $optionName
string $optionName optional
- $defaultValue
string $defaultValue optional
Returns
array string
|
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.
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.
Parameters
- $clientId
integer $clientId Client ID (optional)
Returns
array
|
public static
cDb
|
#
getDb( )
Returns a new CONTENIDO database object.
Returns a new CONTENIDO database object.
Returns
Todo
perhaps its better to instantiate only one object and reset it on call
|
public static
string
|
#
getDbTableName( string $index )
Fetches the database table name with its prefix.
Fetches the database table name with its prefix.
Parameters
- $index
string $index name of the index
Returns
string
|
public static
cApiCecRegistry
|
#
getCecRegistry( )
Return the global CONTENIDO Execution Chain Registry.
Return the global CONTENIDO Execution Chain Registry.
Returns
|
public static
|
#
setAppVar( string $key, mixed $value )
Setter for an application variable.
Setter for an application variable.
Parameters
- $key
string $key
- $value
mixed $value
|
public static
mixed
|
#
getAppVar( string $key, mixed $default = NULL )
Getter for an application variable.
Getter for an application variable.
Parameters
- $key
string $key
- $default
mixed $default Default value to return, if the application variable doesn't exists
Returns
mixed
|
public static
|
#
unsetAppVar( string $key )
Unsets an existing application variable.
Unsets an existing application variable.
Parameters
|
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.
Fetches the global variable requested. If variable is not set, the default
value is returned.
Parameters
- $variableName
string $variableName name of the global variable
- $defaultValue
mixed $defaultValue default value
Returns
mixed
|
final protected static
Item
|
#
_fetchItemObject( string $apiClassName, integer $objectId )
Fetches the corresponding Item object for the specific class name and its
primary key value.
Fetches the corresponding Item object for the specific class name and its
primary key value.
Parameters
- $apiClassName
string $apiClassName name of the api class
- $objectId
integer $objectId primary key value
Returns
Throws
|
final public static
|
#
bootstrap( array $features )
Bootstraps the CONTENIDO framework and initializes the global variables sess,
auth and perm.
Bootstraps the CONTENIDO framework and initializes the global variables sess,
auth and perm.
Parameters
- $features
array $features array with class name definitions
|
final public static
|
#
shutdown( boolean $debugShowAll = true )
Shutdowns the CONTENIDO framework on page close.
Shutdowns the CONTENIDO framework on page close.
Parameters
- $debugShowAll
boolean $debugShowAll
|
public static
|
#
addInfoMessage( string $message )
Stores an information massage in the cRegistry.
Stores an information massage in the cRegistry.
Parameters
|
public static
|
#
addErrorMessage( string $message )
Stores an error massage in the cRegistry.
Stores an error massage in the cRegistry.
Parameters
|
public static
|
#
addWarningMessage( string $message )
Stores an warning massage in the cRegistry.
Stores an warning massage in the cRegistry.
Parameters
|
public static
|
#
appendLastInfoMessage( string $message )
Appends the last info message that will be outputted
Appends the last info message that will be outputted
Parameters
|
public static
|
#
appendLastErrorMessage( string $message )
Appends the last error message that will be outputted
Appends the last error message that will be outputted
Parameters
|
public static
|
#
appendLastWarningMessage( string $message )
Appends the last warning that will be outputted
Appends the last warning that will be outputted
Parameters
|
public static
array
|
#
getInfoMessages( )
Returns an array with information messages.
Returns an array with information messages.
Returns
array
|
public static
array
|
#
getErrorMessages( )
Returns an array with error messages.
Returns an array with error messages.
Returns
array
|
public static
array
|
#
getWarningMessages( )
Returns an array with warning messages.
Returns an array with warning messages.
Returns
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.
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.
Returns
boolean whether tracking is allowed by the DNT header
|