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...
 
 getAssignmentInfoOfObj ($a_ref_id, $a_user_id)
 Get assignment(s) info of repository object. More...
 
 isGranted ($a_ref_id, $a_user_id)
 Get assignment access info for a repository object. 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
@leifos.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.

56 {
57 include_once("./Modules/Exercise/RepoObjectAssignment/classes/class.ilExcRepoObjAssignmentAccessInfo.php");
58 return ilExcRepoObjAssignmentAccessInfo::getInfo($a_ref_id, $a_user_id);
59 }

References ilExcRepoObjAssignmentAccessInfo\getInfo().

+ 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.

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.

References ilExcRepoObjAssignmentInfo\getInfo().

+ Here is the call graph for this function:

◆ getInstance()

static ilExcRepoObjAssignment::getInstance ( )
static

Get instance.

Parameters

return

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

31 {
32 return new self();
33 }

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

+ 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.

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

References $info, and ilExcRepoObjAssignmentAccessInfo\getInfo().

+ Here is the call graph for this function:

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