27 public function init(): void
36 $parent_tr = $td->parentNode;
37 for ($i = 1; $i <= $cnt; $i++) {
38 $new_tr = $parent_tr->cloneNode(
true);
41 if ($new_tr->hasAttribute(
"PCID")) {
42 $new_tr->removeAttribute(
"PCID");
44 if ($next_tr = $parent_tr->nextSibling) {
45 $new_tr = $next_tr->parentNode->insertBefore($new_tr, $next_tr);
47 $parent_table = $parent_tr->parentNode;
48 $new_tr = $parent_table->appendChild($new_tr);
62 $parent_tr = $td->parentNode;
63 for ($i = 1; $i <= $cnt; $i++) {
64 $new_tr = $parent_tr->cloneNode(
true);
65 $new_tr = $parent_tr->parentNode->insertBefore($new_tr, $parent_tr);
66 if ($new_tr->hasAttribute(
"PCID")) {
67 $new_tr->removeAttribute(
"PCID");
84 foreach ($a_row_node->childNodes as $td) {
85 if ($td->hasAttribute(
"PCID")) {
86 $td->removeAttribute(
"PCID");
88 $this->dom_util->deleteAllChilds($td);
98 $this->dom_util->deleteAllChilds($a_td_node);
105 $parent_tr = $td->parentNode;
106 $parent_tr->parentNode->removeChild($parent_tr);
118 $col_nr = array_pop(
$parts);
121 $parent_tr = $td->parentNode;
122 $parent_table = $parent_tr->parentNode;
124 for ($i = 1; $i <= $cnt; $i++) {
126 foreach ($parent_table->childNodes as $row) {
127 if ($row->nodeName ==
"TableRow") {
129 $tds = $row->childNodes;
130 $old_td = $tds->item($col_nr);
131 $new_td = $old_td->cloneNode(
true);
133 if ($new_td->hasAttribute(
"PCID")) {
134 $new_td->removeAttribute(
"PCID");
138 if ($next_td = $old_td->nextSibling) {
139 $new_td = $next_td->parentNode->insertBefore($new_td, $next_td);
141 $new_td = $row->appendChild($new_td);
158 $col_nr = array_pop(
$parts);
160 $parent_tr = $td->parentNode;
161 $parent_table = $parent_tr->parentNode;
163 for ($i = 1; $i <= $cnt; $i++) {
165 foreach ($parent_table->childNodes as $row) {
166 if ($row->nodeName ==
"TableRow") {
168 $tds = $row->childNodes;
169 $old_td = $tds->item($col_nr);
170 $new_td = $old_td->cloneNode(
true);
172 if ($new_td->hasAttribute(
"PCID")) {
173 $new_td->removeAttribute(
"PCID");
177 $new_td = $old_td->parentNode->insertBefore($new_td, $old_td);
193 $col_nr = array_pop(
$parts);
196 $parent_tr = $td->parentNode;
197 $parent_table = $parent_tr->parentNode;
200 foreach ($parent_table->childNodes as $row) {
201 if ($row->nodeName ==
"TableRow") {
203 $tds = $row->childNodes;
204 $tds->item($col_nr)->parentNode->removeChild($tds->item($col_nr));
214 $tr = $td->parentNode;
215 $next = $tr->nextSibling;
216 $next_copy = $next->cloneNode(
true);
217 $next_copy = $tr->parentNode->insertBefore($next_copy, $tr);
218 $next->parentNode->removeChild($next);
226 $tr = $td->parentNode;
227 $prev = $tr->previousSibling;
228 $tr_copy = $tr->cloneNode(
true);
229 $tr_copy = $prev->parentNode->insertBefore($tr_copy, $prev);
230 $tr->parentNode->removeChild($tr);
242 $col_nr = array_pop(
$parts);
245 $parent_tr = $td->parentNode;
246 $parent_table = $parent_tr->parentNode;
249 foreach ($parent_table->childNodes as $row) {
250 if ($row->nodeName ==
"TableRow") {
251 $tds = $row->childNodes;
252 $td = $tds->item($col_nr);
253 $next = $td->nextSibling;
254 $next_copy = $next->cloneNode(
true);
255 $next_copy = $td->parentNode->insertBefore($next_copy, $td);
256 $next->parentNode->removeChild($next);
270 $col_nr = array_pop(
$parts);
273 $parent_tr = $td->parentNode;
274 $parent_table = $parent_tr->parentNode;
277 foreach ($parent_table->childNodes as $row) {
278 if ($row->nodeName ==
"TableRow") {
279 $tds = $row->childNodes;
280 $td = $tds->item($col_nr);
281 $prev = $td->previousSibling;
282 $td_copy = $td->cloneNode(
true);
283 $td_copy = $prev->parentNode->insertBefore($td_copy, $prev);
284 $td->parentNode->removeChild($td);
293 $tr = $td->parentNode;
294 $table = $tr->parentNode;
295 $this->table_pc_node = $table->parentNode;
301 $table_obj->setDomNode($this->table_pc_node);
302 $table_obj->readHierId();
303 $table_obj->readPCId();
304 $table_obj->fixHideAndSpans();
setType(string $a_type)
Set Type.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Content object of ilPageObject (see ILIAS DTD).
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
deleteTDContent(DOMNode $a_td_node)
delete content of a cell (not the cell itself)
deleteRowContent(DOMNode $a_row_node)
delete content of cells of a row (not the cells itself)