ZMObject
└─ZMOrders
public class ZMOrders
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| ZMOrderStatus | createOrderStatusHistory(ZMOrderStatus orderStatus) Create new order status history entry. |
| array | getAllOrders(int languageId, int limit) Get all orders. |
| protected ZMQueryDetails | getAllOrdersQueryDetails(int languageId, int limit) 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 | getOrderTotalLines(int orderId) Get order total lines. |
| array | getOrdersForAccountId(mixed accountId, int languageId, int limit) Get all orders for the given account id. |
| protected ZMQueryDetails | getOrdersForAccountIdQueryDetails(int accountId, int languageId, int limit) 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 | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public ZMOrderStatus createOrderStatusHistory(ZMOrderStatus orderStatus)
Create new order status history entry.
public array getAllOrders(int languageId, int limit)
Get all orders.
0 for all.ZMOrder instances.protected ZMQueryDetails getAllOrdersQueryDetails(int languageId, int limit)
Get all orders.
0 for all.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.public array getOrderItems(int orderId)
Get order items.
ZMOrderItem instances.public array getOrderStatusHistoryForId(int orderId, int languageId)
Get order status history for order id.
ZMOrderStatus instances.public array getOrderStatusList(int languageId)
Get a list of all order stati.
ZMObject instances.public array getOrderTotalLines(int orderId)
Get order total lines.
ZMOrderTotalLine instances with the type as key.public array getOrdersForAccountId(mixed accountId, int languageId, int limit)
Get all orders for the given account id. getOrdersForAccountId* @param int accountId The account id.
ZMOrder instances.protected ZMQueryDetails getOrdersForAccountIdQueryDetails(int accountId, int languageId, int limit)
Get all orders for the given account id.
public array getOrdersForStatusId(int statusId, int languageId)
Get all orders for a given order status.
ZMOrder instances.protected ZMQueryDetails getOrdersForStatusIdQueryDetails(int statusId, int languageId)
Get all orders for a given order status.
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.