ZMObject
|
+--ZMOrders
public class ZMOrders
extends ZMObject
| Constructor Summary | |
|---|---|
ZMOrders() Create new instance. |
|
| Method Summary | |
|---|---|
| ZMOrderStatus | createOrderStatusHistory(ZMOrderStatus orderStatus) Create new order status history entry. |
| ZMOrder | getOrderForId(mixed orderId, int languageId, int id) Get order for the given id. |
| void | getOrderStatusHistoryForId(int orderId, int languageId) Get order status history for order id. |
| array | getOrderTotals(int orderId) Get order totals. |
| array | getOrdersForAccountId(int accountId, int limit, int languageId) Get all orders for the given account id. |
| array | getOrdersForStatusId(int statusId, int languageId) Get all orders for a given order status. |
| static void | instance() Get instance. |
| ZMOrder | updateOrder(mixed order, ZMOrder The) Update an existing order. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| backtrace, create, log, singleton | |
public ZMOrders()
Create new instance. /
public ZMOrderStatus createOrderStatusHistory(ZMOrderStatus orderStatus)
Create new order status history entry.
public ZMOrder getOrderForId(mixed orderId, int languageId, int id)
Get order for the given id.
null for session language.null.public void getOrderStatusHistoryForId(int orderId, int languageId)
Get order status history for order id.
null for session language.public array getOrderTotals(int orderId)
Get order totals.
ZMOrderItem instances.public array getOrdersForAccountId(int accountId, int limit, int languageId)
Get all orders for the given account id.
null for session language.ZMOrder instances.public array getOrdersForStatusId(int statusId, int languageId)
Get all orders for a given order status.
null for session language.ZMOrder instances.public static void instance()
Get instance. /
public ZMOrder updateOrder(mixed order, ZMOrder The)
Update an existing order.
NOTE: Currently not all properties are supported!
Orders.