57 if (!$this->access->hasHighscoreAccess()) {
61 switch ($DIC->ctrl()->getNextClass($this)) {
63 $cmd = $DIC->ctrl()->getCmd(
'show') .
'Cmd';
74 ->initHighScoreTable()
81 $table->setData(array());
82 $table->setMaxCount(0);
83 $table->resetOffset();
84 $this->tableHtml = $table->getHTML();
87 $DIC->ui()->mainTemplate()->setContent($this->tableHtml);
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();
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);
150 if (!$this->object->getHighscoreTopTable() || !$this->
object->getHighscoreEnabled()) {
151 $this->tableHtml .=
'';
156 $this->tableHtml .= $table->getHTML();
165 if (!$this->object->getHighscoreOwnTable() || !$this->
object->getHighscoreEnabled()) {
166 $this->tableHtml .=
'';
171 $this->tableHtml .= $table->getHTML();
181 $isMultiActorReport = $this->access->hasOutcomesAccess();
187 $this->access->hasOutcomesAccess()
__construct(ilObjLTIConsumer $object)
getTableDataRange($scopeUserRank=false)
const PART_FILTER_MANSCORING_NONE
const PART_FILTER_ALL_USERS
const PART_FILTER_MANSCORING_DONE
static getInstance(ilObjLTIConsumer $object)
const PART_FILTER_INACTIVE_ONLY
const PART_FILTER_ACTIVE_ONLY
static buildBasicAuth($lrsKey, $lrsSecret)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.