19declare(strict_types=1);
40 $this->retrieval = $domain->
peerReview()->criteriaCatalogueRetrieval($exc_id);
46 return $this->retrieval->hasProtectedAssignments();
49 protected function getId(): string
51 return 'exc_criteria_catalogues';
56 return $this->domain->lng()->txt(
'exc_criteria_catalogues');
69 protected function activeAction(
string $action, array $data_row): bool
71 if ($action ===
'editCriteria') {
72 return !$data_row[
'protected'];
80 $ctrl = $this->gui->ctrl();
81 $ctrl->setParameter($this->parent_gui,
'cat_id', $data_row[
'id']);
82 $title = $this->gui->ui()->factory()->link()->standard(
84 $ctrl->getLinkTarget($this->parent_gui,
'edit')
86 $ctrl->setParameter($this->parent_gui,
'cat_id',
'');
89 'id' => $data_row[
'id'],
91 'criterias' => $data_row[
'criterias'],
92 'assignments' => $data_row[
'assignments']
98 $lng = $this->domain->lng();
102 ->textColumn(
'criterias',
$lng->txt(
'exc_criterias'))
103 ->textColumn(
'assignments',
$lng->txt(
'exc_assignments'))
104 ->singleRedirectAction(
107 [\ilExcCriteriaCatalogueGUI::class],
111 ->singleRedirectAction(
113 $lng->txt(
'exc_edit_criterias'),
114 [\ilExcCriteriaCatalogueGUI::class, \ilExcCriteriaGUI::class],
118 ->multiAction(
'confirmDeletion',
$lng->txt(
'delete'));
Exercise UI frontend presentation service class.
build(TableAdapterGUI $table)
CriteriaCatalogueRetrieval $retrieval
activeAction(string $action, array $data_row)
__construct(protected InternalDomainService $domain, protected InternalGUIService $gui, int $exc_id, object $parent_gui, string $parent_cmd)
transformRow(array $data_row)
transform raw data array to table row data array
hasProtectedAssignments()
linkColumn(string $key, string $title, bool $sortable=false)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc