|
ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilPageObject. More...
Inheritance diagram for ilPageObject:
Collaboration diagram for ilPageObject:Public Member Functions | |
| ilPageObject ($a_parent_type, $a_id=0, $a_old_nr=0, $a_halt=true) | |
| Constructor public. | |
| haltOnError ($a_halt) | |
| setRenderMd5 ($a_rendermd5) | |
| Set Render MD5. | |
| getRenderMd5 () | |
| Get Render MD5. | |
| setRenderedContent ($a_renderedcontent) | |
| Set Rendered Content. | |
| getRenderedContent () | |
| Get Rendered Content. | |
| setRenderedTime ($a_renderedtime) | |
| Set Rendered Time. | |
| getRenderedTime () | |
| Get Rendered Time. | |
| setLastChange ($a_lastchange) | |
| Set Last Change. | |
| getLastChange () | |
| Get Last Change. | |
| read () | |
| read page data | |
| _exists ($a_parent_type, $a_id) | |
| checks whether page exists | |
| buildDom ($a_force=false) | |
| freeDom () | |
| & | getDom () |
| setId ($a_id) | |
| set id | |
| getId () | |
| setParentId ($a_id) | |
| getParentId () | |
| setParentType ($a_type) | |
| getParentType () | |
| addUpdateListener (&$a_object, $a_method, $a_parameters="") | |
| callUpdateListeners () | |
| & | getContentObject ($a_hier_id, $a_pc_id="") |
| & | getContentNode ($a_hier_id, $a_pc_id="") |
| lookforhier ($a_hier_id) | |
| & | getNode () |
| setXMLContent ($a_xml, $a_encoding="UTF-8") | |
| set xml content of page, start with <PageObject...>, end with </PageObject>, comply with ILIAS DTD, omit MetaData, use utf-8! | |
| appendXMLContent ($a_xml) | |
| append xml content to page setXMLContent must be called before and the same encoding must be used | |
| getXMLContent ($a_incl_head=false) | |
| get xml content of page | |
| getXMLFromDom ($a_incl_head=false, $a_append_mobs=false, $a_append_bib=false, $a_append_str="", $a_omit_pageobject_tag=false) | |
| get xml content of page from dom (use this, if any changes are made to the document) | |
| getLanguageVariablesXML () | |
| get language variables as XML | |
| appendLangVarXML (&$xml, $var) | |
| getFirstParagraphText () | |
| setParagraphContent ($a_hier_id, $a_content) | |
| Set content of paragraph. | |
| setContainsIntLink ($a_contains_link) | |
| lm parser set this flag to true, if the page contains intern links (this method should only be called by the import parser) | |
| containsIntLink () | |
| returns true, if page was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) | |
| needsImportParsing ($a_parse="") | |
| getBibliographyXML () | |
| get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page | |
| collectMediaObjects ($a_inline_only=true) | |
| get all media objects, that are referenced and used within the page | |
| getInternalLinks () | |
| get all internal links that are used within the page | |
| collectFileItems ($a_xml="") | |
| get all file items that are used within the page | |
| getMultimediaXML () | |
| get a xml string that contains all media object elements, that are referenced by any media alias in the page | |
| getMediaAliasElement ($a_mob_id, $a_nr=1) | |
| get complete media object (alias) element | |
| validateDom () | |
| Validate the page content agains page DTD. | |
| addHierIDs () | |
| Add hierarchical ID (e.g. | |
| getHierIds () | |
| get all hierarchical ids | |
| getFirstRowIds () | |
| get ids of all first table rows | |
| getFirstColumnIds () | |
| get ids of all first table columns | |
| getListItemIds () | |
| get ids of all list items | |
| getFileItemIds () | |
| get ids of all file items | |
| stripHierIDs () | |
| strip all hierarchical id attributes out of the dom tree | |
| addFileSizes () | |
| add file sizes | |
| resolveIntLinks () | |
| Resolves all internal link targets of the page, if targets are available (after import) | |
| moveIntLinks ($a_from_to) | |
| Move internal links from one destination to another. | |
| handleImportRepositoryLink ($a_rep_import_id, $a_rep_type, $a_rep_ref_id) | |
| createFromXML () | |
| create new page object with current xml content | |
| updateFromXML () | |
| updates page object with current xml content | |
| update ($a_validate=true, $a_no_history=false) | |
| update complete page content in db (dom xml content is used) | |
| delete () | |
| delete page object | |
| saveMobUsage ($a_xml, $a_old_nr=0) | |
| save all usages of media objects (media aliases, media objects, internal links) | |
| saveFileUsage ($a_xml="", $a_old_nr=0) | |
| save file usages | |
| getLastUpdateOfIncludedElements () | |
| Get last update of included elements (media objects and files). | |
| saveInternalLinks ($a_xml) | |
| save internal links of page | |
| create () | |
| create new page (with current xml data) | |
| deleteContent ($a_hid, $a_update=true, $a_pcid="") | |
| delete content object with hierarchical id $a_hid | |
| deleteContents ($a_hids, $a_update=true) | |
| delete multiple content objects | |
| switchEnableMultiple ($a_hids, $a_update=true) | |
| gui function set enabled if is not enabled and vice versa | |
| deleteContentFromHierId ($a_hid, $a_update=true) | |
| delete content object with hierarchical id >= $a_hid | |
| deleteContentBeforeHierId ($a_hid, $a_update=true) | |
| delete content object with hierarchical id < $a_hid | |
| _moveContentAfterHierId (&$a_source_page, &$a_target_page, $a_hid) | |
| move content of hierarchical id >= $a_hid to other page | |
| insertContent (&$a_cont_obj, $a_pos, $a_mode=IL_INSERT_AFTER, $a_pcid="") | |
| insert a content node before/after a sibling or as first child of a parent | |
| moveContentBefore ($a_source, $a_target, $a_spcid="", $a_tpcid="") | |
| move content object from position $a_source before position $a_target (both hierarchical content ids) | |
| moveContentAfter ($a_source, $a_target, $a_spcid="", $a_tpcid="") | |
| move content object from position $a_source before position $a_target (both hierarchical content ids) | |
| bbCode2XML (&$a_content) | |
| transforms bbCode to corresponding xml | |
| insertInstIntoIDs ($a_inst, $a_res_ref_to_obj_id=true) | |
| inserts installation id into ids (e.g. | |
| highlightText ($a_text, $proglang, $autoindent) | |
| Highligths Text with given ProgLang. | |
| hasHighlighter ($hfile_ext) | |
| insertSourceCodeParagraphs ($a_output, $outputmode="presentation") | |
| depending on the SubCharacteristic and ShowLineNumbers attribute the line numbers and html tags for the syntax highlighting will be inserted using the dom xml functions | |
| checkPCIds () | |
| Check, whether (all) page content hashes are set. | |
| insertPCIds () | |
| Insert Page Content IDs. | |
| getPageContentsHashes () | |
| Get page contents hashes. | |
| send_paragraph ($par_id, $filename) | |
| getFO () | |
| get fo page content | |
| registerOfflineHandler ($handler) | |
| _lookupContainsDeactivatedElements ($a_id, $a_parent_type) | |
| lookup whether page contains deactivated elements | |
| getHistoryEntries () | |
| Get History Entries. | |
| getHistoryEntry ($a_old_nr) | |
| Get History Entry. | |
| getHistoryInfo ($a_nr) | |
| Get information about a history entry, its predecessor and its successor. | |
| addChangeDivClasses ($a_hashes) | |
| compareVersion ($a_left, $a_right) | |
| Compares to revisions of the page. | |
| increaseViewCnt () | |
| increase view cnt | |
| writeRenderedContent ($a_content, $a_md5) | |
| Write rendered content. | |
Static Public Member Functions | |
| static | _handleImportRepositoryLinks ($a_rep_import_id, $a_rep_type, $a_rep_ref_id) |
| Change targest of repository links. | |
| static | getRecentChanges ($a_parent_type, $a_parent_id, $a_period=30) |
| Get recent pages changes for parent object. | |
| static | getAllPages ($a_parent_type, $a_parent_id) |
| Get all pages for parent object. | |
| static | getNewPages ($a_parent_type, $a_parent_id) |
| Get new pages. | |
| static | getParentObjectContributors ($a_parent_type, $a_parent_id) |
| Get all contributors for parent object. | |
| static | getPageContributors ($a_parent_type, $a_page_id) |
| Get all contributors for parent object. | |
| static | getPagesWithLinks ($a_parent_type, $a_parent_id) |
| Get all pages for parent object that contain internal links. | |
Data Fields | |
| $id | |
| $ilias | |
| $dom | |
| $xml | |
| $encoding | |
| $node | |
| $cur_dtd = "ilias_pg_3_10.dtd" | |
| $contains_int_link | |
| $needs_parsing | |
| $parent_type | |
| $parent_id | |
| $update_listeners | |
| $update_listener_cnt | |
| $offline_handler | |
| $dom_builded | |
| $history_saved | |
Class ilPageObject.
Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition at line 52 of file class.ilPageObject.php.
| ilPageObject::_exists | ( | $a_parent_type, | |
| $a_id | |||
| ) |
checks whether page exists
| string | $a_parent_type | parent type |
| int | $a_id | page id |
Definition at line 241 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilShopPurchaseGUI\__getAbstractHTML(), ilContainer\cloneObject(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilPaymentObjectGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilShopGUI\forwardToPageObject(), ilObjPaymentSettingsGUI\forwardToPageObject(), ilContainerGUI\getContainerPageHTML(), and ilShopGUI\getPageHTML().
Here is the caller graph for this function:
|
static |
Change targest of repository links.
Use full targets in "from" and "to"!!!
| array | keys are the old targets, values are the new targets |
Definition at line 1464 of file class.ilPageObject.php.
References ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_getSourcesOfTarget(), and ilPageObject().
Referenced by ilObjContentObjectGUI\importFileObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::_lookupContainsDeactivatedElements | ( | $a_id, | |
| $a_parent_type | |||
| ) |
lookup whether page contains deactivated elements
Definition at line 2732 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMEditorExplorer\getImage(), ilLMEditorExplorer\getImageAlt(), ilObjContentObjectGUI\pages(), and ilStructureObjectGUI\view().
Here is the caller graph for this function:| ilPageObject::_moveContentAfterHierId | ( | & | $a_source_page, |
| & | $a_target_page, | ||
| $a_hid | |||
| ) |
move content of hierarchical id >= $a_hid to other page
| string | $a_hid | hierarchical id of content object |
| boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 2104 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_splitPageNext().
Here is the caller graph for this function:| ilPageObject::addChangeDivClasses | ( | $a_hashes | ) |
Definition at line 2883 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1215 of file class.ilPageObject.php.
References $id, $res, $size, ilObjFile\_lookupFileSize(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::addHierIDs | ( | ) |
Add hierarchical ID (e.g.
for editing) attributes "HierId" to current dom tree. This attribute will be added to the following elements: PageObject, Paragraph, Table, TableRow, TableData. Only elements of these types are counted as "childs" here.
Hierarchical IDs have the format "x_y_z_...", e.g. "1_4_2" means: second child of fourth child of first child of page.
The PageObject element gets the special id "pg". The first child of the page starts with id 1. The next child gets the 2 and so on.
Another example: The first child of the page is a Paragraph -> id 1. The second child is a table -> id 2. The first row gets the id 2_1, the
Definition at line 1032 of file class.ilPageObject.php.
References $res, ilPageContent\incEdId(), xpath_eval(), and xpath_new_context().
Referenced by moveIntLinks().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::addUpdateListener | ( | & | $a_object, |
| $a_method, | |||
$a_parameters = "" |
|||
| ) |
Definition at line 338 of file class.ilPageObject.php.
References $update_listener_cnt.
| ilPageObject::appendLangVarXML | ( | & | $xml, |
| $var | |||
| ) |
Definition at line 724 of file class.ilPageObject.php.
Referenced by getLanguageVariablesXML().
Here is the caller graph for this function:| ilPageObject::appendXMLContent | ( | $a_xml | ) |
append xml content to page setXMLContent must be called before and the same encoding must be used
| string | $a_xml | xml content |
Definition at line 599 of file class.ilPageObject.php.
| ilPageObject::bbCode2XML | ( | & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 2307 of file class.ilPageObject.php.
| ilPageObject::buildDom | ( | $a_force = false | ) |
Definition at line 260 of file class.ilPageObject.php.
References $ilBench, $res, domxml_open_mem(), getXMLContent(), xpath_eval(), and xpath_new_context().
Referenced by delete(), handleImportRepositoryLink(), ilLMPresentationGUI\ilMedia(), ilLMPresentationGUI\ilPage(), moveIntLinks(), and ilPageObjectGUI\showMediaFullscreen().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::callUpdateListeners | ( | ) |
Definition at line 347 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by update().
Here is the caller graph for this function:| ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 2540 of file class.ilPageObject.php.
References $dom, $res, xpath_eval(), and xpath_new_context().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::collectFileItems | ( | $a_xml = "" | ) |
get all file items that are used within the page
Definition at line 941 of file class.ilPageObject.php.
References $res, domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by delete(), and saveFileUsage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::collectMediaObjects | ( | $a_inline_only = true | ) |
get all media objects, that are referenced and used within the page
Definition at line 829 of file class.ilPageObject.php.
References $res, ilObject\_exists(), xpath_eval(), and xpath_new_context().
Referenced by delete(), and getMultimediaXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::compareVersion | ( | $a_left, | |
| $a_right | |||
| ) |
Compares to revisions of the page.
| int | $a_left | Nr of first revision |
| int | $a_right | Nr of second revision |
Definition at line 2911 of file class.ilPageObject.php.
References getId(), getParentType(), and ilPageObject().
Here is the call graph for this function:| ilPageObject::containsIntLink | ( | ) |
returns true, if page was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser)
Definition at line 782 of file class.ilPageObject.php.
References $contains_int_link.
| ilPageObject::create | ( | ) |
create new page (with current xml data)
Reimplemented in ilWikiPage.
Definition at line 1944 of file class.ilPageObject.php.
References createFromXML().
Here is the call graph for this function:| ilPageObject::createFromXML | ( | ) |
create new page object with current xml content
Definition at line 1518 of file class.ilPageObject.php.
References $lng, getId(), getParentId(), getParentType(), getXMLContent(), and setXMLContent().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::delete | ( | ) |
delete page object
Reimplemented in ilWikiPage.
Definition at line 1721 of file class.ilPageObject.php.
References $files, $GLOBALS, $mobs, ilObjFile\_deleteAllUsages(), ilObject\_exists(), ilObject\_lookupType(), buildDom(), collectFileItems(), collectMediaObjects(), getId(), getParentType(), saveInternalLinks(), and saveMobUsage().
Here is the call graph for this function:| ilPageObject::deleteContent | ( | $a_hid, | |
$a_update = true, |
|||
$a_pcid = "" |
|||
| ) |
delete content object with hierarchical id $a_hid
| string | $a_hid | hierarchical id of content object |
| boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 1956 of file class.ilPageObject.php.
References getContentNode(), and update().
Referenced by moveContentAfter(), and moveContentBefore().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::deleteContentBeforeHierId | ( | $a_hid, | |
$a_update = true |
|||
| ) |
delete content object with hierarchical id < $a_hid
| string | $a_hid | hierarchical id of content object |
| boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 2073 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
Here is the call graph for this function:| ilPageObject::deleteContentFromHierId | ( | $a_hid, | |
$a_update = true |
|||
| ) |
delete content object with hierarchical id >= $a_hid
| string | $a_hid | hierarchical id of content object |
| boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 2043 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
Here is the call graph for this function:| ilPageObject::deleteContents | ( | $a_hids, | |
$a_update = true |
|||
| ) |
delete multiple content objects
| string | $a_hids | array of hierarchical ids of content objects |
| boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 1973 of file class.ilPageObject.php.
References getContentNode(), and update().
Here is the call graph for this function:| ilPageObject::freeDom | ( | ) |
Definition at line 294 of file class.ilPageObject.php.
|
static |
Get all pages for parent object.
| string | $a_parent_type | Parent Type |
| int | $a_parent_id | Parent ID |
| int | $a_period | Time Period |
Definition at line 3032 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC.
| ilPageObject::getBibliographyXML | ( | ) |
get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page
Definition at line 805 of file class.ilPageObject.php.
References $_GET, $ilias, and DB_FETCHMODE_ASSOC.
Referenced by getXMLFromDom().
Here is the caller graph for this function:| & ilPageObject::getContentNode | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
| ) |
Definition at line 528 of file class.ilPageObject.php.
References $node, $res, xpath_eval(), and xpath_new_context().
Referenced by deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), getContentObject(), insertContent(), setParagraphContent(), and switchEnableMultiple().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilPageObject::getContentObject | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
| ) |
Definition at line 358 of file class.ilPageObject.php.
References $_GET, $res, $tab, ilObject\_exists(), exit, and getContentNode().
Referenced by moveContentAfter(), moveContentBefore(), and switchEnableMultiple().
Here is the call graph for this function:
Here is the caller graph for this function:| & ilPageObject::getDom | ( | ) |
| ilPageObject::getFileItemIds | ( | ) |
get ids of all file items
Definition at line 1186 of file class.ilPageObject.php.
| ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1170 of file class.ilPageObject.php.
| ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 731 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::getFirstRowIds | ( | ) |
get ids of all first table rows
Definition at line 1162 of file class.ilPageObject.php.
| ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 2700 of file class.ilPageObject.php.
References $xml, getXMLFromDom(), xslt_create(), xslt_free(), and xslt_process().
Here is the call graph for this function:| ilPageObject::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 1154 of file class.ilPageObject.php.
Referenced by deleteContentBeforeHierId(), and deleteContentFromHierId().
Here is the caller graph for this function:| ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 2753 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC, getId(), and getParentType().
Here is the call graph for this function:| ilPageObject::getHistoryEntry | ( | $a_old_nr | ) |
Get History Entry.
Definition at line 2777 of file class.ilPageObject.php.
References $res, getId(), and getParentType().
Here is the call graph for this function:| ilPageObject::getHistoryInfo | ( | $a_nr | ) |
Get information about a history entry, its predecessor and its successor.
| int | $a_nr | Nr of history entry |
Definition at line 2802 of file class.ilPageObject.php.
| ilPageObject::getId | ( | ) |
Definition at line 313 of file class.ilPageObject.php.
References $id.
Referenced by compareVersion(), createFromXML(), ilWikiPage\delete(), delete(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), increaseViewCnt(), ilWikiPage\read(), saveFileUsage(), ilWikiPage\saveInternalLinks(), saveInternalLinks(), saveMobUsage(), ilWikiPage\update(), update(), and writeRenderedContent().
Here is the caller graph for this function:| ilPageObject::getInternalLinks | ( | ) |
get all internal links that are used within the page
Definition at line 875 of file class.ilPageObject.php.
References $id, $res, ilMediaItem\_getMapAreasIntLinks(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::getLanguageVariablesXML | ( | ) |
get language variables as XML
Definition at line 695 of file class.ilPageObject.php.
References $lng, $xml, and appendLangVarXML().
Referenced by getXMLFromDom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::getLastChange | ( | ) |
Get Last Change.
Definition at line 182 of file class.ilPageObject.php.
| ilPageObject::getLastUpdateOfIncludedElements | ( | ) |
Get last update of included elements (media objects and files).
This is needed for cache logic, cache must be reloaded if anything has changed.
Definition at line 1860 of file class.ilPageObject.php.
References $files, $mobs, ilObjFile\_getFilesOfObject(), ilObject\_getLastUpdateOfObjects(), ilObjMediaObject\_getMobsOfObject(), getId(), and getParentType().
Here is the call graph for this function:| ilPageObject::getListItemIds | ( | ) |
get ids of all list items
Definition at line 1178 of file class.ilPageObject.php.
| ilPageObject::getMediaAliasElement | ( | $a_mob_id, | |
$a_nr = 1 |
|||
| ) |
get complete media object (alias) element
Definition at line 994 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::getMultimediaXML | ( | ) |
get a xml string that contains all media object elements, that are referenced by any media alias in the page
Definition at line 973 of file class.ilPageObject.php.
References ilObject\_lookupType(), collectMediaObjects(), and IL_MODE_OUTPUT.
Referenced by getXMLFromDom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get new pages.
| string | $a_parent_type | Parent Type |
| int | $a_parent_id | Parent ID |
Definition at line 3058 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC.
| & ilPageObject::getNode | ( | ) |
Definition at line 573 of file class.ilPageObject.php.
References $node.
Referenced by insertContent().
Here is the caller graph for this function:| ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 2612 of file class.ilPageObject.php.
References $dom, $res, ilPCParagraph\xml2output(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:
|
static |
Get all contributors for parent object.
| string | $a_parent_type | Parent Type |
| int | $a_parent_id | Parent ID |
Definition at line 3133 of file class.ilPageObject.php.
References ilObjUser\_lookupName().
Here is the call graph for this function:
|
static |
Get all pages for parent object that contain internal links.
| string | $a_parent_type | Parent Type |
| int | $a_parent_id | Parent ID |
| int | $a_period | Time Period |
Definition at line 3193 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilLMPageObject\getPagesWithLinksList().
Here is the caller graph for this function:| ilPageObject::getParentId | ( | ) |
Definition at line 323 of file class.ilPageObject.php.
References $parent_id.
Referenced by createFromXML(), ilWikiPage\getWikiId(), update(), and updateFromXML().
Here is the caller graph for this function:
|
static |
Get all contributors for parent object.
| string | $a_parent_type | Parent Type |
| int | $a_parent_id | Parent ID |
Definition at line 3089 of file class.ilPageObject.php.
References ilObjUser\_lookupName().
Here is the call graph for this function:| ilPageObject::getParentType | ( | ) |
Definition at line 333 of file class.ilPageObject.php.
References $parent_type.
Referenced by compareVersion(), createFromXML(), delete(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), increaseViewCnt(), read(), saveFileUsage(), saveInternalLinks(), saveMobUsage(), update(), and writeRenderedContent().
Here is the caller graph for this function:
|
static |
Get recent pages changes for parent object.
| string | $a_parent_type | Parent Type |
| int | $a_parent_id | Parent ID |
| int | $a_period | Time Period |
Definition at line 2991 of file class.ilPageObject.php.
References DB_FETCHMODE_ASSOC, and ilUtil\sortArray().
Here is the call graph for this function:| ilPageObject::getRenderedContent | ( | ) |
Get Rendered Content.
Definition at line 142 of file class.ilPageObject.php.
| ilPageObject::getRenderedTime | ( | ) |
Get Rendered Time.
Definition at line 162 of file class.ilPageObject.php.
| ilPageObject::getRenderMd5 | ( | ) |
Get Render MD5.
Definition at line 122 of file class.ilPageObject.php.
| ilPageObject::getXMLContent | ( | $a_incl_head = false | ) |
get xml content of page
Definition at line 608 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), ilWikiPage\create(), createFromXML(), ilLMPresentationGUI\ilCitation(), and updateFromXML().
Here is the caller graph for this function:| ilPageObject::getXMLFromDom | ( | $a_incl_head = false, |
|
$a_append_mobs = false, |
|||
$a_append_bib = false, |
|||
$a_append_str = "", |
|||
$a_omit_pageobject_tag = false |
|||
| ) |
get xml content of page from dom (use this, if any changes are made to the document)
Definition at line 632 of file class.ilPageObject.php.
References $mobs, $xml, getBibliographyXML(), getLanguageVariablesXML(), and getMultimediaXML().
Referenced by getFO(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::haltOnError | ( | $a_halt | ) |
Definition at line 102 of file class.ilPageObject.php.
| ilPageObject::handleImportRepositoryLink | ( | $a_rep_import_id, | |
| $a_rep_type, | |||
| $a_rep_ref_id | |||
| ) |
Definition at line 1491 of file class.ilPageObject.php.
References $res, buildDom(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 2428 of file class.ilPageObject.php.
Referenced by highlightText().
Here is the caller graph for this function:| ilPageObject::highlightText | ( | $a_text, | |
| $proglang, | |||
| $autoindent | |||
| ) |
Highligths Text with given ProgLang.
Definition at line 2406 of file class.ilPageObject.php.
References hasHighlighter().
Referenced by insertSourceCodeParagraphs().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::ilPageObject | ( | $a_parent_type, | |
$a_id = 0, |
|||
$a_old_nr = 0, |
|||
$a_halt = true |
|||
| ) |
Constructor public.
Definition at line 75 of file class.ilPageObject.php.
References $ilias, and read().
Referenced by _handleImportRepositoryLinks(), and compareVersion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::increaseViewCnt | ( | ) |
increase view cnt
Definition at line 2973 of file class.ilPageObject.php.
References getId(), and getParentType().
Here is the call graph for this function:| ilPageObject::insertContent | ( | & | $a_cont_obj, |
| $a_pos, | |||
$a_mode = IL_INSERT_AFTER, |
|||
$a_pcid = "" |
|||
| ) |
insert a content node before/after a sibling or as first child of a parent
Definition at line 2161 of file class.ilPageObject.php.
References getContentNode(), getNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, and IL_INSERT_CHILD.
Referenced by moveContentAfter(), and moveContentBefore().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::insertInstIntoIDs | ( | $a_inst, | |
$a_res_ref_to_obj_id = true |
|||
| ) |
inserts installation id into ids (e.g.
il__pg_4 -> il_23_pg_4) this is needed for xml export of page
Definition at line 2321 of file class.ilPageObject.php.
References $id, $res, ilObject\_lookupObjId(), ilObject\_lookupType(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 2565 of file class.ilPageObject.php.
References $dom, $id, $node, $res, xpath_eval(), and xpath_new_context().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::insertSourceCodeParagraphs | ( | $a_output, | |
$outputmode = "presentation" |
|||
| ) |
depending on the SubCharacteristic and ShowLineNumbers attribute the line numbers and html tags for the syntax highlighting will be inserted using the dom xml functions
Definition at line 2437 of file class.ilPageObject.php.
References $n, $res, highlightText(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::lookforhier | ( | $a_hier_id | ) |
Definition at line 561 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::moveContentAfter | ( | $a_source, | |
| $a_target, | |||
$a_spcid = "", |
|||
$a_tpcid = "" |
|||
| ) |
move content object from position $a_source before position $a_target (both hierarchical content ids)
Definition at line 2283 of file class.ilPageObject.php.
References deleteContent(), getContentObject(), IL_INSERT_AFTER, insertContent(), and update().
Here is the call graph for this function:| ilPageObject::moveContentBefore | ( | $a_source, | |
| $a_target, | |||
$a_spcid = "", |
|||
$a_tpcid = "" |
|||
| ) |
move content object from position $a_source before position $a_target (both hierarchical content ids)
Definition at line 2257 of file class.ilPageObject.php.
References deleteContent(), getContentObject(), IL_INSERT_BEFORE, insertContent(), and update().
Here is the call graph for this function:| ilPageObject::moveIntLinks | ( | $a_from_to | ) |
Move internal links from one destination to another.
This is used for pages and structure links. Just use IDs in "from" and "to".
| array | keys are the old targets, values are the new targets |
Definition at line 1305 of file class.ilPageObject.php.
References $id, $res, $t, ilInternalLink\_extractObjIdOfTarget(), ilLMObject\_lookupType(), addHierIDs(), buildDom(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::needsImportParsing | ( | $a_parse = "" | ) |
Definition at line 787 of file class.ilPageObject.php.
References $needs_parsing.
| ilPageObject::read | ( | ) |
read page data
Reimplemented in ilWikiPage.
Definition at line 190 of file class.ilPageObject.php.
References $ilBench, DB_FETCHMODE_ASSOC, exit, getParentType(), setLastChange(), setParentId(), setRenderedContent(), setRenderedTime(), and setRenderMd5().
Referenced by ilPageObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::registerOfflineHandler | ( | $handler | ) |
Definition at line 2725 of file class.ilPageObject.php.
| ilPageObject::resolveIntLinks | ( | ) |
Resolves all internal link targets of the page, if targets are available (after import)
Definition at line 1252 of file class.ilPageObject.php.
References $res, ilInternalLink\_exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_getIdForImportId(), ilInternalLink\_removeInstFromTarget(), ilMediaItem\_resolveMapAreaLinks(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::saveFileUsage | ( | $a_xml = "", |
|
$a_old_nr = 0 |
|||
| ) |
save file usages
Definition at line 1845 of file class.ilPageObject.php.
References ilObjFile\_deleteAllUsages(), ilObjFile\_saveUsage(), collectFileItems(), getId(), and getParentType().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::saveInternalLinks | ( | $a_xml | ) |
save internal links of page
| string | xml page code |
Reimplemented in ilWikiPage.
Definition at line 1877 of file class.ilPageObject.php.
References $res, $target_arr, ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_saveLink(), domxml_open_mem(), getId(), getParentType(), xpath_eval(), and xpath_new_context().
Referenced by delete(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::saveMobUsage | ( | $a_xml, | |
$a_old_nr = 0 |
|||
| ) |
save all usages of media objects (media aliases, media objects, internal links)
| string | $a_xml | xml data of page |
Definition at line 1785 of file class.ilPageObject.php.
References $res, ilObjMediaObject\_deleteAllUsages(), ilObjMediaObject\_saveUsage(), domxml_open_mem(), getId(), getParentType(), xpath_eval(), and xpath_new_context().
Referenced by delete(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::send_paragraph | ( | $par_id, | |
| $filename | |||
| ) |
Definition at line 2655 of file class.ilPageObject.php.
References $dom, $filename, $res, ilUtil\deliverData(), exit, xpath_eval(), and xpath_new_context().
Referenced by ilLMPresentationGUI\download_paragraph().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::setContainsIntLink | ( | $a_contains_link | ) |
lm parser set this flag to true, if the page contains intern links (this method should only be called by the import parser)
todo: move to ilLMPageObject !?
| boolean | $a_contains_link | true, if page contains intern link tag(s) |
Definition at line 773 of file class.ilPageObject.php.
| ilPageObject::setId | ( | $a_id | ) |
set id
Definition at line 308 of file class.ilPageObject.php.
Referenced by ilWikiPage\create(), and ilLMPageObject\create().
Here is the caller graph for this function:| ilPageObject::setLastChange | ( | $a_lastchange | ) |
Set Last Change.
| string | $a_lastchange | Last Change |
Definition at line 172 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setParagraphContent | ( | $a_hier_id, | |
| $a_content | |||
| ) |
Set content of paragraph.
| string | $a_hier_id | Hier ID |
| string | $a_content | Content |
Definition at line 755 of file class.ilPageObject.php.
References $node, and getContentNode().
Here is the call graph for this function:| ilPageObject::setParentId | ( | $a_id | ) |
Definition at line 318 of file class.ilPageObject.php.
Referenced by ilContainerGUI\forwardToPageObject(), read(), and ilWikiPage\setWikiId().
Here is the caller graph for this function:| ilPageObject::setParentType | ( | $a_type | ) |
Definition at line 328 of file class.ilPageObject.php.
| ilPageObject::setRenderedContent | ( | $a_renderedcontent | ) |
Set Rendered Content.
| string | $a_renderedcontent | Rendered Content |
Definition at line 132 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setRenderedTime | ( | $a_renderedtime | ) |
Set Rendered Time.
| string | $a_renderedtime | Rendered Time |
Definition at line 152 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setRenderMd5 | ( | $a_rendermd5 | ) |
Set Render MD5.
| string | $a_rendermd5 | Render MD5 |
Definition at line 112 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setXMLContent | ( | $a_xml, | |
$a_encoding = "UTF-8" |
|||
| ) |
set xml content of page, start with <PageObject...>, end with </PageObject>, comply with ILIAS DTD, omit MetaData, use utf-8!
| string | $a_xml | xml content |
| string | $a_encoding | encoding of the content (here is no conversion done! it must be already utf-8 encoded at the time) |
Definition at line 587 of file class.ilPageObject.php.
Referenced by createFromXML().
Here is the caller graph for this function:| ilPageObject::stripHierIDs | ( | ) |
strip all hierarchical id attributes out of the dom tree
Definition at line 1194 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by validateDom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::switchEnableMultiple | ( | $a_hids, | |
$a_update = true |
|||
| ) |
gui function set enabled if is not enabled and vice versa
Definition at line 2003 of file class.ilPageObject.php.
References getContentNode(), getContentObject(), and update().
Here is the call graph for this function:| ilPageObject::update | ( | $a_validate = true, |
|
$a_no_history = false |
|||
| ) |
update complete page content in db (dom xml content is used)
Reimplemented in ilWikiPage.
Definition at line 1589 of file class.ilPageObject.php.
References $errors, $file, $history_saved, $ilCtrl, $ilLog, $lng, ilObject\_exists(), ilObjFile\_getFilesOfObject(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), callUpdateListeners(), checkPCIds(), DB_FETCHMODE_ASSOC, getId(), getParentId(), getParentType(), getXMLFromDom(), ILIAS_VERSION_NUMERIC, insertPCIds(), saveFileUsage(), saveInternalLinks(), saveMobUsage(), and validateDom().
Referenced by deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), moveContentAfter(), moveContentBefore(), and switchEnableMultiple().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::updateFromXML | ( | ) |
updates page object with current xml content
Definition at line 1560 of file class.ilPageObject.php.
References $lng, getParentId(), and getXMLContent().
Here is the call graph for this function:| ilPageObject::validateDom | ( | ) |
Validate the page content agains page DTD.
Definition at line 1010 of file class.ilPageObject.php.
References stripHierIDs().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::writeRenderedContent | ( | $a_content, | |
| $a_md5 | |||
| ) |
Write rendered content.
Definition at line 3174 of file class.ilPageObject.php.
References getId(), and getParentType().
Here is the call graph for this function:| ilPageObject::$contains_int_link |
Definition at line 61 of file class.ilPageObject.php.
Referenced by containsIntLink().
| ilPageObject::$cur_dtd = "ilias_pg_3_10.dtd" |
Definition at line 60 of file class.ilPageObject.php.
| ilPageObject::$dom |
Definition at line 56 of file class.ilPageObject.php.
Referenced by checkPCIds(), getDom(), getPageContentsHashes(), insertPCIds(), and send_paragraph().
| ilPageObject::$dom_builded |
Definition at line 68 of file class.ilPageObject.php.
| ilPageObject::$encoding |
Definition at line 58 of file class.ilPageObject.php.
| ilPageObject::$history_saved |
Definition at line 69 of file class.ilPageObject.php.
Referenced by update().
| ilPageObject::$id |
Definition at line 54 of file class.ilPageObject.php.
Referenced by addFileSizes(), ilWikiPage\create(), getId(), getInternalLinks(), insertInstIntoIDs(), insertPCIds(), and moveIntLinks().
| ilPageObject::$ilias |
Definition at line 55 of file class.ilPageObject.php.
Referenced by getBibliographyXML(), and ilPageObject().
| ilPageObject::$needs_parsing |
Definition at line 62 of file class.ilPageObject.php.
Referenced by needsImportParsing().
| ilPageObject::$node |
Definition at line 59 of file class.ilPageObject.php.
Referenced by getContentNode(), getNode(), insertPCIds(), and setParagraphContent().
| ilPageObject::$offline_handler |
Definition at line 67 of file class.ilPageObject.php.
| ilPageObject::$parent_id |
Definition at line 64 of file class.ilPageObject.php.
Referenced by getParentId().
| ilPageObject::$parent_type |
Definition at line 63 of file class.ilPageObject.php.
Referenced by getParentType().
| ilPageObject::$update_listener_cnt |
Definition at line 66 of file class.ilPageObject.php.
Referenced by addUpdateListener(), and callUpdateListeners().
| ilPageObject::$update_listeners |
Definition at line 65 of file class.ilPageObject.php.
| ilPageObject::$xml |
Definition at line 57 of file class.ilPageObject.php.
Referenced by appendLangVarXML(), getFO(), getLanguageVariablesXML(), getXMLContent(), and getXMLFromDom().