\Shop_Precondition

Shop standard pre-condetions

Preconditions to access entities in the shop is defined here.

Summary

Methods
Properties
Constants
canViewOrder()
canModifyOrder()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

canViewOrder()

canViewOrder(\Pluf_HTTP_Request  $request, \Shop_Order  $order) : boolean

Returns true if user (sending request) can view information of the order.

The creator of an order (customer who registers the order) or owner of tenant can view the information of the order

Parameters

\Pluf_HTTP_Request $request
\Shop_Order $order

Returns

boolean

canModifyOrder()

canModifyOrder(\Pluf_HTTP_Request  $request, \Shop_Order  $order) : boolean

Returns true if user (sending request) can modify information of the order.

Only the creator of an order (customer who registers the order) can modify the order

Parameters

\Pluf_HTTP_Request $request
\Shop_Order $order

Returns

boolean