29     public function init(): void
    42         return array(
"s" => 
"s", 
"m" => 
"m", 
"l" => 
"l", 
"xl" => 
"xl");
    51             "1" => 
"1/12", 
"2" => 
"2/12", 
"3" => 
"3/12",
    52             "4" => 
"4/12", 
"5" => 
"5/12", 
"6" => 
"6/12",
    53             "7" => 
"7/12", 
"8" => 
"8/12", 
"9" => 
"9/12",
    54             "10" => 
"10/12", 
"11" => 
"11/12", 
"12" => 
"12/12"    67         int $post_layout_template,
    74         switch ($post_layout_template) {
   100                 for ($i = 0; $i < $number_of_cells; $i++) {
   116             if ($c->nodeName === 
"GridCell") {
   117                 $pc_id = $c->getAttribute(
"PCID");
   118                 $hier_id = $c->getAttribute(
"HierId");
   122         $this->dom_util->deleteAllChildsByName($this->
getChildNode(), [
"GridCell"]);
   124         foreach ($a_pos as $k => $v) {
   125             if (is_object($nodes[$k])) {
   126                 $nodes[$k] = $this->
getChildNode()->appendChild($nodes[$k]);
   141             if ($c->nodeName === 
"GridCell") {
   142                 $pc_id = $c->getAttribute(
"PCID");
   143                 $hier_id = $c->getAttribute(
"HierId");
   145                 $c->setAttribute(
"WIDTH_XS", 
"");
   146                 $c->setAttribute(
"WIDTH_S", $a_width_s[$k]);
   147                 $c->setAttribute(
"WIDTH_M", $a_width_m[$k]);
   148                 $c->setAttribute(
"WIDTH_L", $a_width_l[$k]);
   149                 $c->setAttribute(
"WIDTH_XL", $a_width_xl[$k]);
   163             if ($c->nodeName === 
"GridCell") {
   164                 if ($a_pc_id === $c->getAttribute(
"PCID") &&
   165                     $a_hier_id === $c->getAttribute(
"HierId")) {
   166                     $c->parentNode->removeChild($c);
   181         $new_item = $this->dom_doc->createElement(
"GridCell");
   182         $new_item = $this->
getChildNode()->appendChild($new_item);
   183         $new_item->setAttribute(
"WIDTH_XS", 
"");
   184         $new_item->setAttribute(
"WIDTH_S", $a_s);
   185         $new_item->setAttribute(
"WIDTH_M", $a_m);
   186         $new_item->setAttribute(
"WIDTH_L", $a_l);
   187         $new_item->setAttribute(
"WIDTH_XL", $a_xl);
   195         $new_item = $this->dom_doc->createElement(
"GridCell");
   196         $new_item->setAttribute(
"WIDTH_XS", 
"");
   197         $new_item->setAttribute(
"WIDTH_S", 
"");
   198         $new_item->setAttribute(
"WIDTH_M", 
"");
   199         $new_item->setAttribute(
"WIDTH_L", 
"");
   200         $new_item->setAttribute(
"WIDTH_XL", 
"");
   210         return array(
"pc_grid", 
"pc_grid_cell", 
"ed_delete_cell", 
"ed_cell_left", 
"ed_cell_right");
   215         return parent::getJavascriptFiles($a_mode);
   220         return parent::getCssFiles($a_mode);
   228             if ($c->nodeName === 
"GridCell") {
   229                 $pc_id = $c->getAttribute(
"PCID");
   230                 $hier_id = $c->getAttribute(
"HierId");
   231                 $cells[] = array(
"pos" => $k,
   232                     "xs" => $c->getAttribute(
"WIDTH_XS"),
   233                     "s" => $c->getAttribute(
"WIDTH_S"),
   234                     "m" => $c->getAttribute(
"WIDTH_M"),
   235                     "l" => $c->getAttribute(
"WIDTH_L"),
   236                     "xl" => $c->getAttribute(
"WIDTH_XL"),
   237                     "pc_id" => $pc_id, 
"hier_id" => 
$hier_id);
 
static getWidths()
Get widths. 
 
const TEMPLATE_TWO_BY_TWO
 
setType(string $a_type)
Set Type. 
 
applyTemplate(int $post_layout_template, int $number_of_cells, int $s, int $m, int $l, int $xl)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
savePositions(array $a_pos)
Save positions of grid cells. 
 
const TEMPLATE_TWO_COLUMN
 
getJavascriptFiles(string $a_mode)
 
saveWidths(array $a_width_s, array $a_width_m, array $a_width_l, array $a_width_xl)
Save widths of cells. 
 
Content object of ilPageObject (see ILIAS DTD). 
 
getCssFiles(string $a_mode)
 
deleteGridCell(string $a_hier_id, string $a_pc_id)
Delete grid cell. 
 
init()
Init page content component. 
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
const TEMPLATE_THREE_COLUMN
 
static getLangVars()
Get lang vars needed for editing. 
 
create(ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="")
 
addGridCell(int $a_s, int $a_m, int $a_l, int $a_xl)
Add grid cell. 
 
static getSizes()
Get sizes. 
 
createInitialChildNode(string $hier_id, string $pc_id, string $child, array $child_attributes=[])