QubitGrantedRight
in package
Table of Contents
Constants
- ACT_ID = 'granted_right.act_id'
- END_DATE = 'granted_right.end_date'
- ID = 'granted_right.id'
- RESTRICTION = 'granted_right.restriction'
- RIGHTS_ID = 'granted_right.rights_id'
- START_DATE = 'granted_right.start_date'
Methods
- checkPremis() : bool
- Check PREMIS rights for a resource.
Constants
ACT_ID
public
mixed
ACT_ID
= 'granted_right.act_id'
END_DATE
public
mixed
END_DATE
= 'granted_right.end_date'
ID
public
mixed
ID
= 'granted_right.id'
RESTRICTION
public
mixed
RESTRICTION
= 'granted_right.restriction'
RIGHTS_ID
public
mixed
RIGHTS_ID
= 'granted_right.rights_id'
START_DATE
public
mixed
START_DATE
= 'granted_right.start_date'
Methods
checkPremis()
Check PREMIS rights for a resource.
public
static checkPremis(int $objectId[, string $action = null ][, object $user = null ]) : bool
Stub returns true (allow access) — actual enforcement via embargo plugin.
Parameters
- $objectId : int
-
Object ID
- $action : string = null
-
Action (e.g. 'readMaster')
- $user : object = null
-
User object