\TMS_Precondition

Defines preconditions to work with TMS entities

Summary

Methods
Properties
Constants
projectManagerRequired()
testManagerRequired()
testerRequired()
isProjectManager()
isTestManager()
isTester()
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

projectManagerRequired()

projectManagerRequired(\Pluf_HTTP_Request  $request) 

Check if the user sending request is a project manager.

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

Parameters

\Pluf_HTTP_Request $request

Throws

\Pluf_Exception_PermissionDenied

testManagerRequired()

testManagerRequired(\Pluf_HTTP_Request  $request) 

Checks if the use sending request is a test manager.

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

Parameters

\Pluf_HTTP_Request $request

Throws

\Pluf_Exception_PermissionDenied

testerRequired()

testerRequired(\Pluf_HTTP_Request  $request) 

Checks if the user sending request is a tester.

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.

isTestManager()

isTestManager(  $request) : true

Checks if the user sending request is a test manager 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.

isTester()

isTester(  $request) : true

Checks if the user sending request is a tester 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.