ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilExcRepoObjAssignment Class Reference

Handles exercise repository object assignments. More...

+ Inheritance diagram for ilExcRepoObjAssignment:
+ Collaboration diagram for ilExcRepoObjAssignment:

Public Member Functions

 getAssignmentInfoOfObj ($a_ref_id, $a_user_id)
 Get assignment(s) information of repository object. More...
 
 getAccessInfo ($a_ref_id, $a_user_id)
 Get assignment access info for a repository object. More...
 
 isGranted ($a_ref_id, $a_user_id)
 Is access denied. More...
 

Static Public Member Functions

static getInstance ()
 Get instance. More...
 

Protected Member Functions

 __construct ()
 Constructor. More...
 

Detailed Description

Handles exercise repository object assignments.

Main entry point for consumers.

Author
.de

Definition at line 11 of file class.ilExcRepoObjAssignment.php.

Constructor & Destructor Documentation

◆ __construct()

ilExcRepoObjAssignment::__construct ( )
protected

Constructor.

Definition at line 18 of file class.ilExcRepoObjAssignment.php.

19  {
20  }

Member Function Documentation

◆ getAccessInfo()

ilExcRepoObjAssignment::getAccessInfo (   $a_ref_id,
  $a_user_id 
)

Get assignment access info for a repository object.

Parameters
int$a_ref_idref id
int$a_user_iduser id
Returns
ilExcRepoObjAssignmentAccessInfoInterface

Definition at line 52 of file class.ilExcRepoObjAssignment.php.

References ilExcRepoObjAssignmentAccessInfo\getInfo().

53  {
54  return ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
55  }
+ Here is the call graph for this function:

◆ getAssignmentInfoOfObj()

ilExcRepoObjAssignment::getAssignmentInfoOfObj (   $a_ref_id,
  $a_user_id 
)

Get assignment(s) information of repository object.

Parameters
int$a_ref_idref id
int$a_user_idif user id is provided, only readable links will be added
Returns
ilExcRepoObjAssignmentInfoInterface[]

Implements ilExcRepoObjAssignmentInterface.

Definition at line 40 of file class.ilExcRepoObjAssignment.php.

References ilExcRepoObjAssignmentInfo\getInfo().

41  {
42  return ilExcRepoObjAssignmentInfo::getInfo($a_ref_id, $a_user_id);
43  }
static getInfo($a_ref_id, $a_user_id)
Get all info objects for a ref id of an repo object.
+ Here is the call graph for this function:

◆ getInstance()

static ilExcRepoObjAssignment::getInstance ( )
static

Get instance.

Parameters

Definition at line 28 of file class.ilExcRepoObjAssignment.php.

Referenced by ilObjWikiAccess\_checkAccess(), ilObjWikiGUI\getAssignmentButtons(), ilExcRepoObjAssignmentAccessInfo\getInfo(), ilObjWikiListGUI\getProperties(), and ilObjWikiGUI\triggerAssignmentTool().

29  {
30  return new self();
31  }
+ Here is the caller graph for this function:

◆ isGranted()

ilExcRepoObjAssignment::isGranted (   $a_ref_id,
  $a_user_id 
)

Is access denied.

Parameters
int$a_ref_idref id
int$a_user_iduser id
Returns
bool

Implements ilExcRepoObjAssignmentInterface.

Definition at line 64 of file class.ilExcRepoObjAssignment.php.

References ilExcRepoObjAssignmentAccessInfo\getInfo().

65  {
66  $info = ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
67  return !$info->isGranted();
68  }
+ Here is the call graph for this function:

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