ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilExcRepoObjAssignment.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
13
18 protected function __construct()
19 {
20 }
21
28 public static function getInstance()
29 {
30 return new self();
31 }
32
40 public function getAssignmentInfoOfObj($a_ref_id, $a_user_id)
41 {
42 return ilExcRepoObjAssignmentInfo::getInfo($a_ref_id, $a_user_id);
43 }
44
52 public function getAccessInfo($a_ref_id, $a_user_id)
53 {
54 return ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
55 }
56
64 public function isGranted($a_ref_id, $a_user_id)
65 {
66 $info = ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
67 return !$info->isGranted();
68 }
69}
An exception for terminatinating execution or to throw for unit testing.
static getInfo($a_ref_id, $a_user_id)
Get all info objects for a ref id of an repo object.
Handles exercise repository object assignments.
getAccessInfo($a_ref_id, $a_user_id)
Get assignment access info for a repository object.
isGranted($a_ref_id, $a_user_id)
Is access denied.
getAssignmentInfoOfObj($a_ref_id, $a_user_id)
Get assignment(s) information of repository object.