ZenMagick 0.9.8


org.zenmagick.store.services.Events
\store\services\Events.php at line 38

Class Events

ZMObject
└─ZMEvents
└─Events

public class Events
extends ZMEvents

Event service.

This service will relay *all* zen-cart events to registered listeners. Subscriber have to implement the same update(..) as for registering with zen-cart directly.

Author:
DerManoMann
Version:
$Id: Events.php 2694 2009-12-03 22:32:18Z dermanomann $

Field Summary
final str

ALL_DONE

final str

CONTROLLER_PROCESS_END

final str

CONTROLLER_PROCESS_START

final str

CREATE_ACCOUNT

final str

CREATE_ORDER

final str

DISPATCH_DONE

final str

DISPATCH_START

final str

FINALISE_CONTENTS

final str

GENERATE_EMAIL

final str

LOGIN_SUCCESS

final str

LOGOFF_SUCCESS

final str

PASSWORD_CHANGED

final str

THEME_RESOLVED

final str

VIEW_DONE

final str

VIEW_START

Fields inherited from org.zenmagick.core.services.misc.ZMEvents
BOOTSTRAP_DONE, INIT_DONE, INIT_PLUGIN_GROUP_DONE, eventLog_, subscribers_
Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

Events()

Create new instance.

Method Summary
void

update(mixed notifier, string eventId, array args)

Generic zen-cart observer callback that delegates to internal methods...

Methods inherited from org.zenmagick.core.services.misc.ZMEvents
attach, detach, event2method, fireEvent, getEventLog, instance
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Field Detail

\store\services\Events.php at line 45

ALL_DONE

public final str ALL_DONE = 'all_done'

\store\services\Events.php at line 44

CONTROLLER_PROCESS_END

public final str CONTROLLER_PROCESS_END = 'controller_process_end'

\store\services\Events.php at line 43

CONTROLLER_PROCESS_START

public final str CONTROLLER_PROCESS_START = 'controller_process_start'

\store\services\Events.php at line 49

CREATE_ACCOUNT

public final str CREATE_ACCOUNT = 'create_account'

\store\services\Events.php at line 53

CREATE_ORDER

public final str CREATE_ORDER = 'create_order'

\store\services\Events.php at line 40

DISPATCH_DONE

public final str DISPATCH_DONE = 'dispatch_done'

\store\services\Events.php at line 39

DISPATCH_START

public final str DISPATCH_START = 'dispatch_start'

\store\services\Events.php at line 46

FINALISE_CONTENTS

public final str FINALISE_CONTENTS = 'finalise_contents'

\store\services\Events.php at line 52

GENERATE_EMAIL

public final str GENERATE_EMAIL = 'generate_email'

\store\services\Events.php at line 50

LOGIN_SUCCESS

public final str LOGIN_SUCCESS = 'login_success'

\store\services\Events.php at line 51

LOGOFF_SUCCESS

public final str LOGOFF_SUCCESS = 'logoff_success'

\store\services\Events.php at line 54

PASSWORD_CHANGED

public final str PASSWORD_CHANGED = 'password_changed'

\store\services\Events.php at line 48

THEME_RESOLVED

public final str THEME_RESOLVED = 'theme_resolved'

\store\services\Events.php at line 42

VIEW_DONE

public final str VIEW_DONE = 'view_done'

\store\services\Events.php at line 41

VIEW_START

public final str VIEW_START = 'view_start'

Constructor Detail

\store\services\Events.php at line 60

Events

public Events()

Create new instance.


Method Detail

\store\services\Events.php at line 83

update

public void update(mixed notifier, string eventId, array args)

Generic zen-cart observer callback that delegates to internal methods...

The actual method called is generated based on the event id.

Parameters:
notifier - The event source.
eventId - The event id.
args - Optional parameter; default is null.

ZenMagick 0.9.8