Class Whups_Test_Perms

Description

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.

Located in /lib/tests/TestBase.php (line 91)


	
			
Method Summary
 void exists ( $permission)
 void getPermissions ( $permission, [ $user = null], [ $creator = null])
 void hasPermission ( $permission,  $user,  $perm, [ $creator = null])
Methods
exists (line 98)
void exists ( $permission)
  • $permission
getPermissions (line 93)
void getPermissions ( $permission, [ $user = null], [ $creator = null])
  • $permission
  • $user
  • $creator
hasPermission (line 103)
void hasPermission ( $permission,  $user,  $perm, [ $creator = null])
  • $permission
  • $user
  • $perm
  • $creator

Documentation generated on Sun, 30 Jan 2011 05:41:44 +0000 by phpDocumentor 1.4.3