Class ilOrgUnitPermissionQueries.
More...
◆ checkRefIdAndPositionId()
static ilOrgUnitPermissionQueries::checkRefIdAndPositionId |
( |
|
$ref_id, |
|
|
|
$position_id |
|
) |
| |
|
staticprotected |
◆ getAllowedOperationsOnRefIdAndPosition()
static ilOrgUnitPermissionQueries::getAllowedOperationsOnRefIdAndPosition |
( |
|
$ref_id, |
|
|
|
$position_id |
|
) |
| |
|
staticprivate |
Definition at line 231 of file class.ilOrgUnitPermissionQueries.php.
References $DIC, and $r.
234 $db = $DIC->database();
236 $q =
'SELECT @CONTEXT_TYPE:= object_data.type 237 FROM object_reference 238 JOIN object_data ON object_data.obj_id = object_reference.obj_id 239 WHERE object_reference.ref_id = %s;';
240 $db->queryF($q, [
'integer' ], [ $ref_id ]);
242 $q =
'SELECT @OP_ID:= CONCAT("%\"", il_orgu_operations.operation_id, "%\"") 243 FROM il_orgu_operations 244 JOIN il_orgu_op_contexts ON il_orgu_op_contexts.context = @CONTEXT_TYPE -- AND il_orgu_op_contexts.id = il_orgu_operations.context_id 245 WHERE il_orgu_operations.operation_string = %s';
246 $db->queryF($q, [
'text' ], [ $pos_perm ]);
247 $q =
'SELECT * FROM il_orgu_permissions WHERE operations LIKE @OP_ID AND position_id = %s;';
248 $r = $db->queryF($q, [
'integer' ], [ $position_id ]);
◆ getAllTemplateSetsForAllActivedContexts()
static ilOrgUnitPermissionQueries::getAllTemplateSetsForAllActivedContexts |
( |
|
$position_id, |
|
|
|
$editable = false |
|
) |
| |
|
static |
◆ getContextByRefId()
static ilOrgUnitPermissionQueries::getContextByRefId |
( |
|
$ref_id | ) |
|
|
staticprotected |
◆ getRelevantPermissionSetsForUserIdAndRefIdAndOperation()
static ilOrgUnitPermissionQueries::getRelevantPermissionSetsForUserIdAndRefIdAndOperation |
( |
|
$user_id, |
|
|
|
$ref_id, |
|
|
|
$operation_string |
|
) |
| |
|
static |
- Parameters
-
$user_id | |
$ref_id | |
$operation_string | |
Definition at line 223 of file class.ilOrgUnitPermissionQueries.php.
225 $q =
'SELECT @OP_ID:= CONCAT("%\"",operation_id, "\"%") FROM il_orgu_op_contexts 226 JOIN il_orgu_operations ON il_orgu_operations.context_id = il_orgu_op_contexts.id 227 WHERE il_orgu_op_contexts.context IN(\'crs\', \'object\') AND operation_string = \'viewmembers\';';
◆ getTemplateSetForContextName()
static ilOrgUnitPermissionQueries::getTemplateSetForContextName |
( |
|
$context_name, |
|
|
|
$position_id, |
|
|
|
$editable = false |
|
) |
| |
|
static |
◆ hasLocalSet()
static ilOrgUnitPermissionQueries::hasLocalSet |
( |
|
$ref_id, |
|
|
|
$position_id |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: