PHP Class OrderManipulation, silvershop-core

Inheritance: extends Extension
Show file Open project: burnbright/silverstripe-shop Class Usage Examples

Protected Properties

Property Type Description
$sessionmessage
$sessionmessagetype

Public Methods

Method Description
ActionsForm ( ) : Form Build a form for cancelling, or retrying payment for a placed order.
PastOrders ( $paginated = false ) Return all past orders for current member / session.
SessionMessage ( )
SessionMessageType ( )
add_session_order ( Order $order ) Add an order to the session-stored history of orders.
allorders ( ) : DataList Get all orders for current member / session.
clear_session_order_ids ( )
get_session_order_ids ( ) Get historical orders for current session.
order ( SS_HTTPRequest $request ) : array Return the {@link Order} details for the current Order ID that we're viewing (ID parameter in URL).
orderfromid ( ) : the Get the order via url 'ID' or form submission 'OrderID'.
setSessionMessage ( $message = "success", $type = "good" )

Method Details

ActionsForm() public method

Build a form for cancelling, or retrying payment for a placed order.
public ActionsForm ( ) : Form
return Form

PastOrders() public method

Return all past orders for current member / session.
public PastOrders ( $paginated = false )

SessionMessage() public method

public SessionMessage ( )

SessionMessageType() public method

public SessionMessageType ( )

add_session_order() public static method

Add an order to the session-stored history of orders.
public static add_session_order ( Order $order )
$order Order

allorders() public method

Get all orders for current member / session.
public allorders ( ) : DataList
return DataList of Orders

clear_session_order_ids() public static method

public static clear_session_order_ids ( )

get_session_order_ids() public static method

Get historical orders for current session.
public static get_session_order_ids ( )

order() public method

Return the {@link Order} details for the current Order ID that we're viewing (ID parameter in URL).
public order ( SS_HTTPRequest $request ) : array
$request SS_HTTPRequest
return array of template variables

orderfromid() public method

It will check for permission based on session stored ids or member id.
public orderfromid ( ) : the
return the order

setSessionMessage() public method

public setSessionMessage ( $message = "success", $type = "good" )

Property Details

$sessionmessage protected property

protected $sessionmessage

$sessionmessagetype protected property

protected $sessionmessagetype