ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPageContent Class Reference

Content object of ilPageObject (see ILIAS DTD). More...

+ Inheritance diagram for ilPageContent:
+ Collaboration diagram for ilPageContent:

Public Member Functions

 __construct (ilPageObject $a_pg_obj, ?PageManagerInterface $page_manager=null, ?ObjectAdapterInterface $object_adapter=null)
 
 setPage (ilPageObject $a_val)
 
 getPage ()
 
 init ()
 Init object. More...
 
 getType ()
 
 getDomNode ()
 
 getDomDoc ()
 
 setDomNode (DOMNode $node)
 
 getChildNode ()
 
 getJavascriptFiles (string $a_mode)
 
 getCssFiles (string $a_mode)
 
 getOnloadCode (string $a_mode)
 
 setHierId (string $a_hier_id)
 
 getHierId ()
 
 lookupHierId ()
 
 readHierId ()
 
 setPcId (string $a_pcid)
 
 getPCId ()
 
 setFileDownloadLink (string $a_download_link)
 
 getFileDownloadLink ()
 
 setProfileBackUrl (string $url)
 
 getProfileBackUrl ()
 
 setFullscreenLink (string $a_fullscreen_link)
 
 getFullscreenLink ()
 
 setSourcecodeDownloadScript (string $script_name)
 
 getSourcecodeDownloadScript ()
 
 readPCId ()
 
 writePCId (string $a_pc_id)
 
 setEnabled (string $value)
 Set Enabled value for page content component. More...
 
 enable ()
 
 disable ()
 
 isEnabled ()
 
 createPageContentNode (bool $a_set_this_node=true)
 Create page content node (always use this method first when adding a new element) More...
 
 getNewPageContentNode ()
 
 modifyPageContentPostXsl (string $a_output, string $a_mode, bool $a_abstract_only=false)
 Modify page content after xsl. More...
 
 getModel ()
 Get model as needed for the front-end editor. More...
 

Static Public Member Functions

static sortHierIds (array $a_array)
 Sort an array of Hier IDS in ascending order. More...
 
static isGreaterHierId (string $a, string $b)
 Check whether Hier ID $a is greater than Hier ID $b. More...
 
static getLangVars ()
 Get lang vars needed for editing. More...
 
static handleCopiedContent (DOMDocument $a_domdoc, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0)
 Handle copied content. More...
 
static afterPageUpdate (ilPageObject $a_page, DOMDocument $a_domdoc, string $a_xml, bool $a_creation)
 After page has been updated (or created) More...
 
static beforePageDelete (ilPageObject $a_page)
 Before page is being deleted. More...
 
static afterRepositoryCopy (ilPageObject $page, array $mapping, int $source_ref_id)
 After repository (container) copy action. More...
 
static afterPageHistoryEntry (ilPageObject $a_page, DOMDocument $a_old_domdoc, string $a_old_xml, int $a_old_nr)
 After page history entry has been created. More...
 
static deleteHistoryLowerEqualThan (string $parent_type, int $page_id, string $lang, int $delete_lower_than_nr)
 Overwrite in derived classes, if old history entries are being deleted. More...
 

Data Fields

string $hier_id = ""
 
DOMNode $dom_node = null
 
string $page_lang = ""
 

Protected Member Functions

 getPageManager ()
 
 setType (string $a_type)
 Set Type. More...
 
 hasNode ()
 
 createInitialChildNode (string $hier_id, string $pc_id, string $child, array $child_attributes=[])
 

Protected Attributes

DOMDocument $dom_doc
 
ILIAS COPage InternalDomainService $domain
 
string $pcid
 
string $type = ""
 
ilPageObject $pg_obj
 
string $file_download_link
 
string $fullscreen_link
 
string $sourcecode_download_script
 
ilLogger $log
 
string $profile_back_url = ""
 
ILIAS COPage Dom DomUtil $dom_util
 
PageManagerInterface $page_manager = null
 
ObjectAdapterInterface $object = null
 

Detailed Description

Content object of ilPageObject (see ILIAS DTD).

Every concrete object should be an instance of a class derived from ilPageContent (e.g. ilParagraph, ilMediaObject, ...)

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 28 of file class.ilPageContent.php.

Constructor & Destructor Documentation

◆ __construct()

ilPageContent::__construct ( ilPageObject  $a_pg_obj,
?PageManagerInterface  $page_manager = null,
?ObjectAdapterInterface  $object_adapter = null 
)
final

Definition at line 51 of file class.ilPageContent.php.

References $DIC, ilPageObject\getDomDoc(), ilLoggerFactory\getLogger(), getType(), init(), and setPage().

55  {
56  global $DIC;
57 
58  $this->log = ilLoggerFactory::getLogger('copg');
59  $this->setPage($a_pg_obj);
60  $this->dom_doc = $a_pg_obj->getDomDoc();
61  //$this->dom = $a_pg_obj->getDom();
62  $this->domain = $DIC->copage()->internal()->domain();
63  $this->init();
64  if ($this->getType() == "") {
65  die("Error: ilPageContent::init() did not set type");
66  }
67  $this->page_manager = $page_manager ?? $DIC->copage()
68  ->internal()
69  ->domain()
70  ->page();
71  $this->object = $object_adapter ?? $DIC->copage()
72  ->internal()
73  ->domain()
74  ->object();
75  $this->dom_util = $DIC->copage()->internal()->domain()->domUtil();
76  }
init()
Init object.
static getLogger(string $a_component_id)
Get component logger.
PageManagerInterface $page_manager
setPage(ilPageObject $a_val)
getDomDoc()
Get dom doc (DOMDocument)
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ afterPageHistoryEntry()

static ilPageContent::afterPageHistoryEntry ( ilPageObject  $a_page,
DOMDocument  $a_old_domdoc,
string  $a_old_xml,
int  $a_old_nr 
)
static

After page history entry has been created.

Definition at line 400 of file class.ilPageContent.php.

405  : void {
406  }

◆ afterPageUpdate()

static ilPageContent::afterPageUpdate ( ilPageObject  $a_page,
DOMDocument  $a_domdoc,
string  $a_xml,
bool  $a_creation 
)
static

After page has been updated (or created)

Definition at line 373 of file class.ilPageContent.php.

378  : void {
379  }

◆ afterRepositoryCopy()

static ilPageContent::afterRepositoryCopy ( ilPageObject  $page,
array  $mapping,
int  $source_ref_id 
)
static

After repository (container) copy action.

Definition at line 393 of file class.ilPageContent.php.

Referenced by ilPCPlugged\getPluginName().

393  : void
394  {
395  }
+ Here is the caller graph for this function:

◆ beforePageDelete()

static ilPageContent::beforePageDelete ( ilPageObject  $a_page)
static

Before page is being deleted.

Parameters
ilPageObject$a_pagepage object

Definition at line 385 of file class.ilPageContent.php.

387  : void {
388  }

◆ createInitialChildNode()

ilPageContent::createInitialChildNode ( string  $hier_id,
string  $pc_id,
string  $child,
array  $child_attributes = [] 
)
protected

Definition at line 317 of file class.ilPageContent.php.

References createPageContentNode(), getDomNode(), getPage(), and IL_INSERT_AFTER.

Referenced by ilPCFileList\create(), ilPCTable\create(), ilPCMap\create(), ilPCResources\create(), ilPCList\create(), ilPCTabs\create(), ilPCProfile\create(), ilPCSkills\create(), ilPCDataTable\create(), ilPCVerification\create(), ilPCBlog\create(), ilPCPlaceHolder\create(), ilPCSection\create(), ilPCPlugged\create(), ilPCContentInclude\create(), ilPCLoginPageElement\create(), ilPCGrid\create(), and ilPCQuestion\create().

