ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 13 of file class.ilExcRepoObjAssignment.php.

Constructor & Destructor Documentation

◆ __construct()

ilExcRepoObjAssignment::__construct ( )
protected

Constructor.

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

21  {
22  }

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 55 of file class.ilExcRepoObjAssignment.php.

References ilExcRepoObjAssignmentAccessInfo\getInfo().

56  {
57  include_once("./Modules/Exercise/RepoObjectAssignment/classes/class.ilExcRepoObjAssignmentAccessInfo.php");
58  return ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
59  }
+ 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 42 of file class.ilExcRepoObjAssignment.php.

References ilExcRepoObjAssignmentInfo\getInfo().

43  {
44  include_once("./Modules/Exercise/RepoObjectAssignment/classes/class.ilExcRepoObjAssignmentInfo.php");
45  return ilExcRepoObjAssignmentInfo::getInfo($a_ref_id, $a_user_id);
46  }
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 30 of file class.ilExcRepoObjAssignment.php.

Referenced by ilObjWikiAccess\_checkAccess(), ilExcRepoObjAssignmentAccessInfo\getInfo(), ilObjWikiListGUI\getProperties(), and ilWikiPageGUI\preview().

31  {
32  return new self();
33  }
+ 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 68 of file class.ilExcRepoObjAssignment.php.

References $info, and ilExcRepoObjAssignmentAccessInfo\getInfo().

69  {
70  include_once("./Modules/Exercise/RepoObjectAssignment/classes/class.ilExcRepoObjAssignmentAccessInfo.php");
71  $info = ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
72  return !$info->isGranted();
73  }
$info
Definition: index.php:5
+ Here is the call graph for this function:

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