|
ILIAS
Release_4_2_x_branch Revision 61807
|
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. | |
| setLayoutMode ($a_layout_mode) | |
| Set Layout Mode. | |
| getLayoutMode () | |
| Get Layout Mode enabled/disabled. | |
| setLastChangeUser ($a_val) | |
| Set last change user. | |
| getLastChangeUser () | |
| Get last change user. | |
| read () | |
| read page data | |
| _existsAndNotEmpty ($a_parent_type, $a_id) | |
| checks whether page exists and is not empty (may return true on some empty pages) | |
| 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 () | |
| setActive ($a_active) | |
| set activation | |
| getActive ($a_check_scheduled_activation=false) | |
| get activation | |
| _lookupActive ($a_id, $a_parent_type, $a_check_scheduled_activation=false) | |
| lookup activation status | |
| _writeActive ($a_id, $a_parent_type, $a_active, $a_reset_scheduled_activation=true) | |
| write activation status | |
| _writeParentId ($a_parent_type, $a_pg_id, $a_par_id) | |
| Write parent id. | |
| setActivationStart ($a_activationstart) | |
| Set Activation Start. | |
| getActivationStart () | |
| Get Activation Start. | |
| setActivationEnd ($a_activationend) | |
| Set Activation End. | |
| getActivationEnd () | |
| Get Activation End. | |
| & | getContentObject ($a_hier_id, $a_pc_id="") |
| Get a content object of the page. | |
| & | getContentNode ($a_hier_id, $a_pc_id="") |
| Get content node from dom. | |
| checkForTag ($a_content_tag, $a_hier_id, $a_pc_id="") | |
| Get content node from dom. | |
| 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 | |
| copyXmlContent () | |
| Copy content of page; replace page components with copies where necessary (e.g. | |
| handleCopiedContent ($a_dom, $a_self_ass=true) | |
| Handle copied content. | |
| newIIMCopies ($temp_dom) | |
| Replaces media objects in interactive images with copies of the interactive images. | |
| newQuestionCopies (&$temp_dom) | |
| Replaces existing question content elements with new copies. | |
| removeQuestions (&$temp_dom) | |
| Remove questions from document. | |
| countPageContents () | |
| Remove questions from document. | |
| 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="") | |
| setContainsQuestion ($a_val) | |
| Set contains question. | |
| getContainsQuestion () | |
| Get contains question. | |
| 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 ($a_cnt_multiple=false) | |
| 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 | |
| getHierIdsForPCIds ($a_pc_ids) | |
| Get hier ids for a set of pc ids. | |
| addFileSizes () | |
| add file sizes | |
| resolveIntLinks () | |
| Resolves all internal link targets of the page, if targets are available (after import) | |
| resolveMediaAliases ($a_mapping) | |
| Resolve media aliases (after import) | |
| resolveIIMMediaAliases ($a_mapping) | |
| Resolve iim media aliases (in ilContObjParse) | |
| resolveFileItems ($a_mapping) | |
| Resolve file items (after import) | |
| resolveQuestionReferences ($a_mapping) | |
| Resolve all quesion references (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, $skip_handle_usages=false) | |
| update complete page content in db (dom xml content is used) | |
| delete () | |
| delete page object | |
| saveMetaKeywords ($a_xml) | |
| save all keywords | |
| 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 | |
| saveContentIncludeUsage ($a_xml="", $a_old_nr=0) | |
| save content include usages | |
| collectContentIncludes ($a_xml="") | |
| get all content includes that are used within the page | |
| saveSkillUsage ($a_xml="", $a_old_nr=0) | |
| save content include usages | |
| collectSkills ($a_xml="") | |
| get all content includes that are used within the page | |
| saveStyleUsage ($a_xml, $a_old_nr=0) | |
| Save all style class/template usages. | |
| getLastUpdateOfIncludedElements () | |
| Get last update of included elements (media objects and files). | |
| saveInternalLinks ($a_xml) | |
| save internal links of page | |
| saveAnchors ($a_xml) | |
| save anchors | |
| 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, $a_self_ass=false) | |
| Delete multiple content objects. | |
| cutContents ($a_hids) | |
| Copy contents to clipboard and cut them from the page. | |
| copyContents ($a_hids) | |
| Copy contents to clipboard. | |
| pasteContents ($a_hier_id, $a_self_ass=false) | |
| Paste contents from pc clipboard. | |
| switchEnableMultiple ($a_hids, $a_update=true, $a_self_ass=false) | |
| (De-)activate elements | |
| 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 | |
| insertContentNode (&$a_cont_node, $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. | |
| getAllPCIds () | |
| Get all pc ids. | |
| existsPCId ($a_pc_id) | |
| existsPCId | |
| generatePcId ($a_pc_ids=false) | |
| Generate new pc id. | |
| insertPCIds () | |
| Insert Page Content IDs. | |
| getPageContentsHashes () | |
| Get page contents hashes. | |
| getQuestionIds () | |
| Get question ids. | |
| send_paragraph ($par_id, $filename) | |
| getFO () | |
| get fo page content | |
| registerOfflineHandler ($handler) | |
| _lookupContainsDeactivatedElements ($a_id, $a_parent_type) | |
| lookup whether page contains deactivated elements | |
| containsDeactivatedElements ($a_content) | |
| Check whether content 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. | |
| containsIntLinks ($a_content) | |
| Check whether content contains internal links. | |
| performAutomaticModifications () | |
| Perform automatic modifications (may be overwritten by sub classes) | |
Static Public Member Functions | |
| static | _exists ($a_parent_type, $a_id) |
| checks whether page exists | |
| static | _isScheduledActivation ($a_id, $a_parent_type) |
| Check whether page is activated by time schedule. | |
| static | lookupParentId ($a_id, $a_type) |
| Lookup parent id. | |
| static | _handleImportRepositoryLinks ($a_rep_import_id, $a_rep_type, $a_rep_ref_id) |
| Change targest of repository links. | |
| static | _getQuestionIdsForPage ($a_parent_type, $a_page_id) |
| Get all questions of a page. | |
| static | _deleteAnchors ($a_parent_type, $a_page_id) |
| Delete anchors of a page. | |
| static | _saveAnchor ($a_parent_type, $a_page_id, $a_anchor_name) |
| Save an anchor. | |
| static | _readAnchors ($a_parent_type, $a_page_id) |
| Read anchors of a page. | |
| 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_4_2.dtd" | |
| $contains_int_link | |
| $needs_parsing | |
| $parent_type | |
| $parent_id | |
| $update_listeners | |
| $update_listener_cnt | |
| $offline_handler | |
| $dom_builded | |
| $history_saved | |
| $layout_mode | |
Static Public Attributes | |
| static | $exists = array() |
Class ilPageObject.
Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition at line 26 of file class.ilPageObject.php.
|
static |
Delete anchors of a page.
Definition at line 3188 of file class.ilPageObject.php.
References $ilDB.
Referenced by saveAnchors().
Here is the caller graph for this function:
|
static |
checks whether page exists
| string | $a_parent_type | parent type |
| int | $a_id | page id |
Definition at line 273 of file class.ilPageObject.php.
References $ilDB, $query, and $row.
Referenced by ilShopPurchaseGUI\__getAbstractHTML(), ilContainer\cloneObject(), ilWikiHTMLExport\exportHTMLPages(), ilPortfolioHTMLExport\exportHTMLPages(), ilObjBlogGUI\exportHTMLPages(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilObjPaymentSettingsGUI\forwardToDocumentsPageObject(), ilPaymentObjectGUI\forwardToPageObject(), ilShopInfoGUI\forwardToPageObject(), ilTermsConditionsGUI\forwardToPageObject(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilShopGUI\forwardToPageObject(), ilObjPaymentSettingsGUI\forwardToPageObject(), ilObjPaymentSettingsGUI\getDocumentsPageHTML(), ilTermsConditionsGUI\getPageHTML(), ilShopInfoGUI\getPageHTML(), ilShopGUI\getPageHTML(), ilWikiExporter\getXmlExportTailDependencies(), ilMediaPoolPage\lookupUsages(), ilObjMediaObject\lookupUsages(), newQuestionCopies(), and ilObjContentObject\validatePages().
Here is the caller graph for this function:| ilPageObject::_existsAndNotEmpty | ( | $a_parent_type, | |
| $a_id | |||
| ) |
checks whether page exists and is not empty (may return true on some empty pages)
| string | $a_parent_type | parent type |
| int | $a_id | page id |
Definition at line 302 of file class.ilPageObject.php.
|
static |
Get all questions of a page.
Definition at line 3140 of file class.ilPageObject.php.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilSCORM2004Asset\exportXMLPageObjects(), ilObjectivesAlignmentTableGUI\fillRow(), ilLMPageObject\getQuestionIds(), and ilSCORM2004ScoGUI\sahs_questions().
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 2172 of file class.ilPageObject.php.
References ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_getSourcesOfTarget(), and ilPageObject().
Referenced by ilObjContentObject\importFromDirectory().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check whether page is activated by time schedule.
Definition at line 478 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilLMEditorExplorer\getImage(), and ilObjContentObjectGUI\pages().
Here is the caller graph for this function:| ilPageObject::_lookupActive | ( | $a_id, | |
| $a_parent_type, | |||
$a_check_scheduled_activation = false |
|||
| ) |
lookup activation status
Definition at line 452 of file class.ilPageObject.php.
References $ilDB, and ilUtil\now().
Referenced by ilLMPageObject\_getPresentationTitle(), ilStructureObjectGUI\activatePages(), ilObjContentObjectGUI\activatePages(), ilLMTOCExplorer\buildLinkTarget(), ilTableOfContentsExplorer\buildLinkTarget(), ilLMPagesTableGUI\fillRow(), ilObjBlogGUI\filterInactivePostings(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMPresentationGUI\getCurrentPageId(), ilLMEditorExplorer\getImage(), ilLMEditorExplorer\getImageAlt(), ilLMPresentationGUI\ilLMNavigation(), ilLMTOCExplorer\isClickable(), ilTableOfContentsExplorer\isClickable(), ilLMTOCExplorer\isVisible(), ilTableOfContentsExplorer\isVisible(), ilObjContentObjectGUI\pages(), ilObjBlogGUI\renderList(), ilObjBlogGUI\renderNavigation(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), and ilStructureObjectGUI\view().
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 4347 of file class.ilPageObject.php.
References $ilDB, $query, and DB_FETCHMODE_ASSOC.
Referenced by ilLMPagesTableGUI\fillRow(), 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 3528 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_splitPageNext().
Here is the caller graph for this function:
|
static |
Read anchors of a page.
Definition at line 3212 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilInternalLinkGUI\showLinkHelp().
Here is the caller graph for this function:
|
static |
Save an anchor.
Definition at line 3200 of file class.ilPageObject.php.
References $ilDB.
Referenced by saveAnchors().
Here is the caller graph for this function:| ilPageObject::_writeActive | ( | $a_id, | |
| $a_parent_type, | |||
| $a_active, | |||
$a_reset_scheduled_activation = true |
|||
| ) |
write activation status
Definition at line 498 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilStructureObjectGUI\activatePages(), and ilObjContentObjectGUI\activatePages().
Here is the caller graph for this function:| ilPageObject::_writeParentId | ( | $a_parent_type, | |
| $a_pg_id, | |||
| $a_par_id | |||
| ) |
Write parent id.
Definition at line 533 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilWikiImporter\finalProcessing().
Here is the caller graph for this function:| ilPageObject::addChangeDivClasses | ( | $a_hashes | ) |
Definition at line 4484 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1809 of file class.ilPageObject.php.
References $id, $path, $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 1595 of file class.ilPageObject.php.
References $path, $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 398 of file class.ilPageObject.php.
References $update_listener_cnt.
| ilPageObject::appendLangVarXML | ( | & | $xml, |
| $var | |||
| ) |
Definition at line 1230 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 939 of file class.ilPageObject.php.
| ilPageObject::bbCode2XML | ( | & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 3825 of file class.ilPageObject.php.
| ilPageObject::buildDom | ( | $a_force = false | ) |
Definition at line 320 of file class.ilPageObject.php.
References $ilBench, $path, $res, DOMXML_LOAD_VALIDATING, domxml_open_mem(), getXMLContent(), xpath_eval(), and xpath_new_context().
Referenced by collectContentIncludes(), collectSkills(), countPageContents(), delete(), ilSCORM2004Page\exportXMLPageContent(), handleImportRepositoryLink(), ilLMPresentationGUI\ilMedia(), ilLMPresentationGUI\ilPage(), moveIntLinks(), ilSCORM2004Page\performAutomaticModifications(), and ilPageObjectGUI\showMediaFullscreen().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::callUpdateListeners | ( | ) |
Definition at line 407 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by update().
Here is the caller graph for this function:| ilPageObject::checkForTag | ( | $a_content_tag, | |
| $a_hier_id, | |||
$a_pc_id = "" |
|||
| ) |
Get content node from dom.
| string | $a_hier_id | hierarchical ID |
| string | $a_pc_id | page content ID |
Definition at line 876 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by deleteContents(), and switchEnableMultiple().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 4063 of file class.ilPageObject.php.
References $dom, $path, $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::collectContentIncludes | ( | $a_xml = "" | ) |
get all content includes that are used within the page
Definition at line 2810 of file class.ilPageObject.php.
References $id, $path, $res, buildDom(), domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by saveContentIncludeUsage().
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 1487 of file class.ilPageObject.php.
References $dom, $path, $res, $t, domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by delete(), ilSCORM2004Page\exportXMLPageContent(), 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 1356 of file class.ilPageObject.php.
References $path, $res, ilObject\_exists(), xpath_eval(), and xpath_new_context().
Referenced by delete(), ilSCORM2004Page\exportXMLPageContent(), and getMultimediaXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::collectSkills | ( | $a_xml = "" | ) |
get all content includes that are used within the page
Definition at line 2860 of file class.ilPageObject.php.
References $id, $path, $res, buildDom(), domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by saveSkillUsage().
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 4512 of file class.ilPageObject.php.
References $ilDB, getId(), getParentType(), and ilPageObject().
Here is the call graph for this function:| ilPageObject::containsDeactivatedElements | ( | $a_content | ) |
Check whether content contains deactivated elements.
| @return |
Definition at line 4375 of file class.ilPageObject.php.
Referenced by createFromXML(), update(), and updateFromXML().
Here is the caller 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 1289 of file class.ilPageObject.php.
References $contains_int_link.
| ilPageObject::containsIntLinks | ( | $a_content | ) |
Check whether content contains internal links.
| @return |
Definition at line 4841 of file class.ilPageObject.php.
Referenced by createFromXML(), update(), and updateFromXML().
Here is the caller graph for this function:| ilPageObject::copyContents | ( | $a_hids | ) |
Copy contents to clipboard.
| string | $a_hids | array of hierarchical ids of content objects |
Definition at line 3307 of file class.ilPageObject.php.
References $skip, getContentNode(), ilEditClipboard\setAction(), and ilPageContent\sortHierIds().
Referenced by cutContents().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::copyXmlContent | ( | ) |
Copy content of page; replace page components with copies where necessary (e.g.
questions)
Definition at line 972 of file class.ilPageObject.php.
References $xml, DOMXML_LOAD_PARSING, domxml_open_mem(), and handleCopiedContent().
Here is the call graph for this function:| ilPageObject::countPageContents | ( | ) |
Remove questions from document.
| @return |
Definition at line 1117 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::create | ( | ) |
create new page (with current xml data)
Reimplemented in ilPortfolioPage, ilExtPublicProfilePage, ilBlogPosting, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 3230 of file class.ilPageObject.php.
References createFromXML().
Referenced by ilWikiPage\create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::createFromXML | ( | ) |
create new page object with current xml content
Definition at line 2226 of file class.ilPageObject.php.
References $ilDB, $lng, containsDeactivatedElements(), containsIntLinks(), getActive(), getId(), getParentId(), getParentType(), getXMLContent(), ilUtil\now(), and setXMLContent().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::cutContents | ( | $a_hids | ) |
Copy contents to clipboard and cut them from the page.
| string | $a_hids | array of hierarchical ids of content objects |
Definition at line 3296 of file class.ilPageObject.php.
References copyContents(), and deleteContents().
Here is the call graph for this function:| ilPageObject::delete | ( | ) |
delete page object
Reimplemented in ilPortfolioPage, ilWikiPage, ilExtPublicProfilePage, ilBlogPosting, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2547 of file class.ilPageObject.php.
References $files, $GLOBALS, $ilDB, $mobs, ilObjFile\_deleteAllUsages(), ilObject\_exists(), ilObject\_lookupType(), buildDom(), collectFileItems(), collectMediaObjects(), ilNewsItem\deleteNewsOfContext(), getId(), getParentId(), getParentType(), saveAnchors(), saveContentIncludeUsage(), saveInternalLinks(), saveMobUsage(), saveSkillUsage(), and saveStyleUsage().
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 3242 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 3497 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 3467 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, |
|||
$a_self_ass = false |
|||
| ) |
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 3260 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), and update().
Referenced by cutContents().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::existsPCId | ( | $a_pc_id | ) |
existsPCId
| @return |
Definition at line 4123 of file class.ilPageObject.php.
References $dom, $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::freeDom | ( | ) |
Definition at line 354 of file class.ilPageObject.php.
Referenced by ilSCORM2004Page\exportXMLPageContent().
Here is the caller graph for this function:| ilPageObject::generatePcId | ( | $a_pc_ids = false | ) |
Generate new pc id.
| array | $a_pc_ids | existing pc ids |
Definition at line 4149 of file class.ilPageObject.php.
References $id, and getAllPCIds().
Here is the call graph for this function:| ilPageObject::getActivationEnd | ( | ) |
Get Activation End.
Definition at line 577 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
Here is the caller graph for this function:| ilPageObject::getActivationStart | ( | ) |
Get Activation Start.
Definition at line 557 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
Here is the caller graph for this function:| ilPageObject::getActive | ( | $a_check_scheduled_activation = false | ) |
get activation
Definition at line 433 of file class.ilPageObject.php.
References ilDateTime\_after(), ilDateTime\_before(), getActivationEnd(), getActivationStart(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by createFromXML(), ilBlogPosting\update(), update(), and updateFromXML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 4642 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilBlogPosting\getAllPostings().
Here is the caller graph for this function:| ilPageObject::getAllPCIds | ( | ) |
Get all pc ids.
| @return |
Definition at line 4091 of file class.ilPageObject.php.
References $dom, $node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by generatePcId(), and insertPCIds().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::getBibliographyXML | ( | ) |
get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page
Definition at line 1332 of file class.ilPageObject.php.
References $_GET, $ilDB, $ilias, $row, and DB_FETCHMODE_ASSOC.
Referenced by getXMLFromDom().
Here is the caller graph for this function:| ilPageObject::getContainsQuestion | ( | ) |
Get contains question.
Definition at line 1323 of file class.ilPageObject.php.
| & ilPageObject::getContentNode | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
| ) |
Get content node from dom.
| string | $a_hier_id | hierarchical ID |
| string | $a_pc_id | page content ID |
Definition at line 838 of file class.ilPageObject.php.
References $node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by copyContents(), deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), getContentObject(), insertContent(), insertContentNode(), 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 = "" |
|||
| ) |
Get a content object of the page.
| string | hier ID |
| string | PC ID |
Definition at line 590 of file class.ilPageObject.php.
References $_GET, $_POST, $res, $tab, ilObject\_exists(), exit, and getContentNode().
Referenced by ilSCORM2004Page\exportXMLPageContent(), 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
Reimplemented in ilSCORM2004Page.
Definition at line 1750 of file class.ilPageObject.php.
| ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1734 of file class.ilPageObject.php.
| ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1237 of file class.ilPageObject.php.
References $path, $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 1726 of file class.ilPageObject.php.
| ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 4315 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 1718 of file class.ilPageObject.php.
Referenced by deleteContentBeforeHierId(), and deleteContentFromHierId().
Here is the caller graph for this function:| ilPageObject::getHierIdsForPCIds | ( | $a_pc_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1779 of file class.ilPageObject.php.
References $path, $res, $ret, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 4387 of file class.ilPageObject.php.
References $ilDB, getId(), and getParentType().
Here is the call graph for this function:| ilPageObject::getHistoryEntry | ( | $a_old_nr | ) |
Get History Entry.
Definition at line 4412 of file class.ilPageObject.php.
References $ilDB, $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 4437 of file class.ilPageObject.php.
References $ilDB, $res, $ret, and $row.
| ilPageObject::getId | ( | ) |
Definition at line 373 of file class.ilPageObject.php.
References $id.
Referenced by compareVersion(), ilBlogPosting\create(), ilExtPublicProfilePage\create(), ilWikiPage\create(), createFromXML(), ilBlogPosting\delete(), ilExtPublicProfilePage\delete(), ilWikiPage\delete(), ilPortfolioPage\delete(), delete(), ilSCORM2004Page\exportXMLMetaData(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilMediaPoolPage\getUsages(), ilBlogPosting\read(), ilExtPublicProfilePage\read(), ilWikiPage\read(), ilPortfolioPage\read(), ilWikiPage\rename(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), ilWikiPage\saveInternalLinks(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), saveSkillUsage(), ilBlogPosting\update(), ilExtPublicProfilePage\update(), ilWikiPage\update(), ilPortfolioPage\update(), update(), updateFromXML(), ilWikiPage\updateNews(), and writeRenderedContent().
Here is the caller graph for this function:| ilPageObject::getInternalLinks | ( | $a_cnt_multiple = false | ) |
get all internal links that are used within the page
Definition at line 1413 of file class.ilPageObject.php.
References $id, $path, $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 1194 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 165 of file class.ilPageObject.php.
| ilPageObject::getLastChangeUser | ( | ) |
Get last change user.
Definition at line 205 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 3017 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::getLayoutMode | ( | ) |
Get Layout Mode enabled/disabled.
Definition at line 185 of file class.ilPageObject.php.
References $layout_mode.
Referenced by insertContent().
Here is the caller graph for this function:| ilPageObject::getListItemIds | ( | ) |
get ids of all list items
Definition at line 1742 of file class.ilPageObject.php.
| ilPageObject::getMediaAliasElement | ( | $a_mob_id, | |
$a_nr = 1 |
|||
| ) |
get complete media object (alias) element
Definition at line 1557 of file class.ilPageObject.php.
References $path, $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 1535 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 4668 of file class.ilPageObject.php.
References $ilDB.
| & ilPageObject::getNode | ( | ) |
Definition at line 913 of file class.ilPageObject.php.
References $node.
Referenced by insertContent(), and insertContentNode().
Here is the caller graph for this function:| ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 4193 of file class.ilPageObject.php.
References $dom, $path, $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 4746 of file class.ilPageObject.php.
References $ilDB, and 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 4814 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilLMPageObject\getPagesWithLinksList().
Here is the caller graph for this function:| ilPageObject::getParentId | ( | ) |
Definition at line 383 of file class.ilPageObject.php.
References $parent_id.
Referenced by createFromXML(), delete(), ilSCORM2004Page\exportXMLMetaData(), ilBlogPosting\getBlogId(), ilExtPublicProfilePage\getUserId(), ilWikiPage\getWikiId(), saveMetaKeywords(), 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 4699 of file class.ilPageObject.php.
References $ilDB, ilObjUser\_lookupName(), and ilObject\_lookupType().
Here is the call graph for this function:| ilPageObject::getParentType | ( | ) |
Definition at line 393 of file class.ilPageObject.php.
References $parent_type.
Referenced by compareVersion(), createFromXML(), delete(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), read(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), saveSkillUsage(), update(), updateFromXML(), and writeRenderedContent().
Here is the caller graph for this function:| ilPageObject::getQuestionIds | ( | ) |
Get question ids.
Definition at line 4240 of file class.ilPageObject.php.
References $dom, $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Here is the call 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 4592 of file class.ilPageObject.php.
References $ilDB, and ilUtil\sortArray().
Here is the call graph for this function:| ilPageObject::getRenderedContent | ( | ) |
Get Rendered Content.
Definition at line 125 of file class.ilPageObject.php.
| ilPageObject::getRenderedTime | ( | ) |
Get Rendered Time.
Definition at line 145 of file class.ilPageObject.php.
| ilPageObject::getRenderMd5 | ( | ) |
Get Render MD5.
Definition at line 105 of file class.ilPageObject.php.
| ilPageObject::getXMLContent | ( | $a_incl_head = false | ) |
get xml content of page
Definition at line 948 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), ilMediaPoolPage\create(), ilExtPublicProfilePage\create(), ilWikiPage\create(), ilPortfolioPage\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 1131 of file class.ilPageObject.php.
References $mobs, $xml, getBibliographyXML(), getLanguageVariablesXML(), and getMultimediaXML().
Referenced by ilSCORM2004Page\exportXMLPageContent(), 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 85 of file class.ilPageObject.php.
| ilPageObject::handleCopiedContent | ( | $a_dom, | |
$a_self_ass = true |
|||
| ) |
Handle copied content.
This function copies items, that must be copied, if page content is duplicated.
| @return |
Definition at line 998 of file class.ilPageObject.php.
References newIIMCopies(), newQuestionCopies(), and removeQuestions().
Referenced by copyXmlContent(), and pasteContents().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::handleImportRepositoryLink | ( | $a_rep_import_id, | |
| $a_rep_type, | |||
| $a_rep_ref_id | |||
| ) |
Definition at line 2199 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 3946 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 3924 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 52 of file class.ilPageObject.php.
References $ilias, read(), and setActive().
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 4574 of file class.ilPageObject.php.
References $ilDB.
| 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 3585 of file class.ilPageObject.php.
References getContentNode(), getLayoutMode(), 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::insertContentNode | ( | & | $a_cont_node, |
| $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 3689 of file class.ilPageObject.php.
References getContentNode(), getNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, and IL_INSERT_CHILD.
Referenced by pasteContents().
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 3839 of file class.ilPageObject.php.
References $id, $path, $res, ilObject\_lookupObjId(), ilObject\_lookupType(), xpath_eval(), and xpath_new_context().
Referenced by ilSCORM2004Page\exportXMLPageContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 4163 of file class.ilPageObject.php.
References $dom, $id, $node, $path, $res, getAllPCIds(), 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 3955 of file class.ilPageObject.php.
References $n, $path, $res, highlightText(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::lookforhier | ( | $a_hier_id | ) |
Definition at line 901 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:
|
static |
Lookup parent id.
Definition at line 520 of file class.ilPageObject.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
Here is the caller 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 3801 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 3775 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 2007 of file class.ilPageObject.php.
References $changed, $id, $path, $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 1294 of file class.ilPageObject.php.
References $needs_parsing.
| ilPageObject::newIIMCopies | ( | $temp_dom | ) |
Replaces media objects in interactive images with copies of the interactive images.
Definition at line 1015 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::newQuestionCopies | ( | & | $temp_dom | ) |
Replaces existing question content elements with new copies.
Definition at line 1053 of file class.ilPageObject.php.
References $path, $res, _exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestion\_instanciateQuestion(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::pasteContents | ( | $a_hier_id, | |
$a_self_ass = false |
|||
| ) |
Paste contents from pc clipboard.
Definition at line 3378 of file class.ilPageObject.php.
References $path, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), handleCopiedContent(), IL_INSERT_AFTER, insertContentNode(), update(), xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::performAutomaticModifications | ( | ) |
Perform automatic modifications (may be overwritten by sub classes)
Reimplemented in ilSCORM2004Page.
Definition at line 4853 of file class.ilPageObject.php.
Referenced by update().
Here is the caller graph for this function:| ilPageObject::read | ( | ) |
read page data
Reimplemented in ilPortfolioPage, ilWikiPage, ilExtPublicProfilePage, ilBlogPosting, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 213 of file class.ilPageObject.php.
References $ilBench, $ilDB, $query, getParentType(), setActivationEnd(), setActivationStart(), setActive(), 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 4340 of file class.ilPageObject.php.
| ilPageObject::removeQuestions | ( | & | $temp_dom | ) |
Remove questions from document.
| @return |
Definition at line 1098 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::resolveFileItems | ( | $a_mapping | ) |
Resolve file items (after import)
| array | mapping array |
Definition at line 1955 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::resolveIIMMediaAliases | ( | $a_mapping | ) |
Resolve iim media aliases (in ilContObjParse)
| array | mapping array |
Definition at line 1928 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::resolveIntLinks | ( | ) |
Resolves all internal link targets of the page, if targets are available (after import)
Definition at line 1846 of file class.ilPageObject.php.
References $path, $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::resolveMediaAliases | ( | $a_mapping | ) |
Resolve media aliases (after import)
| array | mapping array |
Definition at line 1899 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::resolveQuestionReferences | ( | $a_mapping | ) |
Resolve all quesion references (after import)
Definition at line 1982 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Here is the call graph for this function:| ilPageObject::saveAnchors | ( | $a_xml | ) |
save anchors
| string | xml page code |
Definition at line 3162 of file class.ilPageObject.php.
References $path, $res, _deleteAnchors(), _saveAnchor(), 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::saveContentIncludeUsage | ( | $a_xml = "", |
|
$a_old_nr = 0 |
|||
| ) |
save content include usages
Definition at line 2793 of file class.ilPageObject.php.
References collectContentIncludes(), ilPageContentUsage\deleteAllUsages(), getId(), getParentType(), and ilPageContentUsage\saveUsage().
Referenced by delete(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::saveFileUsage | ( | $a_xml = "", |
|
$a_old_nr = 0 |
|||
| ) |
save file usages
Definition at line 2779 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 3034 of file class.ilPageObject.php.
References $ilDB, $path, $res, $target_arr, ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_saveLink(), domxml_open_mem(), getId(), getParentType(), xpath_eval(), and xpath_new_context().
Referenced by ilMediaPoolPage\create(), ilExtPublicProfilePage\create(), ilPortfolioPage\create(), delete(), update(), and updateFromXML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::saveMetaKeywords | ( | $a_xml | ) |
save all keywords
| string | $a_xml | xml data of page |
Definition at line 2637 of file class.ilPageObject.php.
References $id, $lang, $path, $res, domxml_open_mem(), getId(), getParentId(), getParentType(), ilUtil\stripSlashes(), 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::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 2717 of file class.ilPageObject.php.
References $path, $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::saveSkillUsage | ( | $a_xml = "", |
|
$a_old_nr = 0 |
|||
| ) |
save content include usages
Definition at line 2843 of file class.ilPageObject.php.
References collectSkills(), ilPageContentUsage\deleteAllUsages(), getId(), getParentType(), and ilPageContentUsage\saveUsage().
Referenced by delete(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPageObject::saveStyleUsage | ( | $a_xml, | |
$a_old_nr = 0 |
|||
| ) |
Save all style class/template usages.
| string | $a_xml | xml data of page |
Definition at line 2896 of file class.ilPageObject.php.
References $ilDB, $path, $res, domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by delete(), update(), and updateFromXML().
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 4270 of file class.ilPageObject.php.
References $dom, $filename, $path, $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::setActivationEnd | ( | $a_activationend | ) |
Set Activation End.
| date | $a_activationend | Activation End |
Definition at line 567 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setActivationStart | ( | $a_activationstart | ) |
Set Activation Start.
| date | $a_activationstart | Activation Start |
Definition at line 547 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setActive | ( | $a_active | ) |
set activation
| boolean | $a_active | true/false for active or not |
Definition at line 423 of file class.ilPageObject.php.
Referenced by ilPageObject(), and read().
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 1280 of file class.ilPageObject.php.
| ilPageObject::setContainsQuestion | ( | $a_val | ) |
Set contains question.
| boolean | $a_val | contains question |
Definition at line 1313 of file class.ilPageObject.php.
| ilPageObject::setId | ( | $a_id | ) |
set id
Definition at line 368 of file class.ilPageObject.php.
Referenced by ilSCORM2004PageNode\create(), ilLMPageObject\create(), ilBlogPosting\create(), ilExtPublicProfilePage\create(), ilWikiPage\create(), and ilPortfolioPage\create().
Here is the caller graph for this function:| ilPageObject::setLastChange | ( | $a_lastchange | ) |
Set Last Change.
| string | $a_lastchange | Last Change |
Definition at line 155 of file class.ilPageObject.php.
Referenced by read().
Here is the caller graph for this function:| ilPageObject::setLastChangeUser | ( | $a_val | ) |
Set last change user.
| integer | $a_val | last change user |
Definition at line 195 of file class.ilPageObject.php.
| ilPageObject::setLayoutMode | ( | $a_layout_mode | ) |
Set Layout Mode.
| boolean | $a_layout_mode | SetLayoutMode for editor |
Definition at line 175 of file class.ilPageObject.php.
| ilPageObject::setParagraphContent | ( | $a_hier_id, | |
| $a_content | |||
| ) |
Set content of paragraph.
| string | $a_hier_id | Hier ID |
| string | $a_content | Content |
Definition at line 1262 of file class.ilPageObject.php.
References $node, and getContentNode().
Here is the call graph for this function:| ilPageObject::setParentId | ( | $a_id | ) |
Definition at line 378 of file class.ilPageObject.php.
Referenced by ilContainerGUI\forwardToPageObject(), read(), ilBlogPosting\setBlogId(), ilExtPublicProfilePage\setUserId(), and ilWikiPage\setWikiId().
Here is the caller graph for this function:| ilPageObject::setParentType | ( | $a_type | ) |
Definition at line 388 of file class.ilPageObject.php.
| ilPageObject::setRenderedContent | ( | $a_renderedcontent | ) |
Set Rendered Content.
| string | $a_renderedcontent | Rendered Content |
Definition at line 115 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 135 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 95 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 927 of file class.ilPageObject.php.
Referenced by createFromXML(), and ilSCORM2004Page\createWithLayoutId().
Here is the caller graph for this function:| ilPageObject::stripHierIDs | ( | ) |
strip all hierarchical id attributes out of the dom tree
Definition at line 1758 of file class.ilPageObject.php.
References $path, $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, |
|||
$a_self_ass = false |
|||
| ) |
(De-)activate elements
Definition at line 3420 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), getContentObject(), and update().
Here is the call graph for this function:| ilPageObject::update | ( | $a_validate = true, |
|
$a_no_history = false, |
|||
$skip_handle_usages = false |
|||
| ) |
update complete page content in db (dom xml content is used)
Reimplemented in ilBlogPosting.
Definition at line 2337 of file class.ilPageObject.php.
References $errors, $file, $ilCtrl, $ilDB, $ilLog, $lng, ilObject\_exists(), ilObjFile\_getFilesOfObject(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), callUpdateListeners(), checkPCIds(), containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getId(), getParentId(), getParentType(), getXMLFromDom(), ILIAS_VERSION_NUMERIC, insertPCIds(), ilUtil\now(), performAutomaticModifications(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), saveSkillUsage(), saveStyleUsage(), and validateDom().
Referenced by deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), moveContentAfter(), moveContentBefore(), pasteContents(), 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 2280 of file class.ilPageObject.php.
References $ilDB, $lng, containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getId(), getParentId(), getParentType(), getXMLContent(), ilUtil\now(), saveInternalLinks(), and saveStyleUsage().
Here is the call graph for this function:| ilPageObject::validateDom | ( | ) |
Validate the page content agains page DTD.
Definition at line 1573 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 4787 of file class.ilPageObject.php.
References $ilDB, getId(), getParentType(), and ilUtil\now().
Here is the call graph for this function:| ilPageObject::$contains_int_link |
Definition at line 37 of file class.ilPageObject.php.
Referenced by containsIntLink().
| ilPageObject::$cur_dtd = "ilias_pg_4_2.dtd" |
Definition at line 36 of file class.ilPageObject.php.
| ilPageObject::$dom |
Definition at line 32 of file class.ilPageObject.php.
Referenced by checkPCIds(), collectFileItems(), existsPCId(), getAllPCIds(), getDom(), getPageContentsHashes(), getQuestionIds(), insertPCIds(), and send_paragraph().
| ilPageObject::$dom_builded |
Definition at line 44 of file class.ilPageObject.php.
| ilPageObject::$encoding |
Definition at line 34 of file class.ilPageObject.php.
|
static |
Definition at line 28 of file class.ilPageObject.php.
| ilPageObject::$history_saved |
Definition at line 45 of file class.ilPageObject.php.
| ilPageObject::$id |
Definition at line 30 of file class.ilPageObject.php.
Referenced by addFileSizes(), collectContentIncludes(), collectSkills(), ilBlogPosting\create(), ilExtPublicProfilePage\create(), ilWikiPage\create(), ilPortfolioPage\create(), ilPortfolioPage\delete(), generatePcId(), getId(), getInternalLinks(), insertInstIntoIDs(), insertPCIds(), moveIntLinks(), saveMetaKeywords(), and ilPortfolioPage\update().
| ilPageObject::$ilias |
Definition at line 31 of file class.ilPageObject.php.
Referenced by getBibliographyXML(), and ilPageObject().
| ilPageObject::$layout_mode |
Definition at line 46 of file class.ilPageObject.php.
Referenced by getLayoutMode().
| ilPageObject::$needs_parsing |
Definition at line 38 of file class.ilPageObject.php.
Referenced by needsImportParsing().
| ilPageObject::$node |
Definition at line 35 of file class.ilPageObject.php.
Referenced by getAllPCIds(), getContentNode(), getNode(), insertPCIds(), and setParagraphContent().
| ilPageObject::$offline_handler |
Definition at line 43 of file class.ilPageObject.php.
| ilPageObject::$parent_id |
Definition at line 40 of file class.ilPageObject.php.
Referenced by getParentId().
| ilPageObject::$parent_type |
Definition at line 39 of file class.ilPageObject.php.
Referenced by getParentType().
| ilPageObject::$update_listener_cnt |
Definition at line 42 of file class.ilPageObject.php.
Referenced by addUpdateListener(), and callUpdateListeners().
| ilPageObject::$update_listeners |
Definition at line 41 of file class.ilPageObject.php.
| ilPageObject::$xml |
Definition at line 33 of file class.ilPageObject.php.
Referenced by appendLangVarXML(), copyXmlContent(), ilSCORM2004Page\exportXMLPageContent(), getFO(), getLanguageVariablesXML(), getXMLContent(), and getXMLFromDom().