Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • 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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

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

Functions

  • addArtspec
  • 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
  • conGetAvailableMetaTagTypes
  • conGetCategoryArticleId
  • conGetCategoryAssignments
  • conGetContainerConfiguration
  • conGetContentFromArticle
  • conGetHtmlTranslationTable
  • conGetMetaValue
  • conGetTemplateConfigurationIdForArticle
  • conGetTemplateConfigurationIdForCategory
  • conGetTopmostCat
  • conGetUsedModules
  • conHtmlentities
  • conHtmlEntityDecode
  • conHtmlSpecialChars
  • conIsLocked
  • conLock
  • conLockBulkEditing
  • conMakeArticleIndex
  • conMakeCatOnline
  • conMakeInlineScript
  • 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
  • extractNumber
  • generateDisplayFilePath
  • generateJs
  • 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
  • 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
  • setSystemProperty
  • showTree
  • startTiming
  • statCreateLocationString
  • statDisplayTopChooser
  • statDisplayYearlyTopChooser
  • statGetAvailableMonths
  • statGetAvailableYears
  • statResetStatistic
  • statsArchive
  • statsDisplayInfo
  • statsOverviewAll
  • statsOverviewTop
  • statsOverviewTopYear
  • statsOverviewYear
  • strAssignTemplate
  • strBuildSqlValues
  • strCheckTreeForErrors
  • strCopyCategory
  • strCopyTree
  • strDeeperCategoriesArray
  • strDeleteCategory
  • strHasArticles
  • strHasStartArticle
  • 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
  • tplGetContainerNumbersInLayout
  • tplGetContainerTypes
  • tplGetInUsedData
  • tplIsTemplateInUse
  • tplPreparseLayout
  • tplProcessSendContainerConfiguration
  • updateClientCache
  • updateFileInformation
  • uplCreateFriendlyName
  • uplDirectoryListRecursive
  • uplGetDirectoriesToExclude
  • uplGetFileExtension
  • uplGetFileIcon
  • uplGetFileTypeDescription
  • uplGetThumbnail
  • uplHasFiles
  • uplHasSubdirs
  • uplmkdir
  • uplRecursiveDBDirectoryList
  • uplRecursiveDirectoryList
  • uplRenameDirectory
  • uplSearch
  • uplSyncDirectory
  • uplSyncDirectoryDBFS
  • Overview
  • Package
  • Class
  • Todo
  • Download

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

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

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

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

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
User Id hash
public boolean
# have_perm_area_action_anyitem( string $area, string $action = 0 )

Parameters

$area
$action

Returns

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

Parameters

$area
$action
$itemid

Returns

boolean
public Ambigous
# getParentAreaId( string $area )

Parameters

$area

Returns

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

Parameters

$area
$action

Returns

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

Parameters

$client
$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
idclient to check, or false for the current client
$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
idclient to check
$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
idclient to check
$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
idclient to check
$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
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
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

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
$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
$itemid

Returns

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

Parameters

$mainarea

Returns

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

Permission class name

Permission class name

# 'cPermission'
public array $areacache

Area cache

Area cache

# array()
public array $actioncache

Actions cache

Actions cache

# array()
public cDb $db

Database instance

Database instance

#
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen