Class cGenericDb
Class cGenericDb. Handles the generic execution of callbacks.
Direct known subclasses
cItemBaseAbstractIndirect known subclasses
ArticleForum, ArticleForumCollection, cApiArticleCollection, cApiShortUrlCollection, cApiStat, cApiStatCollection, cApiSystemProperty, cApiSystemPropertyCollection, cApiTemplate, cApiTemplateCollection, cApiTemplateConfiguration, cApiTemplateConfigurationCollection, cApiType, cApiArticleLanguage, cApiTypeCollection, cApiUpload, cApiUploadCollection, cApiUploadMeta, cApiUploadMetaCollection, cApiUser, cApiUserCollection, cApiUserPasswordRequest, cApiUserPasswordRequestCollection, cApiUserProperty, cApiArticleLanguageCollection, cApiUserPropertyCollection, Item, ItemCollection, Newsletter, NewsletterCollection, NewsletterJob, NewsletterJobCollection, NewsletterLog, NewsletterLogCollection, NewsletterRecipient, cApiArticleLanguageVersion, NewsletterRecipientCollection, NewsletterRecipientGroup, NewsletterRecipientGroupCollection, NewsletterRecipientGroupMember, NewsletterRecipientGroupMemberCollection, NoteCollection, NoteItem, PifaField, PifaFieldCollection, PifaForm, cApiArticleLanguageVersionCollection, PifaFormCollection, PimPlugin, PimPluginCollection, PimPluginRelations, PimPluginRelationsCollection, TODOCollection, TODOItem, Workflow, WorkflowAction, WorkflowActions, cApiArticleSpecification, WorkflowAllocation, WorkflowAllocations, WorkflowArtAllocation, WorkflowArtAllocations, WorkflowItem, WorkflowItems, Workflows, WorkflowTask, WorkflowTasks, WorkflowUserSequence, cApiArticleSpecificationCollection, WorkflowUserSequences, cApiCategory, cApiCategoryArticle, cApiCategoryArticleCollection, ArticleForumItem, cApiCategoryCollection, cApiCategoryLanguage, cApiCategoryLanguageCollection, cApiCategoryTree, cApiCategoryTreeCollection, cApiClient, cApiClientCollection, cApiClientLanguage, cApiClientLanguageCollection, cApiCommunication, cApiAction, cApiCommunicationCollection, cApiContainer, cApiContainerCollection, cApiContainerConfiguration, cApiContainerConfigurationCollection, cApiContent, cApiContentCollection, cApiContentVersion, cApiContentVersionCollection, cApiDbfs, cApiActionCollection, cApiDbfsCollection, cApiFile, cApiFileCollection, cApiFileInformation, cApiFileInformationCollection, cApiFrameFile, cApiFrameFileCollection, cApiFrontendGroup, cApiFrontendGroupCollection, cApiFrontendGroupMember, cApiActionlog, cApiFrontendGroupMemberCollection, cApiFrontendPermission, cApiFrontendPermissionCollection, cApiFrontendUser, cApiFrontendUserCollection, cApiGroup, cApiGroupCollection, cApiGroupMember, cApiGroupMemberCollection, cApiGroupProperty, cApiActionlogCollection, cApiGroupPropertyCollection, cApiInUse, cApiInUseCollection, cApiIso3166, cApiIso3166Collection, cApiIso6392, cApiIso6392Collection, cApiKeyword, cApiKeywordCollection, cApiLanguage, cApiArea, cApiLanguageCollection, cApiLayout, cApiLayoutCollection, cApiMailLog, cApiMailLogCollection, cApiMailLogSuccess, cApiMailLogSuccessCollection, cApiMetaTag, cApiMetaTagCollection, cApiMetaTagVersion, cApiAreaCollection, cApiMetaTagVersionCollection, cApiMetaType, cApiMetaTypeCollection, cApiModule, cApiModuleCollection, cApiNavMain, cApiNavMainCollection, cApiNavSub, cApiNavSubCollection, cApiOnlineUser, cApiArticle, cApiOnlineUserCollection, cApiPathresolveCache, cApiPathresolveCacheCollection, cApiProperty, cApiPropertyCollection, cApiRight, cApiRightCollection, cApiSearchTracking, cApiSearchTrackingCollection, cApiShortUrlCopyright: 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
|
10 |
#
Callbacks are executed before a item is created. Expected parameters for callback: none |
integer |
CREATE_FAILURE
|
11 |
#
Callbacks are executed if item could not be created. Expected parameters for callback: none |
integer |
CREATE_SUCCESS
|
12 |
#
Callbacks are executed if item could be created successfully. Expected parameters for callback: ID of created item |
integer |
STORE_BEFORE
|
20 |
#
Callbacks are executed before store process is executed. Expected parameters for callback: Item instance |
integer |
STORE_FAILURE
|
21 |
#
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 |
integer |
STORE_SUCCESS
|
22 |
#
Callbacks are executed if store process saved the values in the database. Expected parameters for callback: Item instance |
integer |
DELETE_BEFORE
|
30 |
#
Callbacks are executed before deleting an item. Expected parameters for callback: ID of them item to delete |
integer |
DELETE_FAILURE
|
31 |
#
Callbacks are executed if deletion of an item fails. Expected parameters for callback: ID of them item to delete |
integer |
DELETE_SUCCESS
|
32 |
#
Callbacks are executed if item was deleted successfully. Expected parameters for callback: ID of them item to delete |
private static
array
|
$_callbacks | array() |
#
Callback stack. |