19 declare(strict_types=1);
61 $table = $this->
init();
62 $table->setData($this->data);
71 if (!isset($this->template_element)) {
72 $this->template_element = $element;
77 foreach ($this->data_finder->getDataCarryingElements(
82 if ($data_el->getData()->type() !==
Type::NULL) {
83 $data = $this->presenter->data()->dataValue($data_el->getData());
89 $action_buttons[] = $this->button_factory->update($update_signal);
91 $action_buttons[] = $this->button_factory->delete(
96 $dropdown = $this->ui_factory->dropdown()->standard($action_buttons);
100 $clone->data[] =
$res;
106 if (!isset($this->template_element)) {
107 throw new \ilMDEditorException(
'Table cannot be empty.');
109 $table =
new Table();
110 $table->setRowTemplate(
111 'tpl.full_editor_row.html',
112 'components/ILIAS/MetaData' 114 $table->setTitle($this->presenter->elements()->nameWithParents(
115 $this->template_element,
119 $table->setExternalSegmentation(
true);
121 foreach ($this->data_finder->getDataCarryingElements(
122 $this->template_element,
125 $table->addColumn($this->presenter->elements()->nameWithParents(
127 $this->template_element,
131 $table->addColumn(
'');
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null