CWIS Developer Documentation
PrivilegeSetCompatibilityShim.php
Go to the documentation of this file.
1 <?PHP
2 #
3 # FILE: PrivilegeSet.php
4 #
5 # Part of the Collection Workflow Integration System (CWIS)
6 # Copyright 2014 Edward Almasy and Internet Scout Research Group
7 # http://scout.wisc.edu/cwis/
8 #
9 
16 
17  function __construct(CWUser $User)
18  {
19  $this->User = $User;
20  }
21 
23  {
24  return $Set->MeetsRequirements($this->User, $Resource);
25  }
26 
27  # ---- PRIVATE INTERFACE -------------------------------------------------
28 
29  private $User;
30 }
Set of privileges used to access resource information or other parts of the system.
MeetsRequirements(CWUser $User, $Resource=self::NO_RESOURCE)
Determine if a given user meets the requirements specified by this PrivilegeSet.
Compatibility layer allowing interfaces built against the privilege system from CWIS 3...
IsGreaterThan(PrivilegeSet $Set, $Resource=PrivilegeSet::NO_RESOURCE)
CWIS-specific user class.
Definition: CWUser.php:13