322  : void {
323  $this->createPageContentNode();
324  $node = $this->dom_doc->createElement($child);
325  $node = $this->getDomNode()->appendChild($node);
326  foreach ($child_attributes as $att => $value) {
327  $node->setAttribute($att, $value);
328  }
329  $this->getPage()->insertContent($this, $hier_id, IL_INSERT_AFTER, $pc_id);
330  }
const IL_INSERT_AFTER
createPageContentNode(bool $a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createPageContentNode()

ilPageContent::createPageContentNode ( bool  $a_set_this_node = true)

Create page content node (always use this method first when adding a new element)

Definition at line 303 of file class.ilPageContent.php.

References setDomNode().

Referenced by ilPCCurriculum\create(), ilPCLauncher\create(), ilPCLearningHistory\create(), ilPCPRGActionNote\create(), ilPCConsultationHours\create(), ilPCMyCourses\create(), ilPCPRGStatusInfo\create(), ilPCAMDPageList\create(), ilPCAMDForm\create(), ilPCMediaObject\create(), ilPCInteractiveImage\create(), ilPCParagraph\create(), and createInitialChildNode().

303  : DomNode
304  {
305  $node = $this->dom_doc->createElement("PageContent");
306  if ($a_set_this_node) {
307  $this->setDomNode($node);
308  }
309  return $node;
310  }
setDomNode(DOMNode $node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteHistoryLowerEqualThan()

static ilPageContent::deleteHistoryLowerEqualThan ( string  $parent_type,
int  $page_id,
string  $lang,
int  $delete_lower_than_nr 
)
static

Overwrite in derived classes, if old history entries are being deleted.

Definition at line 419 of file class.ilPageContent.php.

424  : void {
425  }

◆ disable()

ilPageContent::disable ( )

Definition at line 284 of file class.ilPageContent.php.

References setEnabled().

Referenced by ilPageContentGUI\deactivate().

284  : void
285  {
286  $this->setEnabled("False");
287  }
setEnabled(string $value)
Set Enabled value for page content component.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ enable()

ilPageContent::enable ( )

Definition at line 279 of file class.ilPageContent.php.

References setEnabled().

279  : void
280  {
281  $this->setEnabled("True");
282  }
setEnabled(string $value)
Set Enabled value for page content component.
+ Here is the call graph for this function:

◆ getChildNode()

ilPageContent::getChildNode ( )

Definition at line 128 of file class.ilPageContent.php.

References getDomNode().

Referenced by ilPCGrid\addCell(), ilPCGrid\addGridCell(), ilPCList\addItems(), ilPCTable\addRow(), ilPCTabs\addTab(), ilPCFileList\appendItem(), ilPCParagraph\autoLinkGlossaries(), ilPCQuestion\copyPoolQuestionIntoPage(), ilPCFileList\deleteFileItems(), ilPCGrid\deleteGridCell(), ilPCTabs\deleteTab(), ilPCTable\fixHideAndSpans(), ilPCSection\getActiveFrom(), ilPCSection\getActiveTo(), ilPCLoginPageElement\getAlignment(), ilPCTable\getAllCellAlignments(), ilPCTable\getAllCellClasses(), ilPCTable\getAllCellSpans(), ilPCTable\getAllCellWidths(), ilPCFileList\getAllClasses(), ilPCParagraph\getAutoIndent(), ilPCTabs\getAutoTime(), ilPCTabs\getBehavior(), ilPCBlog\getBlogId(), ilPCMap\getCaption(), ilPCTabs\getCaptions(), ilPCGrid\getCellData(), ilPCSection\getCharacteristic(), ilPCParagraph\getCharacteristic(), ilPCLearningHistory\getClasses(), ilPCPlaceHolder\getContentClass(), ilPCTabs\getContentHeight(), ilPCContentInclude\getContentIncludeAttribute(), ilPCTabs\getContentWidth(), ilPCVerification\getData(), ilPCParagraph\getDownloadTitle(), ilPCProfile\getFields(), ilPCAMDPageList\getFieldValues(), ilPCFileList\getFileList(), ilPCLearningHistory\getFrom(), ilPCConsultationHours\getGroupIds(), ilPCPlaceHolder\getHeight(), ilPCMap\getHeight(), ilPCTabs\getHorizontalAlign(), ilPCMap\getHorizontalAlign(), ilPCResources\getItemGroupRefId(), ilPCList\getItemStyleClass(), ilPCFileList\getLanguage(), ilPCParagraph\getLanguage(), ilPCMap\getLatitude(), ilPCSection\getLink(), ilPCFileList\getListTitle(), ilPCList\getListType(), ilPCLoginPageElement\getLoginPageElementType(), ilPCMap\getLongitude(), ilPCResources\getMainType(), ilPCMediaObject\getMediaAliasNode(), ilPCProfile\getMode(), ilPCAMDPageList\getMode(), ilPCSection\getModel(), ilPCTable\getModel(), ilPCList\getNumberingType(), ilPCList\getOrderType(), ilPCSection\getPermission(), ilPCSection\getPermissionRefId(), ilPCPlugged\getPluginName(), ilPCPlugged\getPluginVersion(), ilPCBlog\getPostings(), ilPCPlugged\getProperties(), ilPCSection\getProtected(), ilPCQuestion\getQuestionReference(), ilPCTabs\getRandomStart(), ilPCAMDForm\getRecordIds(), ilPCResources\getResourceListType(), ilPCParagraph\getShowLineNumbers(), ilPCSkills\getSkillId(), ilPCMyCourses\getSorting(), ilPCList\getStartValue(), ilPCList\getStyleClass(), ilPCParagraph\getSubCharacteristic(), ilPCTable\getTableAttribute(), ilPCTabs\getTabType(), ilPCTabs\getTemplate(), ilPCParagraph\getText(), ilPCLearningHistory\getTo(), ilPCMap\getWidth(), ilPCMap\getZoom(), ilPCTabs\saveCaption(), ilPCTabs\saveCaptions(), ilPCGrid\savePositions(), ilPCTabs\savePositions(), ilPCFileList\savePositions(), ilPCFileList\saveStyleClasses(), ilPCGrid\saveWidths(), ilPCSection\setActiveFrom(), ilPCSection\setActiveTo(), ilPCLoginPageElement\setAlignment(), ilPCParagraph\setAutoIndent(), ilPCMap\setCaption(), ilPCTable\setCaption(), ilPCSection\setCharacteristic(), ilPCParagraph\setCharacteristic(), ilPCLearningHistory\setClasses(), ilPCPlaceHolder\setContentClass(), ilPCContentInclude\setContentIncludeAttribute(), ilPCSkills\setData(), ilPCVerification\setData(), ilPCBlog\setData(), ilPCConsultationHours\setData(), ilPCMyCourses\setData(), ilPCAMDPageList\setData(), ilPCParagraph\setDownloadTitle(), ilPCSection\setExtLink(), ilPCProfile\setFields(), ilPCTable\setFirstRowStyle(), ilPCLearningHistory\setFrom(), ilPCPlaceHolder\setHeight(), ilPCTable\setHorizontalAlign(), ilPCSection\setIntLink(), ilPCResources\setItemGroupRefId(), ilPCList\setItemStyleClass(), ilPCParagraph\setLanguage(), ilPCMap\setLatitude(), ilPCMap\setLayout(), ilPCFileList\setListTitle(), ilPCList\setListType(), ilPCLoginPageElement\setLoginPageElementType(), ilPCMap\setLongitude(), ilPCSection\setNoLink(), ilPCList\setNumberingType(), ilPCSection\setPermission(), ilPCSection\setPermissionRefId(), ilPCPlugged\setPluginName(), ilPCPlugged\setPluginVersion(), ilPCPlugged\setProperties(), ilPCSection\setProtected(), ilPCQuestion\setQuestionReference(), ilPCAMDForm\setRecordIds(), ilPCResources\setResourceListType(), ilPCParagraph\setShowLineNumbers(), ilPCList\setStartValue(), ilPCList\setStyleClass(), ilPCParagraph\setSubCharacteristic(), ilPCTable\setTableAttribute(), ilPCTabs\setTabsAttribute(), ilPCTable\setTDSpans(), ilPCParagraph\setText(), ilPCLearningHistory\setTo(), and ilPCMap\setZoom().

128  : ?DOMNode
129  {
130  return $this->getDomNode()?->firstChild;
131  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCssFiles()

ilPageContent::getCssFiles ( string  $a_mode)

Definition at line 138 of file class.ilPageContent.php.

138  : array
139  {
140  return [];
141  }

◆ getDomDoc()

ilPageContent::getDomDoc ( )

◆ getDomNode()

ilPageContent::getDomNode ( )

Definition at line 113 of file class.ilPageContent.php.

References $dom_node.

Referenced by ilPCCurriculum\create(), ilPCLauncher\create(), ilPCLearningHistory\create(), ilPCConsultationHours\create(), ilPCMyCourses\create(), ilPCAMDPageList\create(), ilPCAMDForm\create(), ilPCParagraph\create(), ilPCMediaObject\createAlias(), ilPCInteractiveImage\createAlias(), createInitialChildNode(), ilPCGridCell\deleteCell(), ilPCTableData\deleteCol(), ilPCTab\deleteItem(), ilPCListItem\deleteItem(), ilPCFileItem\deleteItem(), ilPCTableData\deleteRow(), ilPCInteractiveImage\dumpXML(), ilPCMediaObject\dumpXML(), getChildNode(), ilPCFileItem\getListPCId(), ilPCTableData\initTablePCNode(), ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContent(), isEnabled(), lookupHierId(), ilPCGridCell\moveCellLeft(), ilPCGridCell\moveCellRight(), ilPCTableData\moveColLeft(), ilPCTableData\moveColRight(), ilPCTab\moveItemDown(), ilPCListItem\moveItemDown(), ilPCFileItem\moveItemDown(), ilPCTab\moveItemUp(), ilPCListItem\moveItemUp(), ilPCFileItem\moveItemUp(), ilPCTableData\moveRowDown(), ilPCTableData\moveRowUp(), ilPCTableData\newColAfter(), ilPCTableData\newColBefore(), ilPCFileItem\newItemAfter(), ilPCListItem\newItemAfter(), ilPCTab\newItemAfter(), ilPCTab\newItemBefore(), ilPCListItem\newItemBefore(), ilPCFileItem\newItemBefore(), ilPCTableData\newRowAfter(), ilPCTableData\newRowBefore(), readHierId(), readPCId(), setEnabled(), ilPCParagraph\setText(), and writePCId().

113  : ?DOMNode
114  {
115  return $this->dom_node;
116  }
+ Here is the caller graph for this function:

◆ getFileDownloadLink()

ilPageContent::getFileDownloadLink ( )

Definition at line 192 of file class.ilPageContent.php.

References $file_download_link.

Referenced by ilPCContentInclude\modifyPageContentPostXsl().

192  : string
193  {
195  }
+ Here is the caller graph for this function:

◆ getFullscreenLink()

ilPageContent::getFullscreenLink ( )

Definition at line 212 of file class.ilPageContent.php.

References $fullscreen_link.

Referenced by ilPCContentInclude\modifyPageContentPostXsl().

212  : string
213  {
214  return $this->fullscreen_link;
215  }
+ Here is the caller graph for this function:

◆ getHierId()

◆ getJavascriptFiles()

ilPageContent::getJavascriptFiles ( string  $a_mode)

Definition at line 133 of file class.ilPageContent.php.

133  : array
134  {
135  return array();
136  }

◆ getLangVars()

static ilPageContent::getLangVars ( )
static

Get lang vars needed for editing.

Returns
string[] array of lang var keys

Definition at line 336 of file class.ilPageContent.php.

336  : array
337  {
338  return array();
339  }

◆ getModel()

ilPageContent::getModel ( )

Get model as needed for the front-end editor.

Definition at line 411 of file class.ilPageContent.php.

References null.

411  : ?stdClass
412  {
413  return null;
414  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ getNewPageContentNode()

ilPageContent::getNewPageContentNode ( )

Definition at line 312 of file class.ilPageContent.php.

Referenced by ilPCTable\addCell(), ilPCParagraph\createAfter(), ilPCTable\getCellNode(), and ilPCDataTable\makeEmptyCell().

312  : DOMNode
313  {
314  return $this->dom_doc->createElement("PageContent");
315  }
+ Here is the caller graph for this function:

◆ getOnloadCode()

ilPageContent::getOnloadCode ( string  $a_mode)

Definition at line 143 of file class.ilPageContent.php.

143  : array
144  {
145  return array();
146  }

◆ getPage()

ilPageContent::getPage ( )

Definition at line 88 of file class.ilPageContent.php.

References $pg_obj, and init().

Referenced by ilPCTabs\addAbove(), ilPCTabs\addBelow(), ilPCLayoutTemplate\create(), ilPCContentTemplate\create(), createInitialChildNode(), ilPCTabs\deletePanel(), ilPCTableData\fixHideAndSpans(), ilPCQuestion\getCssFiles(), ilPCPlugged\getCssFiles(), ilPCMediaObject\getFullscreenMediaAliasItem(), ilPCQuestion\getJavascriptFiles(), ilPCPlugged\getJavascriptFiles(), ilPCTabs\getNodeXml(), ilPCQuestion\getOnloadCode(), ilPCLearningHistory\getPresentation(), ilPCQuestion\getQuestionIds(), ilPCQuestion\getQuestionJsOfPage(), ilPCAMDPageList\handleCopiedContent(), ilPCParagraph\insert(), ilPCAMDForm\isTemplate(), ilPCSourceCode\modifyPageContentPostXsl(), ilPCLauncher\modifyPageContentPostXsl(), ilPCCurriculum\modifyPageContentPostXsl(), ilPCPRGActionNote\modifyPageContentPostXsl(), ilPCPRGStatusInfo\modifyPageContentPostXsl(), ilPCAMDForm\modifyPageContentPostXsl(), ilPCTab\modifyPageContentPostXsl(), ilPCQuestion\modifyPageContentPostXsl(), ilPCAMDPageList\modifyPageContentPostXsl(), ilPCContentInclude\modifyPageContentPostXsl(), ilPCPlugged\modifyPageContentPostXsl(), ilPCMediaObject\modifyPageContentPostXsl(), ilPCTabs\moveBottom(), ilPCTabs\moveDown(), ilPCTabs\moveTop(), ilPCTabs\moveUp(), ilPCParagraph\saveJS(), and ilPCParagraph\setText().

88  : ilPageObject
89  {
90  return $this->pg_obj;
91  }
ilPageObject $pg_obj
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPageManager()

ilPageContent::getPageManager ( )
protected

Definition at line 78 of file class.ilPageContent.php.

References $page_manager.

Referenced by ilPCContentTemplate\getTemplatePage().

+ Here is the caller graph for this function:

◆ getPCId()

◆ getProfileBackUrl()

ilPageContent::getProfileBackUrl ( )

Definition at line 202 of file class.ilPageContent.php.

References $profile_back_url.

Referenced by ilPCContentInclude\modifyPageContentPostXsl().

202  : string
203  {
205  }
+ Here is the caller graph for this function:

◆ getSourcecodeDownloadScript()

ilPageContent::getSourcecodeDownloadScript ( )

Definition at line 222 of file class.ilPageContent.php.

References $sourcecode_download_script.

Referenced by ilPCContentInclude\modifyPageContentPostXsl().

222  : string
223  {
225  }
string $sourcecode_download_script
+ Here is the caller graph for this function:

◆ getType()

ilPageContent::getType ( )

Definition at line 108 of file class.ilPageContent.php.

References $type.

Referenced by __construct(), ilGlossaryDefPage\beforePageContentUpdate(), ilLMPage\beforePageContentUpdate(), ilPageEditorGUI\characteristic(), and ilPageEditorGUI\executeCommand().

108  : string
109  {
110  return $this->type;
111  }
+ Here is the caller graph for this function:

◆ handleCopiedContent()

static ilPageContent::handleCopiedContent ( DOMDocument  $a_domdoc,
bool  $a_self_ass = true,
bool  $a_clone_mobs = false,
int  $new_parent_id = 0,
int  $obj_copy_id = 0 
)
static

Handle copied content.

This function must, e.g. create copies of objects referenced within the content (e.g. question objects)

Parameters
DOMDocument$a_domdoc
bool$a_self_ass
bool$a_clone_mobs
int$new_parent_id
int$obj_copy_id

Definition at line 350 of file class.ilPageContent.php.

356  : void {
357  }

◆ hasNode()

ilPageContent::hasNode ( )
protected

Definition at line 164 of file class.ilPageContent.php.

Referenced by isEnabled(), readHierId(), readPCId(), setEnabled(), and writePCId().

164  : bool
165  {
166  return is_object($this->dom_node);
167  }
+ Here is the caller graph for this function:

◆ init()

ilPageContent::init ( )
abstract

Init object.

This function must be overwritten and at least set the content type.

Referenced by __construct(), and getPage().

+ Here is the caller graph for this function:

◆ isEnabled()

ilPageContent::isEnabled ( )
final

Definition at line 289 of file class.ilPageContent.php.

References getDomNode(), and hasNode().

289  : bool
290  {
291  if ($this->hasNode() && $this->getDomNode()->hasAttribute("Enabled")) {
292  $compare = $this->getDomNode()->getAttribute("Enabled");
293  } else {
294  $compare = "True";
295  }
296 
297  return strcasecmp($compare, "true") == 0;
298  }
+ Here is the call graph for this function:

◆ isGreaterHierId()

static ilPageContent::isGreaterHierId ( string  $a,
string  $b 
)
static

Check whether Hier ID $a is greater than Hier ID $b.

Definition at line 254 of file class.ilPageContent.php.

References ILIAS\Repository\int().

254  : int
255  {
256  $a_arr = explode("_", $a);
257  $b_arr = explode("_", $b);
258  for ($i = 0; $i < count($a_arr); $i++) {
259  if ((int) $a_arr[$i] > (int) $b_arr[$i]) {
260  return +1;
261  } elseif ((int) $a_arr[$i] < (int) $b_arr[$i]) {
262  return -1;
263  }
264  }
265  return 0;
266  }
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
+ Here is the call graph for this function:

◆ lookupHierId()

ilPageContent::lookupHierId ( )

Definition at line 159 of file class.ilPageContent.php.

References getDomNode().

159  : string
160  {
161  return $this->getDomNode()->getAttribute("HierId");
162  }
+ Here is the call graph for this function:

◆ modifyPageContentPostXsl()

ilPageContent::modifyPageContentPostXsl ( string  $a_output,
string  $a_mode,
bool  $a_abstract_only = false 
)

Modify page content after xsl.

Definition at line 362 of file class.ilPageContent.php.

366  : string {
367  return $a_output;
368  }

◆ readHierId()

ilPageContent::readHierId ( )

Definition at line 169 of file class.ilPageContent.php.

References getDomNode(), and hasNode().

Referenced by ilPCInteractiveImage\setDomNode().

169  : string
170  {
171  if ($this->hasNode()) {
172  return $this->getDomNode()->getAttribute("HierId");
173  }
174  return "";
175  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readPCId()

ilPageContent::readPCId ( )

Definition at line 227 of file class.ilPageContent.php.

References getDomNode(), and hasNode().

Referenced by ilPCInteractiveImage\setDomNode().

227  : string
228  {
229  if ($this->hasNode()) {
230  return $this->getDomNode()->getAttribute("PCID");
231  }
232  return "";
233  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setDomNode()

ilPageContent::setDomNode ( DOMNode  $node)

Definition at line 123 of file class.ilPageContent.php.

Referenced by ilPCParagraph\createAfter(), ilPCMediaObject\createAlias(), createPageContentNode(), and ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\insertContent().

123  : void
124  {
125  $this->dom_node = $node;
126  }
+ Here is the caller graph for this function:

◆ setEnabled()

ilPageContent::setEnabled ( string  $value)

Set Enabled value for page content component.

Parameters
string$value"True" | "False"

Definition at line 272 of file class.ilPageContent.php.

References getDomNode(), and hasNode().

Referenced by disable(), and enable().

272  : void
273  {
274  if ($this->hasNode()) {
275  $this->getDomNode()->setAttribute("Enabled", $value);
276  }
277  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFileDownloadLink()

ilPageContent::setFileDownloadLink ( string  $a_download_link)

Definition at line 187 of file class.ilPageContent.php.

187  : void
188  {
189  $this->file_download_link = $a_download_link;
190  }

◆ setFullscreenLink()

ilPageContent::setFullscreenLink ( string  $a_fullscreen_link)

Definition at line 207 of file class.ilPageContent.php.

207  : void
208  {
209  $this->fullscreen_link = $a_fullscreen_link;
210  }

◆ setHierId()

ilPageContent::setHierId ( string  $a_hier_id)

Definition at line 148 of file class.ilPageContent.php.

148  : void
149  {
150  $this->hier_id = $a_hier_id;
151  }

◆ setPage()

ilPageContent::setPage ( ilPageObject  $a_val)

Definition at line 83 of file class.ilPageContent.php.

Referenced by __construct().

83  : void
84  {
85  $this->pg_obj = $a_val;
86  }
+ Here is the caller graph for this function:

◆ setPcId()

ilPageContent::setPcId ( string  $a_pcid)

Definition at line 177 of file class.ilPageContent.php.

177  : void
178  {
179  $this->pcid = $a_pcid;
180  }

◆ setProfileBackUrl()

ilPageContent::setProfileBackUrl ( string  $url)

Definition at line 197 of file class.ilPageContent.php.

References $url.

197  : void
198  {
199  $this->profile_back_url = $url;
200  }
$url
Definition: shib_logout.php:66

◆ setSourcecodeDownloadScript()

ilPageContent::setSourcecodeDownloadScript ( string  $script_name)

Definition at line 217 of file class.ilPageContent.php.

217  : void
218  {
219  $this->sourcecode_download_script = $script_name;
220  }

◆ setType()

◆ sortHierIds()

static ilPageContent::sortHierIds ( array  $a_array)
static

Sort an array of Hier IDS in ascending order.

Definition at line 245 of file class.ilPageContent.php.

Referenced by ILIAS\UI\Implementation\Component\Layout\Page\PageContentManager\copyContents().

245  : array
246  {
247  uasort($a_array, array("ilPageContent", "isGreaterHierId"));
248  return $a_array;
249  }
+ Here is the caller graph for this function:

◆ writePCId()

ilPageContent::writePCId ( string  $a_pc_id)

Definition at line 235 of file class.ilPageContent.php.

References getDomNode(), and hasNode().

235  : void
236  {
237  if ($this->hasNode()) {
238  $this->getDomNode()->setAttribute("PCID", $a_pc_id);
239  }
240  }
+ Here is the call graph for this function:

Field Documentation

◆ $dom_doc

DOMDocument ilPageContent::$dom_doc
protected

Definition at line 30 of file class.ilPageContent.php.

Referenced by getDomDoc().

◆ $dom_node

DOMNode ilPageContent::$dom_node = null

Definition at line 36 of file class.ilPageContent.php.

Referenced by getDomNode().

◆ $dom_util

◆ $domain

ILIAS COPage InternalDomainService ilPageContent::$domain
protected

Definition at line 31 of file class.ilPageContent.php.

◆ $file_download_link

string ilPageContent::$file_download_link
protected

Definition at line 39 of file class.ilPageContent.php.

Referenced by getFileDownloadLink().

◆ $fullscreen_link

string ilPageContent::$fullscreen_link
protected

Definition at line 41 of file class.ilPageContent.php.

Referenced by getFullscreenLink().

◆ $hier_id

◆ $log

◆ $object

ObjectAdapterInterface ilPageContent::$object = null
protected

Definition at line 49 of file class.ilPageContent.php.

◆ $page_lang

string ilPageContent::$page_lang = ""

Definition at line 37 of file class.ilPageContent.php.

◆ $page_manager

PageManagerInterface ilPageContent::$page_manager = null
protected

Definition at line 48 of file class.ilPageContent.php.

Referenced by getPageManager().

◆ $pcid

string ilPageContent::$pcid
protected

Definition at line 32 of file class.ilPageContent.php.

Referenced by getPCId().

◆ $pg_obj

ilPageObject ilPageContent::$pg_obj
protected

Definition at line 34 of file class.ilPageContent.php.

Referenced by getPage().

◆ $profile_back_url

string ilPageContent::$profile_back_url = ""
protected

Definition at line 45 of file class.ilPageContent.php.

Referenced by getProfileBackUrl().

◆ $sourcecode_download_script

string ilPageContent::$sourcecode_download_script
protected

Definition at line 43 of file class.ilPageContent.php.

Referenced by getSourcecodeDownloadScript().

◆ $type

string ilPageContent::$type = ""
protected

Definition at line 33 of file class.ilPageContent.php.

Referenced by ilPCContentInclude\collectContentIncludes(), and getType().


The documentation for this class was generated from the following file: