24 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
55 $parent_tr =& $td->parent_node();
56 $new_tr = $parent_tr->clone_node(
true);
59 if ($new_tr->has_attribute(
"PCID"))
61 $new_tr->remove_attribute(
"PCID");
63 if ($next_tr =& $parent_tr->next_sibling())
65 $new_tr =& $next_tr->insert_before($new_tr, $next_tr);
69 $parent_table =& $parent_tr->parent_node();
70 $new_tr =& $parent_table->append_child($new_tr);
86 $parent_tr =& $td->parent_node();
87 $new_tr = $parent_tr->clone_node(
true);
88 $new_tr =& $parent_tr->insert_before($new_tr, $parent_tr);
89 if ($new_tr->has_attribute(
"PCID"))
91 $new_tr->remove_attribute(
"PCID");
108 $tds =& $a_row_node->child_nodes();
109 for($i=0; $i<count($tds); $i++)
111 if ($tds[$i]->has_attribute(
"PCID"))
113 $tds[$i]->remove_attribute(
"PCID");
115 $td_childs =& $tds[$i]->child_nodes();
116 for($j=0; $j<count($td_childs); $j++)
118 $tds[$i]->remove_child($td_childs[$j]);
131 $td_childs =& $a_td_node->child_nodes();
132 for($j=0; $j<count($td_childs); $j++)
134 $a_td_node->remove_child($td_childs[$j]);
146 $parent_tr =& $td->parent_node();
147 $parent_tr->unlink($parent_tr);
163 $col_nr = array_pop($parts);
166 $parent_tr =& $td->parent_node();
167 $parent_table =& $parent_tr->parent_node();
170 $rows =& $parent_table->child_nodes();
171 for($i=0; $i<count($rows); $i++)
173 if($rows[$i]->node_name() ==
"TableRow")
176 $tds =& $rows[$i]->child_nodes();
177 $new_td =& $tds[$col_nr]->clone_node(
true);
179 if ($new_td->has_attribute(
"PCID"))
181 $new_td->remove_attribute(
"PCID");
185 if ($next_td =& $tds[$col_nr]->next_sibling())
187 $new_td =& $next_td->insert_before($new_td, $next_td);
191 $new_td =& $rows[$i]->append_child($new_td);
210 $col_nr = array_pop($parts);
213 $parent_tr =& $td->parent_node();
214 $parent_table =& $parent_tr->parent_node();
217 $rows =& $parent_table->child_nodes();
218 for($i=0; $i<count($rows); $i++)
220 if($rows[$i]->node_name() ==
"TableRow")
223 $tds =& $rows[$i]->child_nodes();
224 $new_td =& $tds[$col_nr]->clone_node(
true);
226 if ($new_td->has_attribute(
"PCID"))
228 $new_td->remove_attribute(
"PCID");
232 $new_td =& $tds[$col_nr]->insert_before($new_td, $tds[$col_nr]);
250 $col_nr = array_pop($parts);
253 $parent_tr =& $td->parent_node();
254 $parent_table =& $parent_tr->parent_node();
257 $rows =& $parent_table->child_nodes();
258 for($i=0; $i<count($rows); $i++)
260 if($rows[$i]->node_name() ==
"TableRow")
263 $tds =& $rows[$i]->child_nodes();
264 $tds[$col_nr]->unlink($tds[$col_nr]);
277 $tr =& $td->parent_node();
278 $next =& $tr->next_sibling();
279 $next_copy = $next->clone_node(
true);
280 $next_copy =& $tr->insert_before($next_copy, $tr);
281 $next->unlink($next);
292 $tr =& $td->parent_node();
293 $prev =& $tr->previous_sibling();
294 $tr_copy = $tr->clone_node(
true);
295 $tr_copy =& $prev->insert_before($tr_copy, $prev);
311 $col_nr = array_pop($parts);
314 $parent_tr =& $td->parent_node();
315 $parent_table =& $parent_tr->parent_node();
318 $rows =& $parent_table->child_nodes();
319 for($i=0; $i<count($rows); $i++)
321 if($rows[$i]->node_name() ==
"TableRow")
323 $tds =& $rows[$i]->child_nodes();
324 $td =& $tds[$col_nr];
326 $next =& $td->next_sibling();
327 $next_copy = $next->clone_node(
true);
328 $next_copy =& $td->insert_before($next_copy, $td);
329 $next->unlink($next);
346 $col_nr = array_pop($parts);
349 $parent_tr =& $td->parent_node();
350 $parent_table =& $parent_tr->parent_node();
353 $rows =& $parent_table->child_nodes();
354 for($i=0; $i<count($rows); $i++)
356 if($rows[$i]->node_name() ==
"TableRow")
358 $tds =& $rows[$i]->child_nodes();
359 $td =& $tds[$col_nr];
360 $prev =& $td->previous_sibling();
361 $td_copy = $td->clone_node(
true);
362 $td_copy =& $prev->insert_before($td_copy, $prev);
375 $tr = $td->parent_node();
376 $table = $tr->parent_node();
377 $this->table_pc_node = $table->parent_node();
385 include_once(
"./Services/COPage/classes/class.ilPCTable.php");
387 $table_obj->setNode($this->table_pc_node);
388 $table_obj->readHierId();
389 $table_obj->readPCId();
390 $table_obj->fixHideAndSpans();