\Whups_Test_Perms

Permissions class to use when we need to pretend we are checking permissions

Must instantiate it, then overwrite the global $perms object before calling any method that needs to check permissions.

Summary

Methods
Properties
Constants
getPermissions()
exists()
hasPermission()
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

getPermissions()

getPermissions(  $permission,   $user = null,   $creator = null) 

Parameters

$permission
$user
$creator

exists()

exists(  $permission) 

Parameters

$permission

hasPermission()

hasPermission(  $permission,   $user,   $perm,   $creator = null) 

Parameters

$permission
$user
$perm
$creator