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

  • ArticleForum
  • cGenericDb
  • cGenericDbDriver
  • cGenericDbDriverMysql
  • cItemBaseAbstract
  • cItemCache
  • Item
  • ItemCollection
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cGenericDb

Class cGenericDb. Handles the generic execution of callbacks.

Direct known subclasses

cItemBaseAbstract

Indirect known subclasses

ArticleForum, ArticleForumCollection, cApiArticleCollection, cApiTemplateCollection, cApiTemplateConfiguration, cApiTemplateConfigurationCollection, cApiType, cApiTypeCollection, cApiUpload, cApiUploadCollection, cApiUploadMeta, cApiUploadMetaCollection, cApiUser, cApiArticleLanguage, cApiUserCollection, cApiUserPasswordRequest, cApiUserPasswordRequestCollection, cApiUserProperty, cApiUserPropertyCollection, Item, ItemCollection, Newsletter, NewsletterCollection, NewsletterJob, cApiArticleLanguageCollection, NewsletterJobCollection, NewsletterLog, NewsletterLogCollection, NewsletterRecipient, NewsletterRecipientCollection, NewsletterRecipientGroup, NewsletterRecipientGroupCollection, NewsletterRecipientGroupMember, NewsletterRecipientGroupMemberCollection, NoteCollection, cApiArticleSpecification, NoteItem, PifaField, PifaFieldCollection, PifaForm, PifaFormCollection, PimPlugin, PimPluginCollection, PimPluginRelations, PimPluginRelationsCollection, TODOCollection, cApiArticleSpecificationCollection, TODOItem, Workflow, WorkflowAction, WorkflowActions, WorkflowAllocation, WorkflowAllocations, WorkflowArtAllocation, WorkflowArtAllocations, WorkflowItem, WorkflowItems, cApiCategory, Workflows, WorkflowTask, WorkflowTasks, WorkflowUserSequence, WorkflowUserSequences, cApiCategoryArticle, cApiCategoryArticleCollection, cApiCategoryCollection, cApiCategoryLanguage, ArticleForumItem, cApiCategoryLanguageCollection, cApiCategoryTree, cApiCategoryTreeCollection, cApiClient, cApiClientCollection, cApiClientLanguage, cApiClientLanguageCollection, cApiCommunication, cApiCommunicationCollection, cApiContainer, cApiAction, cApiContainerCollection, cApiContainerConfiguration, cApiContainerConfigurationCollection, cApiContent, cApiContentCollection, cApiDbfs, cApiDbfsCollection, cApiFile, cApiFileCollection, cApiFileInformation, cApiActionCollection, cApiFileInformationCollection, cApiFrameFile, cApiFrameFileCollection, cApiFrontendGroup, cApiFrontendGroupCollection, cApiFrontendGroupMember, cApiFrontendGroupMemberCollection, cApiFrontendPermission, cApiFrontendPermissionCollection, cApiFrontendUser, cApiActionlog, cApiFrontendUserCollection, cApiGroup, cApiGroupCollection, cApiGroupMember, cApiGroupMemberCollection, cApiGroupProperty, cApiGroupPropertyCollection, cApiInUse, cApiInUseCollection, cApiIso3166, cApiActionlogCollection, cApiIso3166Collection, cApiIso6392, cApiIso6392Collection, cApiKeyword, cApiKeywordCollection, cApiLanguage, cApiLanguageCollection, cApiLayout, cApiLayoutCollection, cApiMailLog, cApiArea, cApiMailLogCollection, cApiMailLogSuccess, cApiMailLogSuccessCollection, cApiMetaTag, cApiMetaTagCollection, cApiMetaType, cApiMetaTypeCollection, cApiModule, cApiModuleCollection, cApiNavMain, cApiAreaCollection, cApiNavMainCollection, cApiNavSub, cApiNavSubCollection, cApiOnlineUser, cApiOnlineUserCollection, cApiPathresolveCache, cApiPathresolveCacheCollection, cApiProperty, cApiPropertyCollection, cApiRight, cApiArticle, cApiRightCollection, cApiSearchTracking, cApiSearchTrackingCollection, cApiShortUrl, cApiShortUrlCollection, cApiStat, cApiStatCollection, cApiSystemProperty, cApiSystemPropertyCollection, cApiTemplate
Package: Core\GenericDB
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Dominik Ziegler
Located at classes/genericdb/class.genericdb.php
Methods summary
public static
# register( string $event, mixed $callback, mixed $class )

