ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Content object of ilPageObject (see ILIAS DTD). More...
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 |
Content object of ilPageObject (see ILIAS DTD).
Every concrete object should be an instance of a class derived from ilPageContent (e.g. ilParagraph, ilMediaObject, ...)
Definition at line 28 of file class.ilPageContent.php.
|
final |
Definition at line 51 of file class.ilPageContent.php.
References $DIC, $page_manager, ilPageObject\getDomDoc(), ilLoggerFactory\getLogger(), getType(), init(), and setPage().
|
static |
After page history entry has been created.
Reimplemented in ilPCContentInclude, ilPCFileList, ilPCMediaObject, ilPCParagraph, ilPCSkills, and ilPCLearningHistory.
Definition at line 400 of file class.ilPageContent.php.
|
static |
After page has been updated (or created)
Reimplemented in ilPCContentInclude, ilPCFileList, ilPCMediaObject, ilPCParagraph, ilPCQuestion, ilPCSection, ilPCSkills, and ilPCLearningHistory.
Definition at line 373 of file class.ilPageContent.php.
|
static |
After repository (container) copy action.
Definition at line 393 of file class.ilPageContent.php.
|
static |
Before page is being deleted.
ilPageObject | $a_page | page object |
Reimplemented in ilPCContentInclude, ilPCFileList, ilPCMediaObject, ilPCParagraph, ilPCQuestion, ilPCSkills, and ilPCLearningHistory.
Definition at line 385 of file class.ilPageContent.php.
|
protected |
Definition at line 317 of file class.ilPageContent.php.
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 ilPCInteractiveImage\create(), ilPCMediaObject\create(), and ilPCLearningHistory\create().
|
static |
Overwrite in derived classes, if old history entries are being deleted.
Reimplemented in ilPCContentInclude, ilPCFileList, ilPCMediaObject, and ilPCSkills.
Definition at line 419 of file class.ilPageContent.php.
ilPageContent::disable | ( | ) |
Definition at line 284 of file class.ilPageContent.php.
References setEnabled().
Referenced by ilPageContentGUI\deactivate().
ilPageContent::enable | ( | ) |
Definition at line 279 of file class.ilPageContent.php.
References setEnabled().
ilPageContent::getChildNode | ( | ) |
Definition at line 128 of file class.ilPageContent.php.
References getDomNode().
Referenced by ilPCLearningHistory\getClasses(), ilPCLearningHistory\getFrom(), ilPCQuestion\getQuestionReference(), ilPCLearningHistory\getTo(), ilPCLearningHistory\setClasses(), ilPCLearningHistory\setFrom(), ilPCQuestion\setQuestionReference(), and ilPCLearningHistory\setTo().
ilPageContent::getCssFiles | ( | string | $a_mode | ) |
Reimplemented in ilPCGrid, ilPCMediaObject, ilPCPlaceHolder, ilPCPlugged, ilPCQuestion, and ilPCTabs.
Definition at line 138 of file class.ilPageContent.php.
ilPageContent::getDomDoc | ( | ) |
Definition at line 118 of file class.ilPageContent.php.
References $dom_doc.
Referenced by ilPCLayoutTemplate\create(), ilPCContentTemplate\create(), and ilPCInteractiveImage\setDomNode().
ilPageContent::getDomNode | ( | ) |
Definition at line 113 of file class.ilPageContent.php.
References $dom_node.
Referenced by ilPCLearningHistory\create(), ilPCGridCell\deleteCell(), ilPCListItem\deleteItem(), ilPCTab\deleteItem(), getChildNode(), isEnabled(), lookupHierId(), ilPCGridCell\moveCellLeft(), ilPCGridCell\moveCellRight(), ilPCListItem\moveItemDown(), ilPCTab\moveItemDown(), ilPCListItem\moveItemUp(), ilPCTab\moveItemUp(), ilPCListItem\newItemAfter(), ilPCTab\newItemAfter(), ilPCListItem\newItemBefore(), ilPCTab\newItemBefore(), ilPCTableData\newRowAfter(), ilPCTableData\newRowBefore(), readHierId(), readPCId(), setEnabled(), and writePCId().
ilPageContent::getFileDownloadLink | ( | ) |
Definition at line 192 of file class.ilPageContent.php.
References $file_download_link.
ilPageContent::getFullscreenLink | ( | ) |
Definition at line 212 of file class.ilPageContent.php.
References $fullscreen_link.
ilPageContent::getHierId | ( | ) |
Definition at line 153 of file class.ilPageContent.php.
References $hier_id.
ilPageContent::getJavascriptFiles | ( | string | $a_mode | ) |
Reimplemented in ilPCGrid, ilPCMediaObject, ilPCParagraph, ilPCPlugged, ilPCQuestion, and ilPCTabs.
Definition at line 133 of file class.ilPageContent.php.
|
static |
Get lang vars needed for editing.
Reimplemented in ilPCFileList, ilPCGrid, ilPCLoginPageElement, ilPCMediaObject, ilPCPlaceHolder, ilPCProfile, ilPCQuestion, ilPCResources, ilPCSection, ilPCSourceCode, ilPCTable, ilPCTabs, ilPCVerification, ilPCLearningHistory, ilPCAMDForm, ilPCConsultationHours, ilPCMyCourses, and ilPCAMDPageList.
Definition at line 336 of file class.ilPageContent.php.
ilPageContent::getModel | ( | ) |
Get model as needed for the front-end editor.
Reimplemented in ilPCParagraph, ilPCPlaceHolder, ilPCSection, and ilPCTable.
Definition at line 411 of file class.ilPageContent.php.
ilPageContent::getNewPageContentNode | ( | ) |
Definition at line 312 of file class.ilPageContent.php.
Referenced by ilPCParagraph\createAfter().
ilPageContent::getOnloadCode | ( | string | $a_mode | ) |
Reimplemented in ilPCMediaObject, ilPCParagraph, and ilPCQuestion.
Definition at line 143 of file class.ilPageContent.php.
ilPageContent::getPage | ( | ) |
Definition at line 88 of file class.ilPageContent.php.
References $pg_obj.
Referenced by ilPCLayoutTemplate\create(), ilPCContentTemplate\create(), ilPCAMDForm\isTemplate(), and ilPCSourceCode\modifyPageContentPostXsl().
|
protected |
Definition at line 78 of file class.ilPageContent.php.
References $page_manager.
Referenced by ilPCContentTemplate\getTemplatePage().
ilPageContent::getPCId | ( | ) |
ilPageContent::getProfileBackUrl | ( | ) |
Definition at line 202 of file class.ilPageContent.php.
References $profile_back_url.
ilPageContent::getSourcecodeDownloadScript | ( | ) |
Definition at line 222 of file class.ilPageContent.php.
References $sourcecode_download_script.
ilPageContent::getType | ( | ) |
Reimplemented in ilPCParagraph.
Definition at line 108 of file class.ilPageContent.php.
References $type.
Referenced by __construct(), ilGlossaryDefPage\beforePageContentUpdate(), ilLMPage\beforePageContentUpdate(), ilPageEditorGUI\characteristic(), and ilPageEditorGUI\executeCommand().
|
static |
Handle copied content.
This function must, e.g. create copies of objects referenced within the content (e.g. question objects)
DOMDocument | $a_domdoc | |
bool | $a_self_ass | |
bool | $a_clone_mobs | |
int | $new_parent_id | |
int | $obj_copy_id |
Reimplemented in ilPCInteractiveImage, ilPCMediaObject, ilPCPlaceHolder, ilPCQuestion, ilPCTable, ilPCAMDForm, and ilPCAMDPageList.
Definition at line 350 of file class.ilPageContent.php.
|
protected |
Definition at line 164 of file class.ilPageContent.php.
Referenced by isEnabled(), readHierId(), readPCId(), setEnabled(), and writePCId().
|
abstract |
Init object.
This function must be overwritten and at least set the content type.
Reimplemented in ilPCBlog, ilPCContentInclude, ilPCContentTemplate, ilPCFileItem, ilPCFileList, ilPCGrid, ilPCGridCell, ilPCContentPopup, ilPCInteractiveImage, ilPCLayoutTemplate, ilPCList, ilPCListItem, ilPCLoginPageElement, ilPCMap, ilPCMediaObject, ilPCParagraph, ilPCPlaceHolder, ilPCPlugged, ilPCProfile, ilPCQuestion, ilPCResources, ilPCSection, ilPCSkills, ilPCSourceCode, ilPCDataTable, ilPCTable, ilPCTableData, ilPCTab, ilPCTabs, ilPCVerification, ilPCLearningHistory, ilPCCurriculum, ilPCLauncher, ilPCAMDForm, ilPCConsultationHours, ilPCMyCourses, ilPCPRGActionNote, ilPCPRGStatusInfo, and ilPCAMDPageList.
Referenced by __construct().
|
final |
Definition at line 289 of file class.ilPageContent.php.
References getDomNode(), and hasNode().
|
static |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 254 of file class.ilPageContent.php.
References Vendor\Package\$a, Vendor\Package\$b, and ILIAS\Repository\int().
ilPageContent::lookupHierId | ( | ) |
Definition at line 159 of file class.ilPageContent.php.
References getDomNode().
ilPageContent::modifyPageContentPostXsl | ( | string | $a_output, |
string | $a_mode, | ||
bool | $a_abstract_only = false |
||
) |
Modify page content after xsl.
Reimplemented in ilPCContentInclude, ilPCInteractiveImage, ilPCMap, ilPCMediaObject, ilPCPlaceHolder, ilPCPlugged, ilPCQuestion, ilPCSection, ilPCTab, ilPCTabs, ilPCLearningHistory, ilPCCurriculum, ilPCLauncher, ilPCAMDForm, ilPCPRGActionNote, ilPCPRGStatusInfo, ilPCAMDPageList, and ilPCSourceCode.
Definition at line 362 of file class.ilPageContent.php.
ilPageContent::readHierId | ( | ) |
Definition at line 169 of file class.ilPageContent.php.
References getDomNode(), and hasNode().
Referenced by ilPCInteractiveImage\setDomNode().
ilPageContent::readPCId | ( | ) |
Definition at line 227 of file class.ilPageContent.php.
References getDomNode(), and hasNode().
Referenced by ilPCInteractiveImage\setDomNode().
ilPageContent::setDomNode | ( | DOMNode | $node | ) |
Reimplemented in ilPCInteractiveImage.
Definition at line 123 of file class.ilPageContent.php.
Referenced by ilPCParagraph\createAfter(), and createPageContentNode().
ilPageContent::setEnabled | ( | string | $value | ) |
Set Enabled value for page content component.
string | $value | "True" | "False" |
Definition at line 272 of file class.ilPageContent.php.
References getDomNode(), and hasNode().
Referenced by disable(), and enable().
ilPageContent::setFileDownloadLink | ( | string | $a_download_link | ) |
Definition at line 187 of file class.ilPageContent.php.
ilPageContent::setFullscreenLink | ( | string | $a_fullscreen_link | ) |
Definition at line 207 of file class.ilPageContent.php.
ilPageContent::setHierId | ( | string | $a_hier_id | ) |
Reimplemented in ilPCMediaObject.
Definition at line 148 of file class.ilPageContent.php.
ilPageContent::setPage | ( | ilPageObject | $a_val | ) |
Definition at line 83 of file class.ilPageContent.php.
Referenced by __construct().
ilPageContent::setPcId | ( | string | $a_pcid | ) |
Definition at line 177 of file class.ilPageContent.php.
ilPageContent::setProfileBackUrl | ( | string | $url | ) |
Definition at line 197 of file class.ilPageContent.php.
References $url.
ilPageContent::setSourcecodeDownloadScript | ( | string | $script_name | ) |
Definition at line 217 of file class.ilPageContent.php.
|
finalprotected |
Set Type.
Must be called in constructor.
string | $a_type | type of page content component |
Definition at line 103 of file class.ilPageContent.php.
Referenced by ilPCBlog\init(), ilPCContentInclude\init(), ilPCContentTemplate\init(), ilPCFileItem\init(), ilPCFileList\init(), ilPCGrid\init(), ilPCGridCell\init(), ilPCContentPopup\init(), ilPCInteractiveImage\init(), ilPCLayoutTemplate\init(), ilPCList\init(), ilPCListItem\init(), ilPCLoginPageElement\init(), ilPCMap\init(), ilPCMediaObject\init(), ilPCParagraph\init(), ilPCPlaceHolder\init(), ilPCPlugged\init(), ilPCProfile\init(), ilPCQuestion\init(), ilPCResources\init(), ilPCSection\init(), ilPCSkills\init(), ilPCSourceCode\init(), ilPCDataTable\init(), ilPCTable\init(), ilPCTableData\init(), ilPCTab\init(), ilPCTabs\init(), ilPCVerification\init(), ilPCLearningHistory\init(), ilPCCurriculum\init(), ilPCLauncher\init(), ilPCAMDForm\init(), ilPCConsultationHours\init(), ilPCMyCourses\init(), ilPCPRGActionNote\init(), ilPCPRGStatusInfo\init(), and ilPCAMDPageList\init().
|
static |
Sort an array of Hier IDS in ascending order.
Definition at line 245 of file class.ilPageContent.php.
ilPageContent::writePCId | ( | string | $a_pc_id | ) |
Definition at line 235 of file class.ilPageContent.php.
References getDomNode(), and hasNode().
|
protected |
Definition at line 30 of file class.ilPageContent.php.
Referenced by getDomDoc().
DOMNode ilPageContent::$dom_node = null |
Definition at line 36 of file class.ilPageContent.php.
Referenced by getDomNode(), and ilPCInteractiveImage\setDomNode().
|
protected |
Definition at line 47 of file class.ilPageContent.php.
|
protected |
Definition at line 31 of file class.ilPageContent.php.
|
protected |
Definition at line 39 of file class.ilPageContent.php.
Referenced by getFileDownloadLink().
|
protected |
Definition at line 41 of file class.ilPageContent.php.
Referenced by getFullscreenLink().
string ilPageContent::$hier_id = "" |
Definition at line 35 of file class.ilPageContent.php.
Referenced by ilPCLayoutTemplate\create(), ilPCContentTemplate\create(), and getHierId().
|
protected |
Definition at line 44 of file class.ilPageContent.php.
|
protected |
Definition at line 49 of file class.ilPageContent.php.
string ilPageContent::$page_lang = "" |
Definition at line 37 of file class.ilPageContent.php.
|
protected |
Definition at line 48 of file class.ilPageContent.php.
Referenced by __construct(), and getPageManager().
|
protected |
Definition at line 32 of file class.ilPageContent.php.
Referenced by getPCId().
|
protected |
Definition at line 34 of file class.ilPageContent.php.
Referenced by getPage().
|
protected |
Definition at line 45 of file class.ilPageContent.php.
Referenced by getProfileBackUrl().
|
protected |
Definition at line 43 of file class.ilPageContent.php.
Referenced by getSourcecodeDownloadScript().
|
protected |
Definition at line 33 of file class.ilPageContent.php.
Referenced by getType().