Heratio Framework API Reference

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

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

Return values
bool

        
On this page

Search results