Registers a new callback.

Registers a new callback.

Example: cGenericDb::register(cGenericDb::CREATE_SUCCESS, 'itemCreateHandler', 'cApiArticle'); cGenericDb::register(cGenericDb::CREATE_SUCCESS, array('cCallbackHandler', 'executeCreateHandle'), 'cApiArticle');

Parameters

$event

Callback event, must be a valid value of a cGenericDb event constant

$callback
Callback to register
$class

Class name for registering callback (can be string of array with names of the concrete Item classes)

Throws

cInvalidArgumentException

if event or class are not set or the callback is not callable

public static
# unregister( string $event, mixed $class )

Unregisters all callbacks for a specific event in a class.

Unregisters all callbacks for a specific event in a class.

Example: cGenericDb::unregister(cGenericDb::CREATE_SUCCESS, 'cApiArticle');

Parameters

$event

Callback event, must be a valid value of a cGenericDb event constant

$class

Class name for unregistering callback (can be string of array with names of the concrete Item classes)

Throws

cInvalidArgumentException
if the event or the class are not set
final protected
# _executeCallbacks( string $event, string $class, array $arguments = array() )

Executes all callbacks for a specific event in a class.

Executes all callbacks for a specific event in a class.

Parameters

$event

Callback event, must be a valid value of a cGenericDb event constant

$class
Class name for executing callback
$arguments
Arguments to pass to the callback function

Throws

cInvalidArgumentException
if the event or class is not set
Constants summary
integer CREATE_BEFORE

Callbacks are executed before a item is created. Expected parameters for callback: none

Callbacks are executed before a item is created. Expected parameters for callback: none

# 10
integer CREATE_FAILURE

Callbacks are executed if item could not be created. Expected parameters for callback: none

Callbacks are executed if item could not be created. Expected parameters for callback: none

# 11
integer CREATE_SUCCESS

Callbacks are executed if item could be created successfully. Expected parameters for callback: ID of created item

Callbacks are executed if item could be created successfully. Expected parameters for callback: ID of created item

# 12
integer STORE_BEFORE

Callbacks are executed before store process is executed. Expected parameters for callback: Item instance

Callbacks are executed before store process is executed. Expected parameters for callback: Item instance

# 20
integer STORE_FAILURE

Callbacks are executed if store process failed. This is also likely to happen if query would not change anything in database! Expected parameters for callback: Item instance

Callbacks are executed if store process failed. This is also likely to happen if query would not change anything in database! Expected parameters for callback: Item instance

# 21
integer STORE_SUCCESS

Callbacks are executed if store process saved the values in the database. Expected parameters for callback: Item instance

Callbacks are executed if store process saved the values in the database. Expected parameters for callback: Item instance

# 22
integer DELETE_BEFORE

Callbacks are executed before deleting an item. Expected parameters for callback: ID of them item to delete

Callbacks are executed before deleting an item. Expected parameters for callback: ID of them item to delete

# 30
integer DELETE_FAILURE

Callbacks are executed if deletion of an item fails. Expected parameters for callback: ID of them item to delete

Callbacks are executed if deletion of an item fails. Expected parameters for callback: ID of them item to delete

# 31
integer DELETE_SUCCESS

Callbacks are executed if item was deleted successfully. Expected parameters for callback: ID of them item to delete

Callbacks are executed if item was deleted successfully. Expected parameters for callback: ID of them item to delete

# 32
Properties summary
private static array $_callbacks

Callback stack.

Callback stack.

# array()
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen