61 $this->
id = $a_assignment_id;
62 $this->title = $a_assignment_title;
63 $this->ref_ids = $a_ref_ids;
66 $this->exc_id = $a_exc_id;
67 $this->exc_title = $a_exc_title;
94 foreach ($this->ref_ids as $ref_id) {
95 $links[$ref_id] =
ilLink::_getLink($ref_id,
"exc", array(),
"_" . $this->
id);
140 public static function getInfo($a_ref_id, $a_user_id)
144 $access = $DIC->access();
152 foreach ($submissions as $s) {
165 $readable_ref_ids = array();
167 if ($a_user_id > 0 && !$access->checkAccessOfUser($a_user_id,
"read",
"", $ref_id)) {
170 $readable_ref_ids[] = $ref_id;
172 $ass_info[] =
new self(
getTitle()
Get assignment title.int assignment id
Interface for assignment types.
static _lookupTitle($a_id)
lookup object title
getExerciseId()
Get exercise id.int
static _getAllReferences($a_id)
get all reference ids of object
Repository object assignment information.
__construct( $a_assignment_id, $a_assignment_title, $a_ref_ids, $is_user_submission, $a_exc_id, $a_exc_title)
Constructor.
isUserSubmission()
Check if this object has been submitted by the user provided or its team.If not, the repository objec...
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.
getReadableRefIds()
Get readable ref IDs.int[]
getLinks()
Get readable link urls to the assignment (key is the ref id)string[] assignment link url ...
static getInfo($a_ref_id, $a_user_id)
Get all info objects for a ref id of an repo object.
getId()
Get assignment id.int assignment id
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
getExerciseTitle()
Get exercise title.string