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

  • cApiAction
  • cApiActionCollection
  • cApiActionlog
  • cApiActionlogCollection
  • cApiArea
  • cApiAreaCollection
  • cApiArticle
  • cApiArticleCollection
  • cApiArticleLanguage
  • cApiArticleLanguageCollection
  • cApiArticleSpecification
  • cApiArticleSpecificationCollection
  • cApiCategory
  • cApiCategoryArticle
  • cApiCategoryArticleCollection
  • cApiCategoryCollection
  • cApiCategoryLanguage
  • cApiCategoryLanguageCollection
  • cApiCategoryTree
  • cApiCategoryTreeCollection
  • cApiClient
  • cApiClientCollection
  • cApiClientLanguage
  • cApiClientLanguageCollection
  • cApiCommunication
  • cApiCommunicationCollection
  • cApiContainer
  • cApiContainerCollection
  • cApiContainerConfiguration
  • cApiContainerConfigurationCollection
  • cApiContent
  • cApiContentCollection
  • cApiDbfs
  • cApiDbfsCollection
  • cApiFile
  • cApiFileCollection
  • cApiFileInformation
  • cApiFileInformationCollection
  • cApiFrameFile
  • cApiFrameFileCollection
  • cApiFrontendGroup
  • cApiFrontendGroupCollection
  • cApiFrontendGroupMember
  • cApiFrontendGroupMemberCollection
  • cApiFrontendPermission
  • cApiFrontendPermissionCollection
  • cApiFrontendUser
  • cApiFrontendUserCollection
  • cApiGroup
  • cApiGroupCollection
  • cApiGroupMember
  • cApiGroupMemberCollection
  • cApiGroupProperty
  • cApiGroupPropertyCollection
  • cApiInUse
  • cApiInUseCollection
  • cApiIso3166
  • cApiIso3166Collection
  • cApiIso6392
  • cApiIso6392Collection
  • cApiKeyword
  • cApiKeywordCollection
  • cApiLanguage
  • cApiLanguageCollection
  • cApiLayout
  • cApiLayoutCollection
  • cApiMailLog
  • cApiMailLogCollection
  • cApiMailLogSuccess
  • cApiMailLogSuccessCollection
  • cApiMetaTag
  • cApiMetaTagCollection
  • cApiMetaType
  • cApiMetaTypeCollection
  • cApiModule
  • cApiModuleCollection
  • cApiNavMain
  • cApiNavMainCollection
  • cApiNavSub
  • cApiNavSubCollection
  • cApiOnlineUser
  • cApiOnlineUserCollection
  • cApiPathresolveCache
  • cApiPathresolveCacheCollection
  • cApiProperty
  • cApiPropertyCollection
  • cApiRight
  • cApiRightCollection
  • cApiStat
  • cApiStatCollection
  • cApiSystemProperty
  • cApiSystemPropertyCollection
  • cApiTemplate
  • cApiTemplateCollection
  • cApiTemplateConfiguration
  • cApiTemplateConfigurationCollection
  • cApiType
  • cApiTypeCollection
  • cApiUpload
  • cApiUploadCollection
  • cApiUploadMeta
  • cApiUploadMetaCollection
  • cApiUser
  • cApiUserCollection
  • cApiUserProperty
  • cApiUserPropertyCollection
  • NoteCollection
  • NoteItem
  • TODOCollection
  • TODOItem
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cApiInUseCollection

Class InUse Class for In-Use management

cGenericDb
Extended by cItemBaseAbstract
Extended by ItemCollection
Extended by cApiInUseCollection
Package: Core\GenericDB\Model
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at classes/contenido/class.inuse.php
Methods summary
public
# __construct( )

Constructor Function

Constructor Function

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

ItemCollection::__construct()
public cApiInUse|null
# markInUse( string $type, mixed $objectid, string $session, string $user )

Marks a specific object as "in use". Note that items are released when the session is destroyed. Currently, the following types are defined and approved as internal CONTENIDO standard: - article - module - layout - template

Marks a specific object as "in use". Note that items are released when the session is destroyed. Currently, the following types are defined and approved as internal CONTENIDO standard: - article - module - layout - template

Parameters

$type
string
$type Specifies the type to mark.
$objectid
mixed
$objectid Specifies the object ID
$session
string
$session Specifies the session for which the "in use" mark is valid
$user
string
$user Specifies the user which requested the in-use flag

Returns

cApiInUse|null
public
# removeMark( string $type, mixed $objectid, string $session )

Removes the "in use" mark from a specific object.

Removes the "in use" mark from a specific object.

Parameters

$type
string
$type Specifies the type to de-mark.
$objectid
mixed
$objectid Specifies the object ID
$session
string
$session Specifies the session for which the "in use" mark is valid
public
# removeTypeMarks( string $type, string $session )

Removes all marks for a specific type and session

Removes all marks for a specific type and session

Parameters

$type
string
$type Specifies the type to de-mark.
$session
string
$session Specifies the session for which the "in use" mark is valid
public
# removeItemMarks( string $type, string $itemid )

Removes the mark for a specific item

Removes the mark for a specific item

Parameters

$type
string
$type Specifies the type to de-mark.
$itemid
string
$itemid Specifies the item
public
# removeUserMarks( string $userId )

Removes all in-use marks for a specific userId

Removes all in-use marks for a specific userId

Parameters

$userId
string
$userId Specifies the user
public
# removeOldMarks( )

Removes all inuse entries which are older than the inuse timeout

Removes all inuse entries which are older than the inuse timeout

public
# removeSessionMarks( string $session )

Removes all in-use marks for a specific session.

Removes all in-use marks for a specific session.

Parameters

$session
string
$session Specifies the session for which the "in use" marks should be removed
public cApiInUse
# checkMark( string $type, mixed $objectid )

Checks if a specific item is marked

Checks if a specific item is marked

Parameters

$type
string
$type Specifies the type to de-mark.
$objectid
mixed
$objectid Specifies the object ID

Returns

cApiInUse
bool false if it's not in use or returns the object if it is.
public boolean
# checkAndMark( string $type, mixed $objectid, boolean $returnWarning = false, string $warningTemplate = '', boolean $allowOverride = false, string $location = '' )

Checks and marks if not marked. Example: Check for "idmod", also return a lock message: list($inUse, $message) = $col->checkAndMark("idmod", $idmod, true, i18n("Module is in use by %s (%s)")); Example 2: Check for "idmod", don't return a lock message $inUse = $col->checkAndMark("idmod", $idmod);

Checks and marks if not marked. Example: Check for "idmod", also return a lock message: list($inUse, $message) = $col->checkAndMark("idmod", $idmod, true, i18n("Module is in use by %s (%s)")); Example 2: Check for "idmod", don't return a lock message $inUse = $col->checkAndMark("idmod", $idmod);

Parameters

$type
string
$type Specifies the type to de-mark.
$objectid
mixed
$objectid Specifies the object ID
$returnWarning
boolean
$returnWarning If true, also returns an error message if in use
$warningTemplate
string
$warningTemplate String to fill with the template (%s as placeholder, first %s is the username, second is the real name)
$allowOverride
boolean
$allowOverride True if the user can override the lock
$location
string
$location Value to append to the override lock button

Returns

boolean
array returnWarning is false, returns a bool value wether the object is locked. If returnWarning is true, returns a 2 item array (bool inUse, string errormessage).
Methods inherited from ItemCollection
_buildGroupWhereStatements(), _buildWhereStatements(), _delete(), _deleteMultiple(), _fetchJoinTables(), _findReverseJoinPartner(), _initializeDriver(), _recursiveStructuredFetch(), _resolveLinks(), _setItemClass(), _setJoinPartner(), addResultField(), copyItem(), count(), createNewItem(), delete(), deleteBy(), deleteByWhereClause(), deleteWhere(), deleteWhereGroup(), exists(), fetchArray(), fetchById(), fetchObject(), fetchTable(), flexSelect(), getAllIds(), getFieldsByWhereClause(), getIdsByWhereClause(), link(), loadItem(), next(), query(), queryAndFetchStructured(), removeResultField(), resetQuery(), select(), setEncoding(), setGroupCondition(), setInnerGroupCondition(), setLimit(), setOrder(), setWhere(), setWhereGroup()
Methods inherited from cItemBaseAbstract
_getPropertiesCollectionInstance(), _getSecondDBInstance(), escape()
Methods inherited from cGenericDb
_executeCallbacks(), register(), unregister()
Constants inherited from cGenericDb
CREATE_BEFORE, CREATE_FAILURE, CREATE_SUCCESS, DELETE_BEFORE, DELETE_FAILURE, DELETE_SUCCESS, STORE_BEFORE, STORE_FAILURE, STORE_SUCCESS
Properties inherited from ItemCollection
$_JoinPartners, $_aOperators, $_bAllMode, $_collectionCache, $_driver, $_encoding, $_forwardJoinPartners, $_groupConditions, $_innerGroupConditions, $_itemClass, $_itemClassInstance, $_iteratorItem, $_lastSQL, $_limitCount, $_limitStart, $_links, $_order, $_resultFields, $_where, $_whereRestriction, $objects
Properties inherited from cItemBaseAbstract
$_className, $_oCache, $_settings, $db, $lasterror, $primaryKey, $properties, $secondDb, $table, $virgin
CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0