ZenMagick 0.9.10


zenmagick.store.sf.utils\ZMEventFixes
utils\ZMEventFixes.php at line 33

Class ZMEventFixes

ZMObject
└─ZMEventFixes

public class ZMEventFixes
extends ZMObject

Fixes and stuff that are (can be) event driven.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

protected void

checkAuthorization(mixed request)

Check authorization for the current account.

void

configureLocale(mixed request)

Set locale based on browser settings.

protected void

fixCategoryPath(mixed request)

Fix category path.

void

onNotifyCheckoutProcessAfterOrderCreateAddProducts(mixed args)

Create ZenMagick order created event that contains the order id.

void

onNotifyHeaderEndCheckoutShipping()

Validate addresses for guest checkout.

void

onNotifyHeaderStartCheckoutPayment()

Validate addresses for guest checkout.

void

onZMAllDone(mixed args)

Final cleanup.

void

onZMBootstrapDone(mixed args)

More store startup code.

void

onZMDispatchStart(mixed args)

Remove ajax requests from navigation history, grab zencart messages and fix free shipping.

void

onZMGenerateEmail(mixed args)

Fix email context for various emails.

void

onZMInitDone(mixed args)

Fake theme resolved event if using zen-cart templates and handle persisted messages.

void

onZMInitPluginGroupDone(mixed args)

Keep track of loaded plugins and make available to views - part I.

void

onZMViewStart(mixed args)

Keep track of loaded plugins and make available to views - part II.

protected void

sanitizeRequest(ZMRequest request)

Fix a number of things...

void

update(mixed eventId, mixed args)

Generic zen-cart event observer.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

utils\ZMEventFixes.php at line 40

__construct

public void __construct()

Create new instance.


utils\ZMEventFixes.php at line 467

checkAuthorization

protected void checkAuthorization(mixed request)

Check authorization for the current account.


utils\ZMEventFixes.php at line 479

configureLocale

public void configureLocale(mixed request)

Set locale based on browser settings.


utils\ZMEventFixes.php at line 420

fixCategoryPath

protected void fixCategoryPath(mixed request)

Fix category path.


utils\ZMEventFixes.php at line 386

onNotifyCheckoutProcessAfterOrderCreateAddProducts

public void onNotifyCheckoutProcessAfterOrderCreateAddProducts(mixed args)

Create ZenMagick order created event that contains the order id.


utils\ZMEventFixes.php at line 250

onNotifyHeaderEndCheckoutShipping

public void onNotifyHeaderEndCheckoutShipping()

Validate addresses for guest checkout.


utils\ZMEventFixes.php at line 269

onNotifyHeaderStartCheckoutPayment

public void onNotifyHeaderStartCheckoutPayment()

Validate addresses for guest checkout.


utils\ZMEventFixes.php at line 113

onZMAllDone

public void onZMAllDone(mixed args)

Final cleanup.


utils\ZMEventFixes.php at line 148

onZMBootstrapDone

public void onZMBootstrapDone(mixed args)

More store startup code.


utils\ZMEventFixes.php at line 281

onZMDispatchStart

public void onZMDispatchStart(mixed args)

Remove ajax requests from navigation history, grab zencart messages and fix free shipping.


utils\ZMEventFixes.php at line 298

onZMGenerateEmail

public void onZMGenerateEmail(mixed args)

Fix email context for various emails.


utils\ZMEventFixes.php at line 98

onZMInitDone

public void onZMInitDone(mixed args)

Fake theme resolved event if using zen-cart templates and handle persisted messages.


utils\ZMEventFixes.php at line 75

onZMInitPluginGroupDone

public void onZMInitPluginGroupDone(mixed args)

Keep track of loaded plugins and make available to views - part I.


utils\ZMEventFixes.php at line 86

onZMViewStart

public void onZMViewStart(mixed args)

Keep track of loaded plugins and make available to views - part II.


utils\ZMEventFixes.php at line 396

sanitizeRequest

protected void sanitizeRequest(ZMRequest request)

Fix a number of things...

Parameters:
request - The current request.

utils\ZMEventFixes.php at line 58

update

public void update(mixed eventId, mixed args)

Generic zen-cart event observer.

Implemented to generate some ZenMagick events triggered by zen-cart events.


ZenMagick 0.9.10