Class cGenericDb
Class cGenericDb. Handles the generic execution of callbacks.
Direct known subclasses
cItemBaseAbstractIndirect 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, cApiTemplateCopyright: 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
public static
|
|
public static
|
#
unregister( string $event, mixed $class )
Unregisters all callbacks for a specific event in a class. |
final protected
|
#
_executeCallbacks( string $event, string $class, array $arguments = array() )
Executes all callbacks for a specific event in a class. |
integer |
CREATE_BEFORE
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 |
#
11
|
integer |
CREATE_SUCCESS
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 |
#
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 |
#
21
|
integer |
STORE_SUCCESS
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 |
#
30
|
integer |
DELETE_FAILURE
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 |
#
32
|
private static
array
|
$_callbacks
Callback stack. |
#
array()
|