19 declare(strict_types=1);
    31     public function init(): void
    45             [
"Language" => 
"", 
"DataTable" => 
"y"]
    53         $this->dom_util->deleteAllChilds($td_node);
    57         $pc_node = $td_node->appendChild($pc_node);
    58         $par_node = $this->dom_doc->createElement(
"Paragraph");
    59         $par_node = $pc_node->appendChild($par_node);
    60         $par_node->setAttribute(
"Characteristic", 
"TableContent");
    61         $par_node->setAttribute(
    75         if (is_array($a_data)) {
    76             foreach ($a_data as $i => $row) {
    78                     foreach ($row as $j => $cell) {
    79                         $temp_dom = $this->dom_util->docFromString(
    80                             '<?xml version="1.0" encoding="UTF-8"?><Paragraph>' . $cell . 
'</Paragraph>',
    85                         if (empty($error) && !is_null($par_node)) {
    87                             $this->dom_util->deleteAllChilds($par_node);
    90                             $nodes = $this->dom_util->path(
    95                             if (count($nodes) == 1) {
    96                                 $new_par_node = $nodes->item(0);
    97                                 foreach ($new_par_node->childNodes as 
$c) {
    98                                     $cloned_child = $c->cloneNode(
true);
    99                                     $cloned_child = $this->dom_doc->importNode($cloned_child, 
true);
   100                                     $par_node->appendChild($cloned_child);
   104                             if (!empty($error)) {
 setType(string $a_type)
Set Type. 
 
makeEmptyCell(DomNode $td_node)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
create(ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="")
 
getCellNode(int $i, int $j, bool $create_if_not_exists=false)
Get cell paragraph node of row $i and cell $j. 
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
setData(array $a_data)
Set data of cells. 
 
createInitialChildNode(string $hier_id, string $pc_id, string $child, array $child_attributes=[])