ZMObject
└─ZMOrders
public class ZMOrders
extends ZMObject
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMOrders() Create new instance. |
|
| Method Summary | |
|---|---|
| ZMOrderStatus | createOrderStatusHistory(ZMOrderStatus orderStatus) Create new order status history entry. |
| array | getAllOrders(int languageId) Get all orders. |
| protected ZMQueryDetails | getAllOrdersQueryDetails(int languageId) Get all orders. |
| array | getDownloadsForOrderId(int orderId, array orderStatusList) Get downloads for order. |
| ZMOrder | getOrderForId(mixed orderId, int languageId, int id) Get order for the given id. |
| array | getOrderItems(int orderId) Get order items. |
| array | getOrderStatusHistoryForId(int orderId, int languageId) Get order status history for order id. |
| array | getOrderStatusList(int languageId) Get a list of all order stati. |
| array | getOrderTotals(int orderId) Get order totals. |
| array | getOrdersForAccountId(int accountId, int limit, int languageId) Get all orders for the given account id. |
| protected ZMQueryDetails | getOrdersForAccountIdQueryDetails(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. |
| protected ZMQueryDetails | getOrdersForStatusIdQueryDetails(int statusId, int languageId) Get all orders for a given order status. |
| void | getQueryDetails(mixed method, mixed args) {@inheritDoc} |
| static void | instance() Get instance. |
| void | restockFromOrder(int orderId) Re-stock products from a given order. |
| ZMOrder | updateOrder(mixed order, ZMOrder The) Update an existing order. |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMOrders()
Create new instance.
public ZMOrderStatus createOrderStatusHistory(ZMOrderStatus orderStatus)
Create new order status history entry.
public array getAllOrders(int languageId)
Get all orders.
null for session language.ZMOrder instances.protected ZMQueryDetails getAllOrdersQueryDetails(int languageId)
Get all orders.
null for session language.public array getDownloadsForOrderId(int orderId, array orderStatusList)
Get downloads for order.
ZMDownload instances.public ZMOrder getOrderForId(mixed orderId, int languageId, int id)
Get order for the given id.
null for session language.null.public array getOrderItems(int orderId)
Get order items.
ZMOrderItem instances.public array getOrderStatusHistoryForId(int orderId, int languageId)
Get order status history for order id.
null for session language.ZMOrderStatus instances.public array getOrderStatusList(int languageId)
Get a list of all order stati.
null for session language.ZMObject instances.public array getOrderTotals(int orderId)
Get order totals.
ZMOrderItem instances with the type as key.public array getOrdersForAccountId(int accountId, int limit, int languageId)
Get all orders for the given account id.
null for session language.ZMOrder instances.protected ZMQueryDetails getOrdersForAccountIdQueryDetails(int accountId, int limit, int languageId)
Get all orders for the given account id.
null for session language.public array getOrdersForStatusId(int statusId, int languageId)
Get all orders for a given order status.
null for session language.ZMOrder instances.protected ZMQueryDetails getOrdersForStatusIdQueryDetails(int statusId, int languageId)
Get all orders for a given order status.
null for session language.public void getQueryDetails(mixed method, mixed args)
public static void instance()
Get instance.
public void restockFromOrder(int orderId)
Re-stock products from a given order.
public ZMOrder updateOrder(mixed order, ZMOrder The)
Update an existing order.
NOTE: Currently this will update the orders table only!
Orders.