|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilPageContent:
Collaboration diagram for ilPageContent:Public Member Functions | |
| __construct (ilPageObject $a_pg_obj) | |
| setPage (ilPageObject $a_val) | |
| getPage () | |
| init () | |
| Init object. More... | |
| getType () | |
| setNode (php4DOMElement $a_node) | |
| Set xml node of page content. More... | |
| getNode () | |
| 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... | |
| 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 | incEdId (string $ed_id) |
| Increases an hierarchical editing id at lowest level (last number) More... | |
| static | decEdId (string $ed_id) |
| Decreases an hierarchical editing id at lowest level (last number) More... | |
| 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 = "" |
| php4DOMElement | $node = null |
| php4DOMDocument | $dom = null |
| string | $page_lang = "" |
Protected Member Functions | |
| setType (string $a_type) | |
| Set Type. More... | |
Protected Attributes | |
| string | $pcid |
| string | $type = "" |
| ilPageObject | $pg_obj |
| string | $file_download_link |
| string | $fullscreen_link |
| string | $sourcecode_download_script |
| ilLogger | $log |
| string | $profile_back_url = "" |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 25 of file class.ilPageContent.php.
|
final |
Definition at line 43 of file class.ilPageContent.php.
References ilPageObject\getDom(), ilLoggerFactory\getLogger(), getType(), init(), and setPage().
Here is the call graph for this function:
|
static |
After page history entry has been created.
Reimplemented in ilPCContentInclude, ilPCFileList, ilPCMediaObject, ilPCParagraph, ilPCSkills, and ilPCLearningHistory.
Definition at line 365 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 338 of file class.ilPageContent.php.
|
static |
After repository (container) copy action.
Definition at line 358 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 350 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 288 of file class.ilPageContent.php.
References $node.
Referenced by ilPCInteractiveImage\create(), ilPCMediaObject\create(), ilPCLearningHistory\create(), ilPCParagraph\createAfter(), ilPCParagraph\createAtNode(), and ilPCParagraph\createBeforeNode().
Here is the caller graph for this function:
|
staticfinal |
Decreases an hierarchical editing id at lowest level (last number)
| string | $ed_id | hierarchical ID |
Definition at line 220 of file class.ilPageContent.php.
References $id.
|
static |
Overwrite in derived classes, if old history entries are being deleted.
Reimplemented in ilPCContentInclude, ilPCFileList, ilPCMediaObject, and ilPCSkills.
Definition at line 384 of file class.ilPageContent.php.
| ilPageContent::disable | ( | ) |
Definition at line 269 of file class.ilPageContent.php.
References setEnabled().
Referenced by ilPageContentGUI\deactivate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageContent::enable | ( | ) |
Definition at line 264 of file class.ilPageContent.php.
References setEnabled().
Here is the call graph for this function:| ilPageContent::getCssFiles | ( | string | $a_mode | ) |
Reimplemented in ilPCGrid, ilPCMediaObject, ilPCPlaceHolder, ilPCPlugged, ilPCQuestion, and ilPCTabs.
Definition at line 104 of file class.ilPageContent.php.
| ilPageContent::getFileDownloadLink | ( | ) |
Definition at line 153 of file class.ilPageContent.php.
References $file_download_link.
| ilPageContent::getFullscreenLink | ( | ) |
Definition at line 173 of file class.ilPageContent.php.
References $fullscreen_link.
| ilPageContent::getHierId | ( | ) |
Definition at line 119 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 99 of file class.ilPageContent.php.
|
static |
Get lang vars needed for editing.
Reimplemented in ilPCAMDForm, ilPCConsultationHours, ilPCMyCourses, ilPCAMDPageList, ilPCFileList, ilPCGrid, ilPCLoginPageElement, ilPCMediaObject, ilPCPlaceHolder, ilPCProfile, ilPCQuestion, ilPCResources, ilPCSection, ilPCSourceCode, ilPCTable, ilPCTabs, ilPCVerification, and ilPCLearningHistory.
Definition at line 301 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 376 of file class.ilPageContent.php.
| ilPageContent::getNode | ( | ) |
Definition at line 94 of file class.ilPageContent.php.
References $node.
Referenced by ilPCGridCell\deleteCell(), ilPCListItem\deleteItem(), ilPCTab\deleteItem(), ilPCGridCell\moveCellLeft(), ilPCGridCell\moveCellRight(), ilPCListItem\moveItemDown(), ilPCTab\moveItemDown(), ilPCListItem\moveItemUp(), ilPCTab\moveItemUp(), ilPCListItem\newItemAfter(), ilPCTab\newItemAfter(), ilPCListItem\newItemBefore(), ilPCTab\newItemBefore(), ilPCTableData\newRowAfter(), and ilPCTableData\newRowBefore().
Here is the caller graph for this function:| ilPageContent::getOnloadCode | ( | string | $a_mode | ) |
Reimplemented in ilPCMediaObject, ilPCParagraph, and ilPCQuestion.
Definition at line 109 of file class.ilPageContent.php.
| ilPageContent::getPage | ( | ) |
Definition at line 59 of file class.ilPageContent.php.
References $pg_obj.
Referenced by ilPCContentTemplate\create(), and ilPCAMDForm\isTemplate().
Here is the caller graph for this function:| ilPageContent::getPCId | ( | ) |
| ilPageContent::getProfileBackUrl | ( | ) |
Definition at line 163 of file class.ilPageContent.php.
References $profile_back_url.
| ilPageContent::getSourcecodeDownloadScript | ( | ) |
Definition at line 183 of file class.ilPageContent.php.
References $sourcecode_download_script.
| ilPageContent::getType | ( | ) |
Reimplemented in ilPCParagraph.
Definition at line 79 of file class.ilPageContent.php.
References $type.
Referenced by __construct(), ilGlossaryDefPage\beforePageContentUpdate(), ilLMPage\beforePageContentUpdate(), ilPageEditorGUI\characteristic(), and ilPageEditorGUI\executeCommand().
Here is the caller graph for this function:
|
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 ilPCAMDForm, ilPCAMDPageList, ilPCPlaceHolder, and ilPCTable.
Definition at line 315 of file class.ilPageContent.php.
|
staticfinal |
Increases an hierarchical editing id at lowest level (last number)
| string | $ed_id | hierarchical ID |
Definition at line 208 of file class.ilPageContent.php.
References $id.
Referenced by ilPageObject\addHierIDs().
Here is the caller graph for this function:
|
abstract |
Init object.
This function must be overwritten and at least set the content type.
Reimplemented in ilPCCurriculum, ilPCLauncher, ilPCAMDForm, ilPCConsultationHours, ilPCMyCourses, ilPCAMDPageList, ilPCBlog, ilPCContentInclude, ilPCContentPopup, ilPCContentTemplate, ilPCDataTable, ilPCFileItem, ilPCFileList, ilPCGrid, ilPCGridCell, ilPCInteractiveImage, ilPCList, ilPCListItem, ilPCLoginPageElement, ilPCMap, ilPCMediaObject, ilPCParagraph, ilPCPlaceHolder, ilPCPlugged, ilPCProfile, ilPCQuestion, ilPCQuestionOverview, ilPCResources, ilPCSection, ilPCSkills, ilPCSourceCode, ilPCTab, ilPCTable, ilPCTableData, ilPCTabs, ilPCVerification, and ilPCLearningHistory.
Referenced by __construct().
Here is the caller graph for this function:
|
final |
Definition at line 274 of file class.ilPageContent.php.
|
static |
Check whether Hier ID $a is greater than Hier ID $b.
Definition at line 239 of file class.ilPageContent.php.
References Vendor\Package\$a, Vendor\Package\$b, $i, and ILIAS\Repository\int().
Here is the call graph for this function:| ilPageContent::lookupHierId | ( | ) |
Definition at line 125 of file class.ilPageContent.php.
| ilPageContent::modifyPageContentPostXsl | ( | string | $a_output, |
| string | $a_mode, | ||
| bool | $a_abstract_only = false |
||
| ) |
Modify page content after xsl.
Reimplemented in ilPCCurriculum, ilPCLauncher, ilPCAMDForm, ilPCAMDPageList, ilPCContentInclude, ilPCMap, ilPCMediaObject, ilPCPlaceHolder, ilPCPlugged, ilPCQuestion, ilPCSection, ilPCTab, ilPCLearningHistory, and ilPCSourceCode.
Definition at line 327 of file class.ilPageContent.php.
| ilPageContent::readHierId | ( | ) |
Definition at line 130 of file class.ilPageContent.php.
Referenced by ilPCInteractiveImage\setNode().
Here is the caller graph for this function:| ilPageContent::readPCId | ( | ) |
Definition at line 188 of file class.ilPageContent.php.
Referenced by ilPCInteractiveImage\setNode().
Here is the caller graph for this function:| ilPageContent::setEnabled | ( | string | $value | ) |
Set Enabled value for page content component.
| string | $value | "True" | "False" |
Definition at line 257 of file class.ilPageContent.php.
Referenced by disable(), and enable().
Here is the caller graph for this function:| ilPageContent::setFileDownloadLink | ( | string | $a_download_link | ) |
Definition at line 148 of file class.ilPageContent.php.
| ilPageContent::setFullscreenLink | ( | string | $a_fullscreen_link | ) |
Definition at line 168 of file class.ilPageContent.php.
| ilPageContent::setHierId | ( | string | $a_hier_id | ) |
Reimplemented in ilPCMediaObject.
Definition at line 114 of file class.ilPageContent.php.
| ilPageContent::setNode | ( | php4DOMElement | $a_node | ) |
Set xml node of page content.
| php4DOMElement | $a_node | node object |
Reimplemented in ilPCAMDForm, ilPCConsultationHours, ilPCMyCourses, ilPCAMDPageList, ilPCBlog, ilPCContentInclude, ilPCContentTemplate, ilPCDataTable, ilPCFileList, ilPCGrid, ilPCInteractiveImage, ilPCList, ilPCLoginPageElement, ilPCMap, ilPCMediaObject, ilPCParagraph, ilPCPlaceHolder, ilPCPlugged, ilPCProfile, ilPCQuestion, ilPCQuestionOverview, ilPCResources, ilPCSection, ilPCSkills, ilPCTable, ilPCTabs, ilPCVerification, and ilPCLearningHistory.
Definition at line 88 of file class.ilPageContent.php.
| ilPageContent::setPage | ( | ilPageObject | $a_val | ) |
Definition at line 54 of file class.ilPageContent.php.
Referenced by __construct().
Here is the caller graph for this function:| ilPageContent::setPcId | ( | string | $a_pcid | ) |
Definition at line 138 of file class.ilPageContent.php.
| ilPageContent::setProfileBackUrl | ( | string | $url | ) |
Definition at line 158 of file class.ilPageContent.php.
References $url.
| ilPageContent::setSourcecodeDownloadScript | ( | string | $script_name | ) |
Definition at line 178 of file class.ilPageContent.php.
|
finalprotected |
Set Type.
Must be called in constructor.
| string | $a_type | type of page content component |
Definition at line 74 of file class.ilPageContent.php.
Referenced by ilPCCurriculum\init(), ilPCLauncher\init(), ilPCAMDForm\init(), ilPCConsultationHours\init(), ilPCMyCourses\init(), ilPCAMDPageList\init(), ilPCBlog\init(), ilPCContentInclude\init(), ilPCContentPopup\init(), ilPCContentTemplate\init(), ilPCDataTable\init(), ilPCFileItem\init(), ilPCFileList\init(), ilPCGrid\init(), ilPCGridCell\init(), ilPCInteractiveImage\init(), ilPCList\init(), ilPCListItem\init(), ilPCLoginPageElement\init(), ilPCMap\init(), ilPCMediaObject\init(), ilPCParagraph\init(), ilPCPlaceHolder\init(), ilPCPlugged\init(), ilPCProfile\init(), ilPCQuestion\init(), ilPCQuestionOverview\init(), ilPCResources\init(), ilPCSection\init(), ilPCSkills\init(), ilPCSourceCode\init(), ilPCTab\init(), ilPCTable\init(), ilPCTableData\init(), ilPCTabs\init(), ilPCVerification\init(), and ilPCLearningHistory\init().
Here is the caller graph for this function:
|
static |
Sort an array of Hier IDS in ascending order.
Definition at line 230 of file class.ilPageContent.php.
Referenced by ilPageObject\copyContents().
Here is the caller graph for this function:| ilPageContent::writePCId | ( | string | $a_pc_id | ) |
Definition at line 196 of file class.ilPageContent.php.
| php4DOMDocument ilPageContent::$dom = null |
Definition at line 32 of file class.ilPageContent.php.
|
protected |
Definition at line 35 of file class.ilPageContent.php.
Referenced by getFileDownloadLink().
|
protected |
Definition at line 37 of file class.ilPageContent.php.
Referenced by getFullscreenLink().
| string ilPageContent::$hier_id = "" |
Definition at line 30 of file class.ilPageContent.php.
Referenced by ilPCContentTemplate\create(), and getHierId().
|
protected |
Definition at line 40 of file class.ilPageContent.php.
| php4DOMElement ilPageContent::$node = null |
Definition at line 31 of file class.ilPageContent.php.
Referenced by ilPCParagraph\createAfter(), ilPCParagraph\createAtNode(), ilPCParagraph\createBeforeNode(), createPageContentNode(), and getNode().
| string ilPageContent::$page_lang = "" |
Definition at line 33 of file class.ilPageContent.php.
|
protected |
Definition at line 27 of file class.ilPageContent.php.
Referenced by getPCId().
|
protected |
Definition at line 29 of file class.ilPageContent.php.
Referenced by getPage().
|
protected |
Definition at line 41 of file class.ilPageContent.php.
Referenced by getProfileBackUrl().
|
protected |
Definition at line 39 of file class.ilPageContent.php.
Referenced by getSourcecodeDownloadScript().
|
protected |
Definition at line 28 of file class.ilPageContent.php.
Referenced by getType().