19declare(strict_types=1);
76 $nextClass = $this->
ctrl->getNextClass($this);
77 $cmd = $this->
ctrl->getCmd();
80 (defined(
'USER_FOLDER_ID') && !$this->rbacsystem->checkAccess(
'read',
USER_FOLDER_ID)) ||
81 !$this->rbacsystem->checkAccess(
'read', $this->tos->getRefId())
83 $this->
error->raiseError($this->
lng->txt(
'permission_denied'), $this->error->MESSAGE);
86 switch (strtolower($nextClass)) {
88 if ($cmd ===
null || $cmd ===
'' || !method_exists($this, $cmd)) {
89 $cmd =
'showAcceptanceHistory';
100 'showAcceptanceHistory',
101 $this->criterionTypeFactory,
117 $this->tpl->setContent($table->getHTML());
123 $table->resetOffset();
124 $table->writeFilterToSession();
132 $table->resetOffset();
133 $table->resetFilter();
141 $auto->setSearchFields([
'login',
'firstname',
'lastname',
'email']);
142 $auto->enableFieldSearchableCheck(
false);
143 $auto->setMoreLinkAvailable(
true);
145 if ($this->
http->wrapper()->query()->has(
'fetchall')) {
149 if ($this->
http->wrapper()->query()->has(
'term')) {
151 $this->
http->wrapper()->query()->retrieve(
'term', $this->refinery->kindlyTo()->string())
153 $this->
http->saveResponse(
154 $this->
http->response()
155 ->withHeader(ResponseHeader::CONTENT_TYPE,
'application/json')
157 Streams::ofString($auto->getList(
$query))
162 $this->
http->sendResponse();
163 $this->
http->close();
Error Handling & global info handling uses PEAR error class.
Class ilObjTermsOfService.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
Class ilTermsOfServiceAcceptanceHistoryGUI.
ilTermsOfServiceTableDataProviderFactory $tableDataProviderFactory
executeCommand()
The implemented class should be ilCtrlInterface enabled and execute or forward the given command.
ilGlobalTemplateInterface $tpl
resetAcceptanceHistoryFilter()
__construct(ilObjTermsOfService $tos, ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory, ilGlobalTemplateInterface $tpl, ilCtrlInterface $ctrl, ilLanguage $lng, ilRbacSystem $rbacsystem, ilErrorHandling $error, GlobalHttpState $http, \ILIAS\Refinery\Factory $refinery, Factory $uiFactory, Renderer $uiRenderer, ilTermsOfServiceTableDataProviderFactory $tableDataProviderFactory)
getAcceptanceHistoryTable()
ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory
applyAcceptanceHistoryFilter()
ILIAS Refinery Factory $refinery
Class ilTermsOfServiceAcceptanceHistoryTableGUI.
Class ilTermsOfServiceTableDataProviderFactory.
const CONTEXT_ACCEPTANCE_HISTORY
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
Interface GlobalHttpState.
This is how the factory for UI elements looks.
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilTermsOfServiceControllerEnabled.
Interface ilTermsOfServiceCriterionTypeFactoryInterface.
static http()
Fetches the global http state from ILIAS.
Class ChatMainBarProvider \MainMenu\Provider.