Stud.IP  4.2 Revision
ResourceObjectPerms Class Reference
Collaboration diagram for ResourceObjectPerms:
Collaboration graph

Public Member Functions

 __construct ($resource_id, $user_id='')
 
 changePerm ($new_perm)
 
 havePerm ($perm)
 
 getUserPerm ()
 
 getUserIsOwner ()
 
 getId ()
 
 getUserId ()
 

Static Public Member Functions

static Factory ($resource_id, $user_id=false)
 

Data Fields

 $user_id
 
 $db
 
 $db2
 
 $resource_id
 
 $perm_weight = array("admin" => 4, "tutor" => 2, "autor" => 1)
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $resource_id,
  $user_id = '' 
)
Here is the call graph for this function:

Member Function Documentation

◆ changePerm()

changePerm (   $new_perm)
Here is the caller graph for this function:

◆ Factory()

static Factory (   $resource_id,
  $user_id = false 
)
static
Here is the caller graph for this function:

◆ getId()

getId ( )

◆ getUserId()

getUserId ( )

◆ getUserIsOwner()

getUserIsOwner ( )

◆ getUserPerm()

getUserPerm ( )
Here is the caller graph for this function:

◆ havePerm()

havePerm (   $perm)
Here is the call graph for this function:

Field Documentation

◆ $db

$db

◆ $db2

$db2

◆ $perm_weight

$perm_weight = array("admin" => 4, "tutor" => 2, "autor" => 1)

◆ $resource_id

$resource_id

◆ $user_id


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