ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilLTIConsumerGradeSynchronizationGUI Class Reference
+ Collaboration diagram for ilLTIConsumerGradeSynchronizationGUI:

Public Member Functions

 __construct (ilObjLTIConsumer $object)
 
 executeCommand ()
 

Protected Member Functions

 showCmd ()
 

Protected Attributes

ilObjLTIConsumer $object
 
ilLTIConsumerAccess $access
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilLTIConsumerGradeSynchronizationGUI::__construct ( ilObjLTIConsumer  $object)

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

36 {
37 $this->object = $object;
38
39 $this->access = ilLTIConsumerAccess::getInstance($this->object);
40 }
static getInstance(ilObjLTIConsumer $object)

References $object, ILIAS\Repository\access(), and ilLTIConsumerAccess\getInstance().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilLTIConsumerGradeSynchronizationGUI::executeCommand ( )
Exceptions
ilLtiConsumerException|ilCtrlException

Definition at line 45 of file class.ilLTIConsumerGradeSynchronizationGUI.php.

45 : bool
46 {
47 global $DIC;
48
49 if (!$this->object->getProvider()->isGradeSynchronization()) {
50 throw new ilLtiConsumerException('access denied!');
51 }
52
53 switch ($DIC->ctrl()->getNextClass($this)) {
54 default:
55 $cmd = $DIC->ctrl()->getCmd('show') . 'Cmd';
56 $this->{$cmd}();
57 }
58 return true;
59 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ showCmd()

ilLTIConsumerGradeSynchronizationGUI::showCmd ( )
protected

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

61 : void
62 {
63 global $DIC;
64
65 $isMultiActorReport = $this->access->hasOutcomesAccess();
66
67 $table = new ilLTIConsumerGradeSynchronizationTableGUI($isMultiActorReport);
68
69 $cUser = null;
70 if (!$this->access->hasOutcomesAccess()) {
71 $cUser = $DIC->user()->getId();
72 }
73
75 $this->object->getId(),
76 $cUser
77 );
78
79 $table->setRecords($data);
80
81 $DIC->ui()->mainTemplate()->setContent($table->getHTML());
82 }
static getGradesForObject(int $objId, ?int $usrID=null, ?string $activity_progress=null, ?string $grading_progress=null, ?ilDateTime $startDate=null, ?ilDateTime $endDate=null)

References $data, $DIC, ILIAS\Repository\access(), ilLTIConsumerGradeSynchronization\getGradesForObject(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilLTIConsumerAccess ilLTIConsumerGradeSynchronizationGUI::$access
protected

◆ $object

ilObjLTIConsumer ilLTIConsumerGradeSynchronizationGUI::$object
protected

Definition at line 31 of file class.ilLTIConsumerGradeSynchronizationGUI.php.

Referenced by __construct().


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