◆ __construct()
◆ buildTableGUI()
ilLTIConsumerScoringGUI::buildTableGUI |
( |
|
$tableId | ) |
|
|
protected |
◆ executeCommand()
ilLTIConsumerScoringGUI::executeCommand |
( |
| ) |
|
- Exceptions
-
Definition at line 53 of file class.ilLTIConsumerScoringGUI.php.
References $DIC.
57 if (!$this->access->hasHighscoreAccess()) {
61 switch ($DIC->ctrl()->getNextClass($this)) {
63 $cmd = $DIC->ctrl()->getCmd(
'show') .
'Cmd';
◆ getObject()
ilLTIConsumerScoringGUI::getObject |
( |
| ) |
|
◆ getTableDataRange()
ilLTIConsumerScoringGUI::getTableDataRange |
( |
|
$scopeUserRank = false | ) |
|
|
private |
- Parameters
-
- Returns
- array
Definition at line 133 of file class.ilLTIConsumerScoringGUI.php.
Referenced by initHighScoreTable(), and initUserRankTable().
135 if (
false === $scopeUserRank) {
136 return array_slice($this->tableData, 0, (
int) $this->object->getHighscoreTopNum());
138 $offset = $this->userRank - 2 < 0 ? 0 : $this->userRank - 2;
140 return array_slice($this->tableData, $offset, $length);
◆ initHighScoreTable()
ilLTIConsumerScoringGUI::initHighScoreTable |
( |
| ) |
|
|
protected |
◆ initTableData()
ilLTIConsumerScoringGUI::initTableData |
( |
| ) |
|
|
protected |
- Returns
- $this
Definition at line 93 of file class.ilLTIConsumerScoringGUI.php.
References ilCmiXapiLrsType\buildBasicAuth().
Referenced by showCmd().
95 $aggregateEndPointUrl = str_replace(
97 'api/statements/aggregate',
98 $this->object->getProvider()->getXapiLaunchUrl()
102 $this->object->getProvider()->getXapiLaunchKey(),
103 $this->
object->getProvider()->getXapiLaunchSecret()
107 $filter->setActivityId($this->object->getActivityId());
111 $aggregateEndPointUrl,
120 $scoringReport =
$request->queryReport($this->
object);
122 if (
true === $scoringReport->initTableData()) {
123 $this->tableData = $scoringReport->getTableData();
124 $this->userRank = $scoringReport->getUserRank();
static buildBasicAuth($lrsKey, $lrsSecret)
◆ initUserRankTable()
ilLTIConsumerScoringGUI::initUserRankTable |
( |
| ) |
|
|
protected |
◆ showCmd()
ilLTIConsumerScoringGUI::showCmd |
( |
| ) |
|
|
protected |
◆ $access
ilLTIConsumerScoringGUI::$access |
|
protected |
◆ $object
ilLTIConsumerScoringGUI::$object |
|
protected |
◆ $tableData
ilLTIConsumerScoringGUI::$tableData |
|
private |
◆ $tableHtml
ilLTIConsumerScoringGUI::$tableHtml = '' |
|
private |
◆ $userRank
ilLTIConsumerScoringGUI::$userRank |
|
private |
◆ PART_FILTER_ACTIVE_ONLY
const ilLTIConsumerScoringGUI::PART_FILTER_ACTIVE_ONLY = 1 |
◆ PART_FILTER_ALL_USERS
const ilLTIConsumerScoringGUI::PART_FILTER_ALL_USERS = 3 |
◆ PART_FILTER_INACTIVE_ONLY
const ilLTIConsumerScoringGUI::PART_FILTER_INACTIVE_ONLY = 2 |
◆ PART_FILTER_MANSCORING_DONE
const ilLTIConsumerScoringGUI::PART_FILTER_MANSCORING_DONE = 4 |
◆ PART_FILTER_MANSCORING_NONE
const ilLTIConsumerScoringGUI::PART_FILTER_MANSCORING_NONE = 5 |
The documentation for this class was generated from the following file: