5include_once(
"./Modules/Exercise/RepoObjectAssignment/interfaces/interface.ilExcRepoObjAssignmentInfoInterface.php");
63 $this->
id = $a_assignment_id;
64 $this->title = $a_assignment_title;
65 $this->ref_ids = $a_ref_ids;
68 $this->exc_id = $a_exc_id;
69 $this->exc_title = $a_exc_title;
96 foreach ($this->ref_ids as $ref_id) {
142 public static function getInfo($a_ref_id, $a_user_id)
146 $access =
$DIC->access();
148 include_once(
"./Modules/Exercise/AssignmentTypes/classes/class.ilExAssignmentTypes.php");
152 include_once(
"./Modules/Exercise/classes/class.ilExSubmission.php");
156 foreach ($submissions as
$s) {
161 include_once
"Modules/Exercise/classes/class.ilExAssignmentTeam.php";
170 $readable_ref_ids = array();
172 if ($a_user_id > 0 && !$access->checkAccessOfUser($a_user_id,
"read",
"", $ref_id)) {
175 $readable_ref_ids[] = $ref_id;
177 $ass_info[] =
new self(
An exception for terminatinating execution or to throw for unit testing.
static getInstanceByUserId($a_assignment_id, $a_user_id, $a_create_on_demand=false)
static getInstance()
Get instance.
static getSubmissionsForFilename($a_filename, $a_assignment_types=array())
Get assignment return entries for a filename.
Repository object assignment information.
getExerciseTitle()
Get exercise title.string
getExerciseId()
Get exercise id.int
isUserSubmission()
Check if this object has been submitted by the user provided or its team.If not, the repository objec...
getTitle()
Get assignment title.int assignment id
getId()
Get assignment id.int assignment id
getReadableRefIds()
Get readable ref IDs.int[]
__construct( $a_assignment_id, $a_assignment_title, $a_ref_ids, $is_user_submission, $a_exc_id, $a_exc_title)
Constructor.
static getInfo($a_ref_id, $a_user_id)
Get all info objects for a ref id of an repo object.
getLinks()
Get readable link urls to the assignment (key is the ref id)string[] assignment link url
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
static _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
Interface for assignment types.