Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cAjaxRequest
  • cAutoload
  • cBackend
  • cEffectiveSetting
  • cGuiScrollListAlltranslations
  • cHTMLValidator
  • cMailer
  • cModuleFileTranslation
  • cModuleHandler
  • cModuleSearch
  • cModuleSynchronizer
  • cModuleTemplateHandler
  • CodeMirror
  • cPasswordRequest
  • cPermission
  • cRegistry
  • cSystemPurge
  • cSystemtest
  • cTinyMCEEditor
  • cWYSIWYGEditor
  • FrontendList
  • HtmlParser
  • TreeItem
  • UploadList
  • UploadSearchResultList

Functions

  • _processCmsTags
  • addArtspec
  • addslashes_deep
  • addSortImages
  • backToMainArea
  • buildArticleSelect
  • buildCategorySelect
  • buildCategorySelectRights
  • buildHeapTable
  • buildStackString
  • buildTree
  • buildUserOrGroupPermsFromRequest
  • callPluginStore
  • cApiCatGetLevelNode
  • cApiImageCheckCachedImageValidity
  • cApiImageCheckImageEditingPosibility
  • cApiImageGetCacheFileName
  • cApiImageGetTargetDimensions
  • cApiImageIsAnimGif
  • cApiImgScale
  • cApiImgScaleGetMD5CacheFile
  • cApiImgScaleHQ
  • cApiImgScaleImageMagick
  • cApiImgScaleLQ
  • cApiIsImageMagickAvailable
  • cApiStrCleanURLCharacters
  • cApiStrNormalizeLineEndings
  • cApiStrRecodeString
  • cApiStrReplaceDiacritics
  • cApiStrTrimAfterWord
  • cApiStrTrimHard
  • cApiStrTrimSentence
  • cDeprecated
  • cDie
  • cError
  • checkLangInClients
  • checkPathInformation
  • cInclude
  • compareUrlStrings
  • conChangeTemplateForCat
  • conCopyArticle
  • conCopyArtLang
  • conCopyContainerConf
  • conCopyContent
  • conCopyMetaTags
  • conCopyTemplateConfiguration
  • conCreateLocationString
  • conDeeperCategoriesArray
  • conDeleteart
  • conEditArt
  • conEditFirstTime
  • conFetchCategoryTree
  • conFlagOnOffline
  • conGenerateCode
  • conGenerateCodeForAllArts
  • conGenerateCodeForAllArtsInCategory
  • conGenerateCodeForAllartsUsingLayout
  • conGenerateCodeForAllartsUsingMod
  • conGenerateCodeForAllArtsUsingTemplate
  • conGenerateCodeForArtInAllCategories
  • conGenerateCodeForClient
  • conGenerateKeywords
  • conGetAvailableMetaTagTypes
  • conGetCategoryArticleId
  • conGetCategoryAssignments
  • conGetContainerConfiguration
  • conGetContentFromArticle
  • conGetHtmlTranslationTable
  • conGetMetaValue
  • conGetTemplateConfigurationIdForArticle
  • conGetTemplateConfigurationIdForCategory
  • conGetTopmostCat
  • conGetUsedModules
  • conHtmlentities
  • conHtmlEntityDecode
  • conHtmlSpecialChars
  • conIsLocked
  • conLock
  • conLockBulkEditing
  • conMakeArticleIndex
  • conMakeCatOnline
  • conMakeOnline
  • conMakeOnlineBulkEditing
  • conMakePublic
  • conMakeStart
  • conMoveArticles
  • conPhp54Check
  • conRemoveOldCategoryArticle
  • conSaveContentEntry
  • conSetCodeFlag
  • conSetCodeFlagBulkEditing
  • conSetMetaValue
  • conSyncArticle
  • copyRightsForElement
  • createBulkEditingFunction
  • createRandomName
  • createRightsForElement
  • cWarning
  • dbGetColumns
  • dbGetIndexes
  • dbGetPrimaryKeyName
  • dbTableExists
  • dbUpgradeTable
  • defineIfNotDefined
  • deleteArtspec
  • deleteRightsForElement
  • deleteSystemProperty
  • displayDatetime
  • emptyLogFile
  • endAndLogTiming
  • endsWith
  • extractNumber
  • generateDisplayFilePath
  • generateJs
  • getAktuellType
  • getAllClientsAndLanguages
  • getArtLang
  • getArtspec
  • getAvailableContentTypes
  • getCanonicalDay
  • getCanonicalMonth
  • getDirectorySize
  • getEffectiveSetting
  • getEffectiveSettingsByType
  • getEncodingByLanguage
  • getFileContents
  • getFileInformation
  • getFileType
  • getGroupOrUserName
  • getIDForArea
  • getJsHelpContext
  • getLanguageNamesByClient
  • getLanguagesByClient
  • getmicrotime
  • getNamedFrame
  • getParam
  • getParentAreaId
  • getSearchResults
  • getStrExpandCollapseButton
  • getSystemProperties
  • getSystemPropertiesByType
  • getSystemProperty
  • getTemplateSelect
  • getUplExpandCollapseButton
  • htmldecode
  • htmlentities_iso88592
  • humanReadableSize
  • includePlugins
  • insertEmptyStrRow
  • ipMatch
  • isAlphanumeric
  • isArchive
  • isArtInMultipleUse
  • isFunctionDisabled
  • isGroup
  • isIPv4
  • isRunningFromWeb
  • isStartArticle
  • isUtf8
  • isValidMail
  • langActivateDeactivateLanguage
  • langDeleteLanguage
  • langEditLanguage
  • langGetTextDirection
  • langNewLanguage
  • langRenameLanguage
  • layDeleteLayout
  • layEditLayout
  • machineReadableSize
  • mailLogBulkEditingFunctions
  • mailLogDecodeAddresses
  • markSubMenuItem
  • mask
  • modDeleteModule
  • modEditModule
  • modTestModule
  • phpInfoToHtml
  • plugin_include
  • prCreateURLNameLocationString
  • prDeleteCacheFileContent
  • prGetCacheFileContent
  • prResolvePathViaCategoryNames
  • prResolvePathViaURLNames
  • prWriteCacheFileContent
  • putFileContents
  • recursiveCopy
  • removeFileInformation
  • renderBackendBreadcrumb
  • renderLabel
  • renderSelectProperty
  • renderTextProperty
  • saveGroupRights
  • saveRights
  • scanDirectory
  • scanPlugins
  • sendEncodingHeader
  • set_magic_quotes_gpc
  • setArtspecDefault
  • setArtspecOnline
  • setHelpContext
  • setSystemProperty
  • showTree
  • startTiming
  • statCreateLocationString
  • statDisplayTopChooser
  • statDisplayYearlyTopChooser
  • statGetAvailableMonths
  • statGetAvailableYears
  • statResetStatistic
  • statsArchive
  • statsDisplayInfo
  • statsOverviewAll
  • statsOverviewTop
  • statsOverviewTopYear
  • statsOverviewYear
  • strAssignTemplate
  • strBuildSqlValues
  • strCheckTreeForErrors
  • strCopyCategory
  • strCopyTree
  • strDeeperCategoriesArray
  • strDeleteCategory
  • strHasArticles
  • strHasStartArticle
  • stripslashes_deep
  • strMakePublic
  • strMakeVisible
  • strMoveCatTargetallowed
  • strMoveDownCategory
  • strMoveSubtree
  • strMoveUpCategory
  • strNewCategory
  • strNewTree
  • strNextBackwards
  • strNextDeeper
  • strNextDeeperAll
  • strNextPost
  • strOrderedPostTreeList
  • strRemakeTreeTable
  • strRenameCategory
  • strRenameCategoryAlias
  • strSortPrePost
  • strSyncCategory
  • systemHavePerm
  • tplAutoFillModules
  • tplBrowseLayoutForContainers
  • tplcfgDuplicate
  • tplDeleteTemplate
  • tplDuplicateTemplate
  • tplEditTemplate
  • tplGetContainerDefault
  • tplGetContainerMode
  • tplGetContainerName
  • tplGetContainerTypes
  • tplGetInUsedData
  • tplIsTemplateInUse
  • tplPreparseLayout
  • updateClientCache
  • updateFileInformation
  • uplCreateFriendlyName
  • uplDirectoryListRecursive
  • uplGetDirectoriesToExclude
  • uplGetFileExtension
  • uplGetFileIcon
  • uplGetFileTypeDescription
  • uplGetThumbnail
  • uplHasFiles
  • uplHasSubdirs
  • uplmkdir
  • uplRecursiveDBDirectoryList
  • uplRecursiveDirectoryList
  • uplRenameDirectory
  • uplSearch
  • uplSyncDirectory
  • uplSyncDirectoryDBFS
  • xmlFileToArray
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cRegistry

This class contains functions for global interaction in CONTENIDO.

Package: Core\Backend
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
Methods summary
public static path
# 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

path
public static URL
# 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

URL
public static path
# 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

path
public static URL
# 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

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

cApiLanguage
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

cApiClient
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

cApiArticle
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

cApiArticleLanguage
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

cApiCategory
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

cApiCategoryLanguage
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

cApiCategoryArticle
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

cSession
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

cAuth
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

cPermission
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

cDb

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

cApiCecRegistry
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

$key
string
$key
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

Item

Throws

cInvalidArgumentException
if the given objectId is not greater than 0 or the given class does not exist
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

$message
string
message
public static
# addErrorMessage( string $message )

Stores an error massage in the cRegistry.

Stores an error massage in the cRegistry.

Parameters

$message
string
message
public static
# addWarningMessage( string $message )

Stores an warning massage in the cRegistry.

Stores an warning massage in the cRegistry.

Parameters

$message
string
message
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
Properties summary
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.

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.

Container for information messages.

protected static array $_errMessages array()
#

Container for error messages.

Container for error messages.

protected static array $_warnMessages array()
#

Container for warning messages.

Container for warning messages.

CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0