\Shop_Order_Manager_Shopinak

Shopinak Order manager

Summary

Methods
Properties
Constants
apply()
transitions()
getStates()
addOrderHistory()
createOrderFilter()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$STATE_MACHINE
N/A

Properties

$STATE_MACHINE

$STATE_MACHINE : 

State machine of the manager

Type

Methods

apply()

apply(\Shop_Order  $order, String  $action, Boolean  $save = false) : \Shop_Order

Apply action on order

Each order must follow CRUD actions in life cycle. Here is default action list:

  • create
  • read
  • update
  • delete

Parameters

\Shop_Order $order
String $action
Boolean $save

to save or not the order

Returns

\Shop_Order

transitions()

transitions(\Shop_Order  $order) : array

Returns possible transitions for given order

Returns possible transitions respect to currecnt state of given order.

Parameters

\Shop_Order $order

Returns

array —

array of transitions

getStates()

getStates() 

Gets list of states

addOrderHistory()

addOrderHistory(string  $signal,   $event) 

Parameters

string $signal
$event

createOrderFilter()

createOrderFilter(  $request) 

{@inheritdoc}

Parameters

$request