Stud.IP
6.1
|
Static Public Member Functions | |
static | get ($lock_id) |
static | getAdministrableSeminarRules ($user_id) |
static | getAvailableSeminarRules ($user_id) |
static | getObjectRule ($object_id, $renew=false, $object_type=null) |
static | Check ($object_id, $attribute, $object_type=null) |
static | CheckLockRulePermission ($object_id) |
static | getLockRuleConfig ($type) |
LockRules.php
This class contains only static methods dealing with lock rules
|
static |
checks if an attribute of an entity is locked for the current user see self::getLockRuleConfig() for the list of attributes
string | $object_id | id of course, institute or user |
string | $attribute | the name of an lockable attribute |
string | null | $object_type | : The type of object you want to check: "user", "sem" or "inst" |
|
static |
checks if given entity is locked for the current user
string | $object_id | id of course, institute or user |
|
static |
get lockrule object for given id from static object pool
string | $lock_id | id of lockrule |
|
static |
returns a list of lockrules that can be administrated with the given user id
string | $user_id | id of user |
|
static |
returns a list of lockrules that can be applied to a course with the given user id
string | $user_id | id of user |
|
static |
returns an array containing all lockable attributes for given entity type
string | $type | entity type, one of [sem,inst,user] |
|
static |
returns the lock rule object for the given id, else null
string | $object_id | id of course, institute or user |
bool | $renew | if true, reloads the rule from database |
string | null | $object_type | : The type of object you want to check: "user", "sem" or "inst" |