ZenMagick 0.9.8


org.zenmagick.store.utils.ZMEventFixes
\store\utils\ZMEventFixes.php at line 34

Class ZMEventFixes

ZMObject
└─ZMEventFixes

public class ZMEventFixes
extends ZMObject

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

Author:
DerManoMann
Version:
$Id: ZMEventFixes.php 2754 2009-12-17 23:14:34Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMEventFixes()

Create new instance.

Method Summary
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.

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
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\utils\ZMEventFixes.php at line 41

ZMEventFixes

public ZMEventFixes()

Create new instance.


Method Detail

\store\utils\ZMEventFixes.php at line 420

checkAuthorization

protected void checkAuthorization(mixed request)

Check authorization for the current account.


\store\utils\ZMEventFixes.php at line 432

configureLocale

public void configureLocale(mixed request)

Set locale based on browser settings.


\store\utils\ZMEventFixes.php at line 373

fixCategoryPath

protected void fixCategoryPath(mixed request)

Fix category path.


\store\utils\ZMEventFixes.php at line 341

onNotifyCheckoutProcessAfterOrderCreateAddProducts

public void onNotifyCheckoutProcessAfterOrderCreateAddProducts(mixed args)

Create ZenMagick order created event that contains the order id.


\store\utils\ZMEventFixes.php at line 212

onNotifyHeaderEndCheckoutShipping

public void onNotifyHeaderEndCheckoutShipping()

Validate addresses for guest checkout.


\store\utils\ZMEventFixes.php at line 231

onNotifyHeaderStartCheckoutPayment

public void onNotifyHeaderStartCheckoutPayment()

Validate addresses for guest checkout.


\store\utils\ZMEventFixes.php at line 113

onZMAllDone

public void onZMAllDone(mixed args)

Final cleanup.


\store\utils\ZMEventFixes.php at line 132

onZMBootstrapDone

public void onZMBootstrapDone(mixed args)

More store startup code.


\store\utils\ZMEventFixes.php at line 243

onZMDispatchStart

public void onZMDispatchStart(mixed args)

Remove ajax requests from navigation history.


\store\utils\ZMEventFixes.php at line 254

onZMGenerateEmail

public void onZMGenerateEmail(mixed args)

Fix email context for various emails.


\store\utils\ZMEventFixes.php at line 99

onZMInitDone

public void onZMInitDone(mixed args)

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


\store\utils\ZMEventFixes.php at line 76

onZMInitPluginGroupDone

public void onZMInitPluginGroupDone(mixed args)

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


\store\utils\ZMEventFixes.php at line 87

onZMViewStart

public void onZMViewStart(mixed args)

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


\store\utils\ZMEventFixes.php at line 351

sanitizeRequest

protected void sanitizeRequest(ZMRequest request)

Fix a number of things...

Parameters:
request - The current request.

\store\utils\ZMEventFixes.php at line 59

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