Events
Introduction
ZEDx includes a variety of events.
Whenever something of importance is about to happen, is happening, or has just happened, ZEDx fires an Event
. As an Extension developer, your job is pretty simple: listen
for the events you're interested in, and react accordingly.
For example:
- When an
Ad
is validated by an Administrator, ZEDx fires theAdWasValidated
event. A "Twitter Feed" Extension could listen for this event and react by sending a tweet with the ad's title and URL. - When an
Ad
is about to be created by a user, ZEDx fires theAdWillBeCreated
event. A "NoSpam" Extension could listen for this event and react by checking the Ad content.
Get the idea? Great!
Available Events
Ad
AdRenewRequested AdWasBanned AdWasCreated AdWasDeleted AdWasExpired AdWasHold AdWasUpdated AdWasValidated AdWillBeCreated AdWillBeDeleted AdWillBeDisplayed AdWillBeModerated AdWillBePreviewed AdWillBeUpdated
Admin
Adtype
AdtypeWasCreated AdtypeWasDeleted AdtypeWasPurchased AdtypeWasUpdated AdtypeWillBeCreated AdtypeWillBeDeleted AdtypeWillBeUpdated
Cache
CacheAdminWasUpdated CacheAdtypeWasUpdated CacheAdWasUpdated CacheCategoryWasUpdated CacheFieldWasUpdated CacheIpWasUpdated CacheMenuWasUpdated CachePageWasUpdated CacheSettingWasUpdated CacheSubscriptionWasUpdated CacheTemplateWasUpdated CacheUserWasUpdated
Category
Field
Ip
Menu
Page
PageTemplateWasSwitched PageThemeelementWasAttached PageThemeelementWasDetached PageWasCreated PageWasDeleted PageWasUpdated PageWillBeCreated PageWillBeUpdated
Payment
Search Engine
Setting
Subscription
SubscriptionWasCreated SubscriptionWasDeleted SubscriptionWasPurchased SubscriptionWasSwaped SubscriptionWasUpdated SubscriptionWillBeCreated SubscriptionWillBeUpdated
Template
TemplateWasCreated TemplateWasDeleted TemplateWasUpdated TemplateWillBeCreated TemplateWillBeUpdated