19 declare(strict_types=1);
35 private \ILIAS\DI\Container
$dic;
41 $this->main_tpl = $DIC->ui()->mainTemplate();
54 if (!$this->
object->getProvider()->isGradeSynchronization()) {
58 switch ($DIC->ctrl()->getNextClass($this)) {
60 $cmd = $DIC->ctrl()->getCmd(
'show') .
'Cmd';
69 $table->resetFilter();
70 $table->resetOffset();
77 $table->writeFilterToSession();
78 $table->resetOffset();
98 $this->main_tpl->setOnScreenMessage(
'failure', $e->getMessage());
99 $table->setData(array());
100 $table->setMaxCount(0);
101 $table->resetOffset();
104 $DIC->ui()->mainTemplate()->setContent($table->getHTML());
122 if ($this->
object->getProvider()->isGradeSynchronization()) {
126 $actor = $DIC->user()->getLogin();
129 if (strlen($actor)) {
137 $filter->
setActor($DIC->user()->getId());
145 $allowed = [
'Initialized',
'Started',
'InProgress',
'Submitted',
'Completed'];
147 if (in_array($activityProgress, $allowed)) {
156 $allowed = [
'FullyGraded',
'Pending',
'PendingManual',
'Failed',
'NotReady'];
158 if (in_array($gradingProgress, $allowed)) {
167 if ($period->getStart()) {
171 if ($period->getEnd()) {
180 $auto->setResultField(
'login');
181 $auto->enableFieldSearchableCheck(
true);
182 $auto->setMoreLinkAvailable(
true);
186 if ($this->dic->http()->wrapper()->query()->has(
'term')) {
187 $term = $this->dic->http()->wrapper()->query()->retrieve(
'term', $this->dic->refinery()->kindlyTo()->string());
188 } elseif ($this->dic->http()->wrapper()->post()->has(
'term')) {
189 $term = $this->dic->http()->wrapper()->post()->retrieve(
'term', $this->dic->refinery()->kindlyTo()->string());
193 echo json_encode($result);
201 if (!$this->
access->hasOutcomesAccess()) {
202 $cUser = $this->dic->user()->getId();
215 for ((
int) $i = 0; $i < count(
$data); $i++) {
217 $data[$i][
'actor'] = $usr->getFullname();
235 $isMultiActorReport = $this->
access->hasOutcomesAccess();
238 $table->setFilterCommand(
'applyFilter');
239 $table->setResetCommand(
'resetFilter');
setGradingProgress(string $gradingProgress)
setStartDate(\ilDateTime $startDate)
initTableData(ilLTIConsumerGradeSynchronizationTableGUI $table, ilLTIConsumerGradeSynchronizationFilter $filter)
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
__construct(ilObjLTIConsumer $object)
setActivityProgress(string $activityProgress)
initLimitingAndOrdering(ilLTIConsumerGradeSynchronizationFilter $filter, ilLTIConsumerGradeSynchronizationTableGUI $table)
static getInstance(ilObjLTIConsumer $object)
getFilterItemByPostVar(string $a_post_var)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
initPeriodFilter(ilLTIConsumerGradeSynchronizationFilter $filter, ilLTIConsumerGradeSynchronizationTableGUI $table)
static getUserIdByLogin(string $a_login)
asyncUserAutocompleteCmd()
ilGlobalTemplateInterface $main_tpl
initActorFilter(ilLTIConsumerGradeSynchronizationFilter $filter, ilLTIConsumerGradeSynchronizationTableGUI $table)
setOrderDirection(string $orderDirection)
initActivityProgressFilter(ilLTIConsumerGradeSynchronizationFilter $filter, ilLTIConsumerGradeSynchronizationTableGUI $table)
setOrderField(string $orderField)
setSearchFields(array $a_fields)
Set searchable fields.
setEndDate(\ilDateTime $endDate)
static getGradesForObject(int $objId, ?int $usrID=null, ?string $activity_progress=null, ?string $grading_progress=null, ?ilDateTime $startDate=null, ?ilDateTime $endDate=null)
ilLTIConsumerAccess $access
initGradingProgressFilter(ilLTIConsumerGradeSynchronizationFilter $filter, ilLTIConsumerGradeSynchronizationTableGUI $table)
exit
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
determineOffsetAndOrder(bool $a_omit_offset=false)
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)