ZenMagick 0.9.10


zenmagick.store.shared.services\Events
services\Events.php at line 34

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

Constant Summary
final static str

ALL_DONE

final static str

CONTROLLER_PROCESS_END

final static str

CONTROLLER_PROCESS_START

final static str

CREATE_ACCOUNT

final static str

CREATE_ORDER

final static str

DISPATCH_DONE

final static str

DISPATCH_START

final static str

FINALISE_CONTENTS

final static str

GENERATE_EMAIL

final static str

LOGIN_SUCCESS

final static str

LOGOFF_SUCCESS

final static str

PASSWORD_CHANGED

final static str

SEARCH

final static str

THEME_RESOLVED

final static str

VIEW_DONE

final static str

VIEW_START

Fields inherited from org.zenmagick.core.services.misc\ZMEvents
eventLog_, subscribers_
Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

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
__construct, attach, detach, event2method, fireEvent, getEventLog, instance
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Constant Detail

services\Events.php at line 41

ALL_DONE

public final static str ALL_DONE = 'all_done'

services\Events.php at line 40

CONTROLLER_PROCESS_END

public final static str CONTROLLER_PROCESS_END = 'controller_process_end'

services\Events.php at line 39

CONTROLLER_PROCESS_START

public final static str CONTROLLER_PROCESS_START = 'controller_process_start'

services\Events.php at line 45

CREATE_ACCOUNT

public final static str CREATE_ACCOUNT = 'create_account'

services\Events.php at line 49

CREATE_ORDER

public final static str CREATE_ORDER = 'create_order'

services\Events.php at line 36

DISPATCH_DONE

public final static str DISPATCH_DONE = 'dispatch_done'

services\Events.php at line 35

DISPATCH_START

public final static str DISPATCH_START = 'dispatch_start'

services\Events.php at line 42

FINALISE_CONTENTS

public final static str FINALISE_CONTENTS = 'finalise_contents'

services\Events.php at line 48

GENERATE_EMAIL

public final static str GENERATE_EMAIL = 'generate_email'

services\Events.php at line 46

LOGIN_SUCCESS

public final static str LOGIN_SUCCESS = 'login_success'

services\Events.php at line 47

LOGOFF_SUCCESS

public final static str LOGOFF_SUCCESS = 'logoff_success'

services\Events.php at line 50

PASSWORD_CHANGED

public final static str PASSWORD_CHANGED = 'password_changed'

services\Events.php at line 51
public final static str SEARCH = 'search'

services\Events.php at line 44

THEME_RESOLVED

public final static str THEME_RESOLVED = 'theme_resolved'

services\Events.php at line 38

VIEW_DONE

public final static str VIEW_DONE = 'view_done'

services\Events.php at line 37

VIEW_START

public final static str VIEW_START = 'view_start'

Method Detail

services\Events.php at line 57

__construct

public void __construct()

Create new instance.


services\Events.php at line 80

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.10