ZenMagick 0.9.6


org.zenmagick.plugins.types.ZMOrderTotalPlugin

Class ZMOrderTotalPlugin

ZMObject
|
+--ZMPlugin
|
+--ZMOrderTotalPlugin

public class ZMOrderTotalPlugin
extends ZMPlugin

Order total plugin.

Author:
DerManoMann
Version:
$Id: ZMOrderTotalPlugin.php 2133 2009-04-02 22:36:08Z dermanomann $

Fields inherited from org.zenmagick.plugins.ZMPlugin
KEY_ENABLED_SUFFIX, KEY_ORDER_SUFFIX, KEY_PREFIX, LP_ALL, LP_FOLDER, LP_NONE, LP_PLUGIN, SCOPE_ADMIN, SCOPE_ALL, SCOPE_STORE
Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMOrderTotalPlugin(string title, string description, string version)

Create new plugin.

Method Summary
mixed

calculate(ZMShoppingCart cart)

Evaluate the given cart and return resulting order totals.

Methods inherited from org.zenmagick.plugins.ZMPlugin
addConfigValue, addMenuItem, get, getConfigPath, getConfigValues, getDescription, getGlobal, getId, getKeys, getLoaderPolicy, getMessages, getName, getPluginDir, getScope, getSortOrder, getType, getVersion, init, install, isEnabled, isInstalled, isTraditional, pluginURL, remove, set, setKeys, setLoaderPolicy, setPluginDir, setPreferredSortOrder, setScope, setSortOrder, setTraditional, setType, zcoSubscribe, zcoUnsubscribe
Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMOrderTotalPlugin

public ZMOrderTotalPlugin(string title, string description, string version)

Create new plugin.

Parameters:
title - The title.
description - The description.
version - The version.

Method Detail

calculate

public mixed calculate(ZMShoppingCart cart)

Evaluate the given cart and return resulting order totals.

Parameters:
cart - The current cart.
Returns:
Either a single ZMOrderTotalDetails, a list of order total details * (ZMOrderTotalDetails) or null.

ZenMagick 0.9.6