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 |