19declare(strict_types=1);
47 $this->
setId(
'tos_acceptance_history');
52 $this->
setTitle($this->
lng->txt(
'tos_acceptance_history'));
53 $this->
setFormAction($this->
ctrl->getFormAction($controller,
'applyAcceptanceHistoryFilter'));
67 $this->
setRowTemplate(
'tpl.tos_acceptance_history_table_row.html',
'Services/TermsOfService');
81 'txt' => $this->
lng->txt(
'tos_tbl_hist_head_acceptance_date'),
88 'txt' => $this->
lng->txt(
'tos_tbl_hist_head_login'),
94 'field' =>
'firstname',
95 'txt' => $this->
lng->txt(
'tos_tbl_hist_head_firstname'),
101 'field' =>
'lastname',
102 'txt' => $this->
lng->txt(
'tos_tbl_hist_head_lastname'),
109 'txt' => $this->
lng->txt(
'tos_tbl_hist_head_document'),
115 'field' =>
'criteria',
116 'txt' => $this->
lng->txt(
'tos_tbl_hist_head_criteria'),
128 } elseif (
'title' ===
$column) {
130 } elseif (
'criteria' ===
$column) {
134 return parent::formatCellValue(
$column, $row);
139 return '<span class="ilNoDisplay">' . ($this->numRenderedCriteria++) .
'</span>';
148 if (0 === count($criteria)) {
149 return $this->
lng->txt(
'tos_tbl_hist_cell_not_criterion');
152 foreach ($criteria as $criterion) {
153 $criterionType = $this->criterionTypeFactory->findByTypeIdent($criterion[
'id'],
true);
154 $typeGui = $criterionType->ui($this->
lng);
156 $items[$typeGui->getIdentPresentation() .
163 $criteriaList = $this->uiFactory
165 ->descriptive($items);
167 return $this->uiRenderer->render([
174 $modal = $this->uiFactory
176 ->lightbox([$this->uiFactory->modal()->lightboxTextPage($row[
'text'], $row[
'title'])]);
178 $titleLink = $this->uiFactory
181 ->withOnClick($modal->getShowSignal());
183 return $this->uiRenderer->render([$titleLink, $modal]);
188 return 'ts' === $a_field;
194 $this->
lng->txt(
'login') .
'/' . $this->lng->txt(
'email') .
'/' . $this->lng->txt(
'name'),
197 $ul->setDataSource($this->
ctrl->getLinkTarget($this->getParentObject(),
'addUserAutoComplete',
'',
true));
199 $ul->setSubmitFormOnEnter(
true);
201 $ul->readFromSession();
202 $this->
filter[
'query'] = $ul->getValue();
205 $duration->setAllowOpenIntervals(
true);
206 $duration->setShowTime(
true);
207 $duration->setStartText($this->
lng->txt(
'tos_period_from'));
208 $duration->setEndText($this->
lng->txt(
'tos_period_until'));
212 $duration->readFromSession();
213 $this->optional_filter[
'period'] = $duration->getValue();
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
@classDescription Date and time handling
setShowRowsSelector(bool $a_value)
Toggle rows-per-page selector.
setFilterCommand(string $a_val, string $a_caption="")
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setExternalSegmentation(bool $a_val)
addFilterItem(ilTableFilterItem $a_input_item, bool $a_optional=false)
setFormName(string $a_name="")
setFormAction(string $a_form_action, bool $a_multipart=false)
setDefaultOrderField(string $a_defaultorderfield)
setExternalSorting(bool $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setResetCommand(string $a_val, string $a_caption="")
Class ilTermsOfServiceAcceptanceHistoryCriteriaBag.
Class ilTermsOfServiceAcceptanceHistoryTableGUI.
formatCriterionAssignments(string $column, array $row)
formatTitle(string $column, array $row)
ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory
getUniqueCriterionListingAttribute()
__construct(ilTermsOfServiceControllerEnabled $controller, string $command, ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory, Factory $uiFactory, Renderer $uiRenderer, ilGlobalTemplateInterface $globalTemplate)
formatCellValue(string $column, array $row)
Define a final formatting for a cell value.
numericOrdering(string $a_field)
Should this field be sorted numeric?
Class ilTermsOfServiceCriterionConfig.
This class represents a text property in a property form.
static initPanel(bool $a_resize=false, ?ilGlobalTemplateInterface $a_main_tpl=null)
Init yui panel used in Modules/Test, Services/TermsOfService (Jan 2022)
static initOverlay(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Overlay module used in Modules/Test, Services/TermsOfService, Services/Tracking,...
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
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...
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
Interface ilTermsOfServiceControllerEnabled.
Interface ilTermsOfServiceCriterionTypeFactoryInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc