CWIS Developer Documentation
Public Member Functions | List of all members
PrivilegeSetCompatibilityShim Class Reference

Compatibility layer allowing interfaces built against the privilege system from CWIS 3.0.0 through 3.1.0 to continue working. More...

Public Member Functions

 __construct (CWUser $User)
 Class constructor. More...
 
 IsGreaterThan (PrivilegeSet $Set, $Resource=PrivilegeSet::NO_RESOURCE)
 Check whether usser meets privilege requirements. More...
 

Detailed Description

Compatibility layer allowing interfaces built against the privilege system from CWIS 3.0.0 through 3.1.0 to continue working.

This should not be used in new code.

Definition at line 15 of file PrivilegeSetCompatibilityShim.php.

Constructor & Destructor Documentation

PrivilegeSetCompatibilityShim::__construct ( CWUser  $User)

Class constructor.

Parameters
object$UserUser to check privileges for.

Definition at line 21 of file PrivilegeSetCompatibilityShim.php.

Member Function Documentation

PrivilegeSetCompatibilityShim::IsGreaterThan ( PrivilegeSet  $Set,
  $Resource = PrivilegeSet::NO_RESOURCE 
)

Check whether usser meets privilege requirements.

Parameters
object$SetPrivilege set to check against.
object$ResourceResource to user in privilege check.
Returns
bool If TRUE, user meets requirements for set.

Definition at line 32 of file PrivilegeSetCompatibilityShim.php.

References PrivilegeSet\MeetsRequirements().


The documentation for this class was generated from the following file: