\Exchange_Precondition

Defines preconditions to work with Exchange entities

Summary

Methods
Properties
Constants
cambistRequired()
shroffRequired()
isProjectManager()
isCambist()
isShroff()
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

cambistRequired()

cambistRequired(\Pluf_HTTP_Request  $request) 

Check if the user sending request is a cambist.

If it is not, this function will throw the Pluf_Exception_PermissionDenied exception.

Parameters

\Pluf_HTTP_Request $request

Throws

\Pluf_Exception_PermissionDenied

shroffRequired()

shroffRequired(\Pluf_HTTP_Request  $request) 

Checks if the use sending request is a shroff.

If it is not this function will throw the Pluf_Exception_PermissionDenied exception.

Parameters

\Pluf_HTTP_Request $request

Throws

\Pluf_Exception_PermissionDenied

isProjectManager()

isProjectManager(  $request) : true

Checks if the user sending request is a project manager or not.

Retunrs true if the user is a project manager else false.

Parameters

$request

Returns

true —

if the user sending request is project manager else false.

isCambist()

isCambist(  $request) : true

Checks if the user sending request is a cambist or not.

Retunrs true if the user is a test manager else false.

Parameters

$request

Returns

true —

if the user sending request is test manager else false.

isShroff()

isShroff(  $request) : true

Checks if the user sending request is a shroff or not.

Retunrs true if the user is a tester else false.

Parameters

$request

Returns

true —

if the user sending request is tester else false.