3declare(strict_types=1);
27 public const PCTYPE =
'lsocurriculum';
32 public function init(): void
44 $this->cach_node = $this->dom->create_element(self::PCELEMENT);
45 $this->cach_node = $this->node->append_child($this->cach_node);
54 bool $a_abstract_only =
false
56 if ($a_mode ==
'edit') {
60 $parent_obj_id = (
int) $this->getPage()->getParentId();
61 if ($this->supportsCurriculum($parent_obj_id)) {
62 $a_output = $this->replaceWithRenderedCurriculum($parent_obj_id, $a_output);
71 return in_array($parent_obj_type, self::PROVIDING_TYPES);
77 $rendered_curriculum = $lso->getCurrentUserCurriculum();
78 return str_replace(self::PLACEHOLDER, $rendered_curriculum, $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...
modifyPageContentPostXsl(string $a_output, string $a_mode, bool $a_abstract_only=false)
Modify page content after xsl.
supportsCurriculum(int $parent_obj_id)
replaceWithRenderedCurriculum(int $obj_id, string $html)
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...