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 cPermission

This class handles the permission management

Package: Core\Backend
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Boris Erdmann, Kristian Koehntopp
Located at classes/class.permission.php
Methods summary
public array
# getGroupsForUser( string $userId )

Returns all groups of a user

Returns all groups of a user

Parameters

$userId
string
$userId

Returns

array
List of group ids
public integer
# getIDForArea( string|integer $area )

Returns the id of an area. If passed area is numeric, it will returned directly.

Returns the id of an area. If passed area is numeric, it will returned directly.

Parameters

$area
string|integer
$area

Returns

integer
public integer
# getIDForAction( string|integer $action )

Returns the id of an action. If passed action is numeric, it will returned directly.

Returns the id of an action. If passed action is numeric, it will returned directly.

Parameters

$action
string|integer
$action

Returns

integer
public string
# load_permissions( boolean $force = false )

Loads all permissions of groups where current logged in user is a member and saves them in session.

Loads all permissions of groups where current logged in user is a member and saves them in session.

Parameters

$force
boolean
$force Flag to force loading, event if they were ccached before

Returns

string
Returns diffrent values, depending on state: '1' (string) if permissions couldn't loaded '3' (string) if permissions were successfull loaded
public
# load_permissions_for_user( string $user )

Loads all permissions for a specific user or group. Stores area rights in global variable $area_rights. Stores item rights in global variable $item_rights.

Loads all permissions for a specific user or group. Stores area rights in global variable $area_rights. Stores item rights in global variable $item_rights.

Parameters

$user
string
$user User Id hash
public boolean
# have_perm_area_action_anyitem( string $area, string $action = 0 )

Parameters

$area
string
$area
$action
string
$action

Returns

boolean
public boolean
# have_perm_area_action_item( string $area, string $action, mixed $itemid )

Parameters

$area
string
$area
$action
string
$action
$itemid
mixed
$itemid

Returns

boolean
public Ambigous
# getParentAreaId( string $area )

Parameters

$area
string
$area

Returns

Ambigous
<string, int|string, mixed, unknown>
public boolean
# have_perm_area_action( string $area, string $action = 0 )

Parameters

$area
string
$area
$action
string
$action

Returns

boolean
public boolean
# have_perm_client_lang( integer $client, integer $lang )

Parameters

$client
integer
$client
$lang
integer
$lang

Returns

boolean
public boolean
# hasClientPermission( integer $iClient = false, object $oUser = false )

Checks if a user has access rights for a specific client.

Checks if a user has access rights for a specific client.

Parameters

$iClient
integer
$iClient idclient to check, or false for the current client
$oUser
object
$oUser User object to check against, or false for the current user

Returns

boolean
public boolean
# isClientUser( integer $iClient, object $oUser )

Checks if the given user has access permission for a client

Checks if the given user has access permission for a client

Parameters

$iClient
integer
$iClient idclient to check
$oUser
object
$oUser User object to check against

Returns

boolean
public boolean
# isClientGroup( integer $iClient, object $oGroup )

Checks if the given group has access permission for a client

Checks if the given group has access permission for a client

Parameters

$iClient
integer
$iClient idclient to check
$oGroup
object
$oGroup Group object to check against

Returns

boolean
public boolean
# isClientAdmin( integer $iClient, object $oUser )

Checks if the given user has an admin permission

Checks if the given user has an admin permission

Parameters

$iClient
integer
$iClient idclient to check
$oUser
object
$oUser User object to check against

Returns

boolean
public boolean
# isSysadmin( object $oUser )

Checks if the given user has sysadmin permission

Checks if the given user has sysadmin permission

Parameters

$oUser
object
$oUser User object to check against

Returns

boolean
private object
# _checkUserObject( object $oUser )

Checks if the given object is a user object.

Checks if the given object is a user object.

If oUser is false, initialize the object from the currently logged in user. If oUser is not an object of the class cApiUser, throw an exception.

Parameters

$oUser
object
$oUser User object

Returns

object

Throws

cInvalidArgumentException
if the given or constructed user is not a cApiUser object
public boolean
# have_perm_client( string $p = 'x' )

Parameters

$p
string
$p

Returns

boolean
public boolean
# have_perm( string $perm = 'x' )

Checks if user has permissions to passed perm.

  • Sysadmin has allways permission
  • Client admin has allways permission

Checks if user has permissions to passed perm.

  • Sysadmin has allways permission
  • Client admin has allways permission

Parameters

$perm
string
$p Permissions (comma separated list of perms) to check

Returns

boolean
public boolean
# have_perm_item( string|integer $mainarea, integer $itemid )

Checks if an item have any perms

Checks if an item have any perms

Parameters

$mainarea
string|integer
$mainarea
$itemid
integer
$itemid

Returns

boolean
public Ambigous
# showareas( string|integer $mainarea )

Parameters

$mainarea
string|integer
$mainarea

Returns

Ambigous
<number, string|int, multitype:, mixed, boolean>
Properties summary
public string $classname 'cPermission'
#

Permission class name

Permission class name

public array $areacache array()
#

Area cache

Area cache

public array $actioncache array()
#

Actions cache

Actions cache

public cDb $db
#

Database instance

Database instance

CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0