19 declare(strict_types=1);
    37     public function init(): void
    41         $this->
lng = $DIC->language();
    43         $this->
access = $DIC->access();
   110         if (!empty($a_value)) {
   140         self::saveContentIncludeUsage($a_page, $a_domdoc);
   160         self::saveContentIncludeUsage($a_page, $a_old_domdoc, $a_old_nr);
   171         $ci_ids = self::collectContentIncludes($a_page, $a_domdoc);
   173         foreach ($ci_ids as $ci_id) {
   174             if ((
int) $ci_id[
"inst_id"] <= 0 || $ci_id[
"inst_id"] == 
IL_INST_ID) {
   195         $nodes = $xpath->query(
'//ContentInclude');
   198         foreach ($nodes as $node) {
   199             $type = $node->getAttribute(
"ContentType");
   200             $id = $node->getAttribute(
"ContentId");
   201             $inst_id = $node->getAttribute(
"InstId");
   202             $ci_ids[
$type . 
":" . 
$id . 
":" . $inst_id] = array(
   203                 "type" => 
$type, 
"id" => 
$id, 
"inst_id" => $inst_id);
   212         bool $a_abstract_only = 
false   217         $start = strpos($a_output, 
"{{{{{ContentInclude;");
   218         if (is_int($start)) {
   219             $end = strpos($a_output, 
"}}}}}", $start);
   222         $parent_lang = $this->
getPage()->getLanguage();
   223         if ($parent_lang == 
"-" && $this->
getPage()->getConcreteLang() != 
"") {
   224             $parent_lang = $this->
getPage()->getConcreteLang();
   227             $param = substr($a_output, $start + 20, $end - $start - 20);
   232                 $snippet_lang = $parent_lang;
   238                     if ($a_mode != 
"offline") {
   247                     $html = $page_gui->getRawContent();
   248                     if ($a_mode == 
"edit") {
   249                         $par_id = $page_gui->getPageObject()->getParentId();
   252                             if ($this->
access->checkAccess(
"write", 
"", $ref_id)) {
   254                                     ", " . $lng->
txt(
"obj_mep") . 
": <a href='" . ilLink::_getLink($ref_id) . 
"'>" . 
ilObject::_lookupTitle($par_id) . 
"</a>";
   257                         $html = 
'<p class="small light">' . $lng->
txt(
"copg_snippet_cannot_be_edited") . $info . 
'</p>' . $html;
   260                     if ($a_mode == 
"edit") {
   261                         if ($param[2] <= 0) {
   262                             $html = 
"// " . $lng->
txt(
"cont_missing_snippet") . 
" //";
   264                             $html = 
"// " . $lng->
txt(
"cont_snippet_from_another_installation") . 
" //";
   268                 $h2 = substr($a_output, 0, $start) .
   270                     substr($a_output, $end + 5);
   275             $start = strpos($a_output, 
"{{{{{ContentInclude;", $start + 5);
   277             if (is_int($start)) {
   278                 $end = strpos($a_output, 
"}}}}}", $start);
   288         int $delete_lower_than_nr
   292         $usage_repo = $DIC->copage()
   297         $usage_repo->deleteHistoryUsagesLowerEqualThan(
   299             $parent_type . 
":pg",
   301             $delete_lower_than_nr,
 
getSourcecodeDownloadScript()
 
getInstId()
Get installation id. 
 
setType(string $a_type)
Set Type. 
 
getContentId()
Get content id. 
 
static afterPageHistoryEntry(ilPageObject $a_page, DOMDocument $a_old_domdoc, string $a_old_xml, int $a_old_nr)
After page history entry has been created. 
 
static afterPageUpdate(ilPageObject $a_page, DOMDocument $a_domdoc, string $a_xml, bool $a_creation)
After page has been updated (or created) 
 
static collectContentIncludes(ilPageObject $a_page, DOMDocument $a_domdoc)
get all content includes that are used within the page 
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
modifyPageContentPostXsl(string $a_output, string $a_mode, bool $a_abstract_only=false)
 
static saveUsage(string $a_pc_type, int $a_pc_id, string $a_usage_type, int $a_usage_id, int $a_usage_hist_nr=0, string $a_lang="-")
 
static beforePageDelete(ilPageObject $a_page)
Before page is being deleted. 
 
setContentType(string $a_type)
Set content type. 
 
static deleteHistoryLowerEqualThan(string $parent_type, int $page_id, string $lang, int $delete_lower_than_nr)
 
Content object of ilPageObject (see ILIAS DTD). 
 
setInstId(string $a_id)
Set installation id. 
 
Class ilPCContentInclude. 
 
static _lookupTitle(int $obj_id)
 
setContentIncludeAttribute(string $a_attr, string $a_value)
Set attribute of content include tag. 
 
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists. 
 
static deleteAllUsages(string $a_pc_type, string $a_usage_type, int $a_usage_id, int $a_usage_hist_nr=0, string $a_lang="-")
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
static saveContentIncludeUsage(ilPageObject $a_page, DOMDocument $a_domdoc, int $a_old_nr=0)
save content include usages 
 
setContentId(int $a_id)
Set content id. 
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
getContentIncludeAttribute(string $a_attr)
Get content include tag attribute. 
 
init()
Init page content component. 
 
create(ilPageObject $a_pg_obj, string $a_hier_id, string $a_pc_id="")
 
Class ilMediaPoolPage GUI class. 
 
getContentType()
Get content type. 
 
createInitialChildNode(string $hier_id, string $pc_id, string $child, array $child_attributes=[])