57 if (!$this->access->hasHighscoreAccess()) {
61 switch ($DIC->ctrl()->getNextClass($this)) {
63 $cmd = $DIC->ctrl()->getCmd(
'show') .
'Cmd';
90 ->initHighScoreTable()
97 $table->setData(array());
98 $table->setMaxCount(0);
99 $table->resetOffset();
100 $this->tableHtml = $table->getHTML();
103 $DIC->ui()->mainTemplate()->setContent($this->tableHtml);
112 $filter->setActivityId($this->object->getActivityId());
116 $this->object->getLrsType()->getLrsEndpointStatementsAggregationLink(),
121 $this->object->getLrsType()->getBasicAuth(),
125 $scoringReport = $request->queryReport($this->
object);
126 if (
true === $scoringReport->initTableData()) {
127 $this->tableData = $scoringReport->getTableData();
128 $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);
149 if (!$this->object->getHighscoreTopTable() || !$this->
object->getHighscoreEnabled()) {
150 $this->tableHtml .=
'';
155 $this->tableHtml .= $table->getHTML();
164 if (!$this->object->getHighscoreOwnTable() || !$this->
object->getHighscoreEnabled()) {
165 $this->tableHtml .=
'';
170 $this->tableHtml .= $table->getHTML();
180 $isMultiActorReport = $this->access->hasOutcomesAccess();
186 $this->access->hasOutcomesAccess()
static getInstance(ilObjCmiXapi $object)
const PART_FILTER_INACTIVE_ONLY
__construct(ilObjCmiXapi $object)
const PART_FILTER_ALL_USERS
const PART_FILTER_MANSCORING_NONE
getTableDataRange($scopeUserRank=false)
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
const PART_FILTER_MANSCORING_DONE
const PART_FILTER_ACTIVE_ONLY