ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilExerciseUIRequest Class Reference

Exercise ui request. More...

+ Collaboration diagram for ilExerciseUIRequest:

Public Member Functions

 __construct (array $query_params, array $post_data)
 Constructor. More...
 
 getRequestedRefId ()
 
 getRequestedAssId ()
 
 getRequestedMemberId ()
 
 getRequestedExercise ()
 
 getRequestedAssignment ()
 

Protected Attributes

 $requested_ref_id
 
 $requested_ass_id
 
 $requested_member_id
 
 $ass = null
 
 $exc = null
 

Detailed Description

Exercise ui request.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 10 of file class.ilExerciseUIRequest.php.

Constructor & Destructor Documentation

◆ __construct()

ilExerciseUIRequest::__construct ( array  $query_params,
array  $post_data 
)

Constructor.

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

References ilObject\_lookupType(), getRequestedAssId(), and getRequestedRefId().

41  {
42  $this->requested_ref_id = (int) $query_params["ref_id"];
43  $this->requested_ass_id = ($post_data["ass_id"])
44  ? (int) $post_data["ass_id"]
45  : (int) $query_params["ass_id"];
46  $this->requested_member_id = ($post_data["member_id"])
47  ? (int) $post_data["member_id"]
48  : (int) $query_params["member_id"];
49 
50  if ($this->getRequestedAssId() > 0) {
51  $this->ass = new ilExAssignment($this->getRequestedAssId());
52  }
53  if ($this->getRequestedRefId() > 0 && ilObject::_lookupType($this->getRequestedRefId(), true) == "exc") {
54  $this->exc = new ilObjExercise($this->getRequestedRefId());
55  }
56  }
Exercise assignment.
Class ilObjExercise.
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:

Member Function Documentation

◆ getRequestedAssId()

ilExerciseUIRequest::getRequestedAssId ( )
Returns
int

Definition at line 69 of file class.ilExerciseUIRequest.php.

References $requested_ass_id.

Referenced by __construct().

69  : int
70  {
72  }
+ Here is the caller graph for this function:

◆ getRequestedAssignment()

ilExerciseUIRequest::getRequestedAssignment ( )
Returns
ilExAssignment|null

Definition at line 93 of file class.ilExerciseUIRequest.php.

References $ass.

94  {
95  return $this->ass;
96  }

◆ getRequestedExercise()

ilExerciseUIRequest::getRequestedExercise ( )
Returns
ilObjExercise|null

Definition at line 85 of file class.ilExerciseUIRequest.php.

References $exc.

86  {
87  return $this->exc;
88  }

◆ getRequestedMemberId()

ilExerciseUIRequest::getRequestedMemberId ( )
Returns
int

Definition at line 77 of file class.ilExerciseUIRequest.php.

References $requested_member_id.

77  : int
78  {
80  }

◆ getRequestedRefId()

ilExerciseUIRequest::getRequestedRefId ( )
Returns
int

Definition at line 61 of file class.ilExerciseUIRequest.php.

References $requested_ref_id.

Referenced by __construct().

61  : int
62  {
64  }
+ Here is the caller graph for this function:

Field Documentation

◆ $ass

ilExerciseUIRequest::$ass = null
protected

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

Referenced by getRequestedAssignment().

◆ $exc

ilExerciseUIRequest::$exc = null
protected

Definition at line 35 of file class.ilExerciseUIRequest.php.

Referenced by getRequestedExercise().

◆ $requested_ass_id

ilExerciseUIRequest::$requested_ass_id
protected

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

Referenced by getRequestedAssId().

◆ $requested_member_id

ilExerciseUIRequest::$requested_member_id
protected

Definition at line 25 of file class.ilExerciseUIRequest.php.

Referenced by getRequestedMemberId().

◆ $requested_ref_id

ilExerciseUIRequest::$requested_ref_id
protected

Definition at line 15 of file class.ilExerciseUIRequest.php.

Referenced by getRequestedRefId().


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