3declare(strict_types=1);
31 public function init(): void
43 $this->cach_node = $this->dom->create_element(self::PCELEMENT);
44 $this->cach_node = $this->node->append_child($this->cach_node);
53 bool $a_abstract_only =
false
55 if ($a_mode ==
'edit') {
59 $parent_obj_id = (
int) $this->getPage()->getParentId();
60 if ($this->supportsLauncher($parent_obj_id)) {
61 $a_output = $this->replaceWithRenderedButtons($parent_obj_id, $a_output);
70 return in_array($parent_obj_type, self::PROVIDING_TYPES);
76 $rendered_buttons = $lso->getCurrentUserLaunchButtons();
77 return str_replace(self::PLACEHOLDER, $rendered_buttons, $html);
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
static _lookupType(int $id, bool $reference=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
supportsLauncher(int $parent_obj_id)
replaceWithRenderedButtons(int $obj_id, $html)
modifyPageContentPostXsl(string $a_output, string $a_mode, bool $a_abstract_only=false)
Modify page content after xsl.
create(ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
createPageContentNode(bool $a_set_this_node=true)
Create page content node (always use this method first when adding a new element)
setType(string $a_type)
Set Type.
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
insertContent(ilPageContent $a_cont_obj, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="", bool $remove_placeholder=true)
insert a content node before/after a sibling or as first child of a parent
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...