CWIS Developer Documentation

- Home
- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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 | $User | User 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 | $Set | Privilege set to check against.
  object | $Resource | Resource 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:

- objects/PrivilegeSetCompatibilityShim.php