ILIAS
release_4-3 Revision
|
Class ilPageObject. More...
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. | |
setShowActivationInfo ($a_val) | |
Set show page activation info. | |
getShowActivationInfo () | |
Get show page activation info. | |
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 | |
_lookupActivationData ($a_id, $a_parent_type) | |
lookup 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 ($a_clone_mobs=false) | |
Copy content of page; replace page components with copies where necessary (e.g. | |
handleCopiedContent ($a_dom, $a_self_ass=true, $a_clone_mobs=false) | |
Handle copied content. | |
newIIMCopies ($temp_dom) | |
Replaces media objects in interactive images with copies of the interactive images. | |
newMobCopies ($temp_dom) | |
Replaces media objects with copies. | |
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) | |
saveInitialOpenedContent ($a_type, $a_id, $a_target) | |
Save initial opened content. | |
getInitialOpenedContent () | |
Get initial opened content. |
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_3.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 3276 of file class.ilPageObject.php.
Referenced by saveAnchors().
|
static |
checks whether page exists
string | $a_parent_type | parent type |
int | $a_id | page id |
Definition at line 294 of file class.ilPageObject.php.
Referenced by ilImprintGUI\__construct(), ilShopPurchaseGUI\__getAbstractHTML(), ilContainer\cloneObject(), ilWikiHTMLExport\exportHTMLPages(), ilPortfolioHTMLExport\exportHTMLPages(), ilObjBlogGUI\exportHTMLPages(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilCOPageImporter\finalProcessing(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilObjPaymentSettingsGUI\forwardToDocumentsPageObject(), ilShopInfoGUI\forwardToPageObject(), ilTermsConditionsGUI\forwardToPageObject(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilShopGUI\forwardToPageObject(), ilObjPaymentSettingsGUI\getDocumentsPageHTML(), ilShopInfoGUI\getPageHTML(), ilTermsConditionsGUI\getPageHTML(), ilShopGUI\getPageHTML(), ilWikiExporter\getXmlExportTailDependencies(), ilMediaPoolPage\lookupUsages(), ilObjMediaObject\lookupUsages(), newQuestionCopies(), ilContObjParser\processPagesToParse(), ilWikiPage\rename(), and ilObjContentObject\validatePages().
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 323 of file class.ilPageObject.php.
|
static |
Get all questions of a page.
Definition at line 3228 of file class.ilPageObject.php.
References $res.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilSCORM2004Asset\exportXMLPageObjects(), ilObjectivesAlignmentTableGUI\fillRow(), ilLMPageObject\getQuestionIds(), and ilSCORM2004ScoGUI\sahs_questions().
|
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 2259 of file class.ilPageObject.php.
References ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_getSourcesOfTarget(), and ilPageObject().
Referenced by ilObjContentObject\importFromDirectory().
|
static |
Check whether page is activated by time schedule.
Definition at line 499 of file class.ilPageObject.php.
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilLMTOCExplorer\getImage(), ilLMEditorExplorer\getImage(), ilTableOfContentsExplorer\getImage(), and ilObjContentObjectGUI\pages().
ilPageObject::_lookupActivationData | ( | $a_id, | |
$a_parent_type | |||
) |
lookup activation status
Definition at line 541 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_getPresentationTitle(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilPage(), ilLMTOCExplorer\isVisible(), and ilTableOfContentsExplorer\isVisible().
ilPageObject::_lookupActive | ( | $a_id, | |
$a_parent_type, | |||
$a_check_scheduled_activation = false |
|||
) |
lookup activation status
Definition at line 473 of file class.ilPageObject.php.
References ilUtil\now().
Referenced by ilLMPageObject\_getPresentationTitle(), ilStructureObjectGUI\activatePages(), ilObjContentObjectGUI\activatePages(), ilTableOfContentsExplorer\buildLinkTarget(), ilLMTOCExplorer\buildLinkTarget(), ilObjBlog\deliverRSS(), ilLMPagesTableGUI\fillRow(), ilObjBlogGUI\filterInactivePostings(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMPresentationGUI\getCurrentPageId(), ilLMTOCExplorer\getImage(), ilLMEditorExplorer\getImage(), ilTableOfContentsExplorer\getImage(), ilLMEditorExplorer\getImageAlt(), ilObjBlogGUI\getKeywords(), ilLMPresentationGUI\ilLMNavigation(), ilImprint\isActive(), ilLMTOCExplorer\isClickable(), ilTableOfContentsExplorer\isClickable(), ilLMTOCExplorer\isVisible(), ilTableOfContentsExplorer\isVisible(), ilObjContentObjectGUI\pages(), ilObjBlogGUI\renderList(), ilObjBlogGUI\renderNavigation(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), and ilStructureObjectGUI\view().
ilPageObject::_lookupContainsDeactivatedElements | ( | $a_id, | |
$a_parent_type | |||
) |
lookup whether page contains deactivated elements
Definition at line 4447 of file class.ilPageObject.php.
References $query, and DB_FETCHMODE_ASSOC.
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMTOCExplorer\getImage(), ilLMEditorExplorer\getImage(), ilTableOfContentsExplorer\getImage(), ilLMEditorExplorer\getImageAlt(), ilObjContentObjectGUI\pages(), and ilStructureObjectGUI\view().
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 3616 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_splitPageNext().
|
static |
Read anchors of a page.
Definition at line 3300 of file class.ilPageObject.php.
Referenced by ilInternalLinkGUI\showLinkHelp().
|
static |
Save an anchor.
Definition at line 3288 of file class.ilPageObject.php.
Referenced by saveAnchors().
ilPageObject::_writeActive | ( | $a_id, | |
$a_parent_type, | |||
$a_active, | |||
$a_reset_scheduled_activation = true |
|||
) |
write activation status
Definition at line 519 of file class.ilPageObject.php.
Referenced by ilStructureObjectGUI\activatePages(), and ilObjContentObjectGUI\activatePages().
ilPageObject::_writeParentId | ( | $a_parent_type, | |
$a_pg_id, | |||
$a_par_id | |||
) |
Write parent id.
Definition at line 571 of file class.ilPageObject.php.
Referenced by ilWikiImporter\finalProcessing(), and ilBlogImporter\finalProcessing().
ilPageObject::addChangeDivClasses | ( | $a_hashes | ) |
Definition at line 4584 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1896 of file class.ilPageObject.php.
References $id, $path, $res, $size, ilObjFile\_lookupFileSize(), xpath_eval(), and xpath_new_context().
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 1682 of file class.ilPageObject.php.
References $path, $res, ilPageContent\incEdId(), xpath_eval(), and xpath_new_context().
Referenced by moveIntLinks().
ilPageObject::addUpdateListener | ( | & | $a_object, |
$a_method, | |||
$a_parameters = "" |
|||
) |
Definition at line 419 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by ilBlogPosting\read().
ilPageObject::appendLangVarXML | ( | & | $xml, |
$var | |||
) |
Definition at line 1313 of file class.ilPageObject.php.
Referenced by getLanguageVariablesXML().
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 977 of file class.ilPageObject.php.
ilPageObject::bbCode2XML | ( | & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 3913 of file class.ilPageObject.php.
ilPageObject::buildDom | ( | $a_force = false | ) |
Definition at line 341 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(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), getInitialOpenedContent(), handleImportRepositoryLink(), ilLMPresentationGUI\ilMedia(), ilLMPresentationGUI\ilPage(), ilPCVerification\isInPortfolioPage(), moveIntLinks(), ilSCORM2004Page\performAutomaticModifications(), saveInitialOpenedContent(), and ilPageObjectGUI\showMediaFullscreen().
ilPageObject::callUpdateListeners | ( | ) |
Definition at line 428 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by update().
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 914 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by deleteContents(), and switchEnableMultiple().
ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 4163 of file class.ilPageObject.php.
References $dom, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by update().
ilPageObject::collectContentIncludes | ( | $a_xml = "" | ) |
get all content includes that are used within the page
Definition at line 2898 of file class.ilPageObject.php.
References $id, $path, $res, buildDom(), domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by saveContentIncludeUsage().
ilPageObject::collectFileItems | ( | $a_xml = "" | ) |
get all file items that are used within the page
Definition at line 1570 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().
ilPageObject::collectMediaObjects | ( | $a_inline_only = true | ) |
get all media objects, that are referenced and used within the page
Definition at line 1439 of file class.ilPageObject.php.
References $path, $res, ilObject\_exists(), xpath_eval(), and xpath_new_context().
Referenced by delete(), ilSCORM2004Page\exportXMLPageContent(), and getMultimediaXML().
ilPageObject::collectSkills | ( | $a_xml = "" | ) |
get all content includes that are used within the page
Definition at line 2948 of file class.ilPageObject.php.
References $id, $path, $res, buildDom(), domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by saveSkillUsage().
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 4612 of file class.ilPageObject.php.
References getId(), getParentType(), and ilPageObject().
ilPageObject::containsDeactivatedElements | ( | $a_content | ) |
Check whether content contains deactivated elements.
@return |
Definition at line 4475 of file class.ilPageObject.php.
Referenced by createFromXML(), update(), and updateFromXML().
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 1372 of file class.ilPageObject.php.
References $contains_int_link.
ilPageObject::containsIntLinks | ( | $a_content | ) |
Check whether content contains internal links.
@return |
Definition at line 4941 of file class.ilPageObject.php.
Referenced by createFromXML(), update(), and updateFromXML().
ilPageObject::copyContents | ( | $a_hids | ) |
Copy contents to clipboard.
string | $a_hids | array of hierarchical ids of content objects |
Definition at line 3395 of file class.ilPageObject.php.
References $ilUser, getContentNode(), ilEditClipboard\setAction(), and ilPageContent\sortHierIds().
Referenced by cutContents().
ilPageObject::copyXmlContent | ( | $a_clone_mobs = false | ) |
Copy content of page; replace page components with copies where necessary (e.g.
questions)
Definition at line 1010 of file class.ilPageObject.php.
References $xml, DOMXML_LOAD_PARSING, domxml_open_mem(), and handleCopiedContent().
ilPageObject::countPageContents | ( | ) |
Remove questions from document.
@return |
Definition at line 1200 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::create | ( | ) |
create new page (with current xml data)
Reimplemented in ilPortfolioPage, ilDataCollectionRecordViewViewdefinition, ilExtPublicProfilePage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 3318 of file class.ilPageObject.php.
References createFromXML().
Referenced by ilWikiPage\create(), and ilBlogPosting\create().
ilPageObject::createFromXML | ( | ) |
create new page object with current xml content
Definition at line 2313 of file class.ilPageObject.php.
References $ilUser, $lng, containsDeactivatedElements(), containsIntLinks(), getActive(), getId(), getParentId(), getParentType(), getXMLContent(), ilUtil\now(), and setXMLContent().
Referenced by create().
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 3384 of file class.ilPageObject.php.
References copyContents(), and deleteContents().
ilPageObject::delete | ( | ) |
delete page object
Reimplemented in ilBlogPosting, ilWikiPage, ilPortfolioPage, ilExtPublicProfilePage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2635 of file class.ilPageObject.php.
References $GLOBALS, $mobs, ilObjFile\_deleteAllUsages(), ilObject\_exists(), ilObject\_lookupType(), buildDom(), collectFileItems(), collectMediaObjects(), ilNewsItem\deleteNewsOfContext(), getId(), getParentId(), getParentType(), saveAnchors(), saveContentIncludeUsage(), saveInternalLinks(), saveMobUsage(), saveSkillUsage(), and saveStyleUsage().
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 3330 of file class.ilPageObject.php.
References getContentNode(), and update().
Referenced by moveContentAfter(), and moveContentBefore().
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 3585 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
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 3555 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
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 3348 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), and update().
Referenced by cutContents().
ilPageObject::existsPCId | ( | $a_pc_id | ) |
existsPCId
@return |
Definition at line 4223 of file class.ilPageObject.php.
References $dom, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::freeDom | ( | ) |
Definition at line 375 of file class.ilPageObject.php.
Referenced by ilSCORM2004Page\exportXMLPageContent().
ilPageObject::generatePcId | ( | $a_pc_ids = false | ) |
Generate new pc id.
array | $a_pc_ids | existing pc ids |
Definition at line 4249 of file class.ilPageObject.php.
References $id, and getAllPCIds().
ilPageObject::getActivationEnd | ( | ) |
Get Activation End.
Definition at line 615 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
ilPageObject::getActivationStart | ( | ) |
Get Activation Start.
Definition at line 595 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
ilPageObject::getActive | ( | $a_check_scheduled_activation = false | ) |
get activation
Definition at line 454 of file class.ilPageObject.php.
References ilDateTime\_after(), ilDateTime\_before(), getActivationEnd(), getActivationStart(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilBlogPosting\checkApproval(), createFromXML(), ilBlogPosting\update(), update(), and updateFromXML().
|
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 4742 of file class.ilPageObject.php.
Referenced by ilBlogPosting\getAllPostings().
ilPageObject::getAllPCIds | ( | ) |
Get all pc ids.
@return |
Definition at line 4191 of file class.ilPageObject.php.
References $dom, $node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by generatePcId(), and insertPCIds().
ilPageObject::getBibliographyXML | ( | ) |
get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page
Definition at line 1415 of file class.ilPageObject.php.
References $_GET, $ilias, $row, and DB_FETCHMODE_ASSOC.
Referenced by getXMLFromDom().
ilPageObject::getContainsQuestion | ( | ) |
Get contains question.
Definition at line 1406 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 876 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().
& ilPageObject::getContentObject | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
) |
Get a content object of the page.
string | hier ID |
string | PC ID |
Definition at line 628 of file class.ilPageObject.php.
References $_GET, $_POST, $res, $tab, ilObject\_exists(), exit, and getContentNode().
Referenced by ilSCORM2004Page\exportXMLPageContent(), moveContentAfter(), moveContentBefore(), and switchEnableMultiple().
& ilPageObject::getDom | ( | ) |
Definition at line 381 of file class.ilPageObject.php.
References $dom.
Referenced by ilPCVerification\isInPortfolioPage().
ilPageObject::getFileItemIds | ( | ) |
get ids of all file items
Reimplemented in ilSCORM2004Page.
Definition at line 1837 of file class.ilPageObject.php.
ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1821 of file class.ilPageObject.php.
ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1320 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::getFirstRowIds | ( | ) |
get ids of all first table rows
Definition at line 1813 of file class.ilPageObject.php.
ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 4415 of file class.ilPageObject.php.
References $xml, getXMLFromDom(), xslt_create(), xslt_free(), and xslt_process().
ilPageObject::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 1805 of file class.ilPageObject.php.
Referenced by deleteContentBeforeHierId(), and deleteContentFromHierId().
ilPageObject::getHierIdsForPCIds | ( | $a_pc_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1866 of file class.ilPageObject.php.
References $path, $res, $ret, xpath_eval(), and xpath_new_context().
ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 4487 of file class.ilPageObject.php.
References getId(), and getParentType().
ilPageObject::getHistoryEntry | ( | $a_old_nr | ) |
Get History Entry.
Definition at line 4512 of file class.ilPageObject.php.
References $res, getId(), and getParentType().
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 4537 of file class.ilPageObject.php.
References $res, $ret, and $row.
ilPageObject::getId | ( | ) |
Reimplemented in ilDataCollectionRecordViewViewdefinition.
Definition at line 394 of file class.ilPageObject.php.
References $id.
Referenced by compareVersion(), ilExtPublicProfilePage\create(), ilWikiPage\create(), ilBlogPosting\create(), createFromXML(), ilExtPublicProfilePage\delete(), ilPortfolioPage\delete(), ilWikiPage\delete(), ilBlogPosting\delete(), delete(), ilSCORM2004Page\exportXMLMetaData(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilMediaPoolPage\getUsages(), ilExtPublicProfilePage\read(), ilPortfolioPage\read(), ilWikiPage\read(), ilBlogPosting\read(), ilWikiPage\rename(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), ilWikiPage\saveInternalLinks(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), saveSkillUsage(), ilExtPublicProfilePage\update(), ilPortfolioPage\update(), ilWikiPage\update(), ilBlogPosting\update(), update(), updateFromXML(), ilWikiPage\updateNews(), and writeRenderedContent().
ilPageObject::getInitialOpenedContent | ( | ) |
Get initial opened content.
Definition at line 5037 of file class.ilPageObject.php.
References $id, $path, $res, ilInternalLink\_extractObjIdOfTarget(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::getInternalLinks | ( | $a_cnt_multiple = false | ) |
get all internal links that are used within the page
Definition at line 1496 of file class.ilPageObject.php.
References $id, $path, $res, ilMediaItem\_getMapAreasIntLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::getLanguageVariablesXML | ( | ) |
get language variables as XML
Definition at line 1277 of file class.ilPageObject.php.
References $lng, $xml, and appendLangVarXML().
Referenced by getXMLFromDom().
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 3105 of file class.ilPageObject.php.
References $mobs, ilObjFile\_getFilesOfObject(), ilObject\_getLastUpdateOfObjects(), ilObjMediaObject\_getMobsOfObject(), getId(), and getParentType().
ilPageObject::getLayoutMode | ( | ) |
Get Layout Mode enabled/disabled.
Definition at line 185 of file class.ilPageObject.php.
References $layout_mode.
Referenced by insertContent().
ilPageObject::getListItemIds | ( | ) |
get ids of all list items
Definition at line 1829 of file class.ilPageObject.php.
ilPageObject::getMediaAliasElement | ( | $a_mob_id, | |
$a_nr = 1 |
|||
) |
get complete media object (alias) element
Definition at line 1640 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
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 1618 of file class.ilPageObject.php.
References ilObject\_lookupType(), collectMediaObjects(), and IL_MODE_OUTPUT.
Referenced by getXMLFromDom().
|
static |
Get new pages.
string | $a_parent_type | Parent Type |
int | $a_parent_id | Parent ID |
Definition at line 4768 of file class.ilPageObject.php.
& ilPageObject::getNode | ( | ) |
Definition at line 951 of file class.ilPageObject.php.
References $node.
Referenced by insertContent(), and insertContentNode().
ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 4293 of file class.ilPageObject.php.
References $dom, $path, $res, ilPCParagraph\xml2output(), xpath_eval(), and xpath_new_context().
|
static |
Get all contributors for parent object.
string | $a_parent_type | Parent Type |
int | $a_parent_id | Parent ID |
Definition at line 4846 of file class.ilPageObject.php.
References ilObjUser\_lookupName().
|
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 4914 of file class.ilPageObject.php.
Referenced by ilLMPageObject\getPagesWithLinksList().
ilPageObject::getParentId | ( | ) |
Definition at line 404 of file class.ilPageObject.php.
References $parent_id.
Referenced by createFromXML(), delete(), ilSCORM2004Page\exportXMLMetaData(), ilBlogPosting\getBlogId(), ilExtPublicProfilePage\getUserId(), ilWikiPage\getWikiId(), saveMetaKeywords(), update(), and updateFromXML().
|
static |
Get all contributors for parent object.
string | $a_parent_type | Parent Type |
int | $a_parent_id | Parent ID |
Definition at line 4799 of file class.ilPageObject.php.
References ilObjUser\_lookupName(), and ilObject\_lookupType().
ilPageObject::getParentType | ( | ) |
Definition at line 414 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().
ilPageObject::getQuestionIds | ( | ) |
Get question ids.
Definition at line 4340 of file class.ilPageObject.php.
References $dom, $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
|
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 4692 of file class.ilPageObject.php.
References ilUtil\sortArray().
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::getShowActivationInfo | ( | ) |
Get show page activation info.
Definition at line 225 of file class.ilPageObject.php.
Referenced by update().
ilPageObject::getXMLContent | ( | $a_incl_head = false | ) |
get xml content of page
Definition at line 986 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), ilMediaPoolPage\create(), ilExtPublicProfilePage\create(), ilWikiPage\create(), ilPortfolioPage\create(), createFromXML(), ilLMPresentationGUI\ilCitation(), and updateFromXML().
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 1214 of file class.ilPageObject.php.
References $mobs, $xml, getBibliographyXML(), getLanguageVariablesXML(), and getMultimediaXML().
Referenced by ilSCORM2004Page\exportXMLPageContent(), getFO(), and update().
ilPageObject::haltOnError | ( | $a_halt | ) |
Definition at line 85 of file class.ilPageObject.php.
ilPageObject::handleCopiedContent | ( | $a_dom, | |
$a_self_ass = true , |
|||
$a_clone_mobs = false |
|||
) |
Handle copied content.
This function copies items, that must be copied, if page content is duplicated.
@return |
Definition at line 1036 of file class.ilPageObject.php.
References newIIMCopies(), newMobCopies(), newQuestionCopies(), and removeQuestions().
Referenced by copyXmlContent(), and pasteContents().
ilPageObject::handleImportRepositoryLink | ( | $a_rep_import_id, | |
$a_rep_type, | |||
$a_rep_ref_id | |||
) |
Definition at line 2286 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 4046 of file class.ilPageObject.php.
Referenced by highlightText().
ilPageObject::highlightText | ( | $a_text, | |
$proglang, | |||
$autoindent | |||
) |
Highligths Text with given ProgLang.
Definition at line 4024 of file class.ilPageObject.php.
References hasHighlighter().
Referenced by insertSourceCodeParagraphs().
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().
ilPageObject::increaseViewCnt | ( | ) |
increase view cnt
Definition at line 4674 of file class.ilPageObject.php.
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 3673 of file class.ilPageObject.php.
References getContentNode(), getLayoutMode(), getNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, and IL_INSERT_CHILD.
Referenced by moveContentAfter(), and moveContentBefore().
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 3777 of file class.ilPageObject.php.
References getContentNode(), getNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, and IL_INSERT_CHILD.
Referenced by pasteContents().
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 3927 of file class.ilPageObject.php.
References $id, $path, $ref_id, $res, ilObject\_lookupObjId(), ilObject\_lookupType(), xpath_eval(), and xpath_new_context().
Referenced by ilSCORM2004Page\exportXMLPageContent().
ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 4263 of file class.ilPageObject.php.
References $dom, $id, $node, $path, $res, getAllPCIds(), xpath_eval(), and xpath_new_context().
Referenced by update().
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 4055 of file class.ilPageObject.php.
References $n, $path, $res, highlightText(), xpath_eval(), and xpath_new_context().
ilPageObject::lookforhier | ( | $a_hier_id | ) |
Definition at line 939 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
|
static |
Lookup parent id.
Definition at line 558 of file class.ilPageObject.php.
References $res.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
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 3889 of file class.ilPageObject.php.
References deleteContent(), getContentObject(), IL_INSERT_AFTER, insertContent(), and update().
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 3863 of file class.ilPageObject.php.
References deleteContent(), getContentObject(), IL_INSERT_BEFORE, insertContent(), and update().
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 2094 of file class.ilPageObject.php.
References $changed, $id, $path, $res, $t, ilInternalLink\_extractObjIdOfTarget(), ilLMObject\_lookupType(), addHierIDs(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::needsImportParsing | ( | $a_parse = "" | ) |
Definition at line 1377 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 1063 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::newMobCopies | ( | $temp_dom | ) |
Replaces media objects with copies.
Definition at line 1099 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::newQuestionCopies | ( | & | $temp_dom | ) |
Replaces existing question content elements with new copies.
Definition at line 1136 of file class.ilPageObject.php.
References $path, $res, _exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestion\_instanciateQuestion(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::pasteContents | ( | $a_hier_id, | |
$a_self_ass = false |
|||
) |
Paste contents from pc clipboard.
Definition at line 3466 of file class.ilPageObject.php.
References $ilUser, $path, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), handleCopiedContent(), IL_INSERT_AFTER, insertContentNode(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::performAutomaticModifications | ( | ) |
Perform automatic modifications (may be overwritten by sub classes)
Reimplemented in ilSCORM2004Page.
Definition at line 4953 of file class.ilPageObject.php.
Referenced by update().
ilPageObject::read | ( | ) |
read page data
Reimplemented in ilBlogPosting, ilWikiPage, ilPortfolioPage, ilExtPublicProfilePage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 233 of file class.ilPageObject.php.
References $ilBench, $query, getParentType(), setActivationEnd(), setActivationStart(), setActive(), setLastChange(), setParentId(), setRenderedContent(), setRenderedTime(), setRenderMd5(), and setShowActivationInfo().
Referenced by ilPageObject().
ilPageObject::registerOfflineHandler | ( | $handler | ) |
Definition at line 4440 of file class.ilPageObject.php.
ilPageObject::removeQuestions | ( | & | $temp_dom | ) |
Remove questions from document.
@return |
Definition at line 1181 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::resolveFileItems | ( | $a_mapping | ) |
Resolve file items (after import)
array | mapping array |
Definition at line 2042 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::resolveIIMMediaAliases | ( | $a_mapping | ) |
Resolve iim media aliases (in ilContObjParse)
array | mapping array |
Definition at line 2015 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::resolveIntLinks | ( | ) |
Resolves all internal link targets of the page, if targets are available (after import)
Definition at line 1933 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_getIdForImportId(), ilInternalLink\_removeInstFromTarget(), ilMediaItem\_resolveMapAreaLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::resolveMediaAliases | ( | $a_mapping | ) |
Resolve media aliases (after import)
array | mapping array |
Definition at line 1986 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::resolveQuestionReferences | ( | $a_mapping | ) |
Resolve all quesion references (after import)
Definition at line 2069 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::saveAnchors | ( | $a_xml | ) |
save anchors
string | xml page code |
Definition at line 3250 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().
ilPageObject::saveContentIncludeUsage | ( | $a_xml = "" , |
|
$a_old_nr = 0 |
|||
) |
save content include usages
Definition at line 2881 of file class.ilPageObject.php.
References collectContentIncludes(), ilPageContentUsage\deleteAllUsages(), getId(), getParentType(), and ilPageContentUsage\saveUsage().
Referenced by delete(), and update().
ilPageObject::saveFileUsage | ( | $a_xml = "" , |
|
$a_old_nr = 0 |
|||
) |
save file usages
Definition at line 2867 of file class.ilPageObject.php.
References ilObjFile\_deleteAllUsages(), ilObjFile\_saveUsage(), collectFileItems(), getId(), and getParentType().
Referenced by update().
ilPageObject::saveInitialOpenedContent | ( | $a_type, | |
$a_id, | |||
$a_target | |||
) |
Save initial opened content.
Definition at line 4962 of file class.ilPageObject.php.
References $path, $res, $ret, buildDom(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::saveInternalLinks | ( | $a_xml | ) |
save internal links of page
string | xml page code |
Reimplemented in ilWikiPage.
Definition at line 3122 of file class.ilPageObject.php.
References $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().
ilPageObject::saveMetaKeywords | ( | $a_xml | ) |
save all keywords
string | $a_xml | xml data of page |
Definition at line 2725 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().
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 2805 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().
ilPageObject::saveSkillUsage | ( | $a_xml = "" , |
|
$a_old_nr = 0 |
|||
) |
save content include usages
Definition at line 2931 of file class.ilPageObject.php.
References collectSkills(), ilPageContentUsage\deleteAllUsages(), getId(), getParentType(), and ilPageContentUsage\saveUsage().
Referenced by delete(), and update().
ilPageObject::saveStyleUsage | ( | $a_xml, | |
$a_old_nr = 0 |
|||
) |
Save all style class/template usages.
string | $a_xml | xml data of page |
Definition at line 2984 of file class.ilPageObject.php.
References $path, $res, domxml_open_mem(), xpath_eval(), and xpath_new_context().
Referenced by delete(), update(), and updateFromXML().
ilPageObject::send_paragraph | ( | $par_id, | |
$filename | |||
) |
Definition at line 4370 of file class.ilPageObject.php.
References $dom, $filename, $path, $res, ilUtil\deliverData(), exit, xpath_eval(), and xpath_new_context().
Referenced by ilLMPresentationGUI\download_paragraph().
ilPageObject::setActivationEnd | ( | $a_activationend | ) |
Set Activation End.
date | $a_activationend | Activation End |
Definition at line 605 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActivationStart | ( | $a_activationstart | ) |
Set Activation Start.
date | $a_activationstart | Activation Start |
Definition at line 585 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActive | ( | $a_active | ) |
set activation
boolean | $a_active | true/false for active or not |
Definition at line 444 of file class.ilPageObject.php.
Referenced by ilPageObject(), and read().
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 1363 of file class.ilPageObject.php.
ilPageObject::setContainsQuestion | ( | $a_val | ) |
Set contains question.
boolean | $a_val | contains question |
Definition at line 1396 of file class.ilPageObject.php.
ilPageObject::setId | ( | $a_id | ) |
set id
Reimplemented in ilDataCollectionRecordViewViewdefinition.
Definition at line 389 of file class.ilPageObject.php.
Referenced by ilSCORM2004PageNode\create(), ilLMPageObject\create(), ilExtPublicProfilePage\create(), ilWikiPage\create(), ilBlogPosting\create(), and ilPortfolioPage\create().
ilPageObject::setLastChange | ( | $a_lastchange | ) |
Set Last Change.
string | $a_lastchange | Last Change |
Definition at line 155 of file class.ilPageObject.php.
Referenced by read().
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 1345 of file class.ilPageObject.php.
References $node, and getContentNode().
ilPageObject::setParentId | ( | $a_id | ) |
Definition at line 399 of file class.ilPageObject.php.
Referenced by ilContainerGUI\forwardToPageObject(), read(), ilBlogPosting\setBlogId(), ilExtPublicProfilePage\setUserId(), and ilWikiPage\setWikiId().
ilPageObject::setParentType | ( | $a_type | ) |
Definition at line 409 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().
ilPageObject::setRenderedTime | ( | $a_renderedtime | ) |
Set Rendered Time.
string | $a_renderedtime | Rendered Time |
Definition at line 135 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setRenderMd5 | ( | $a_rendermd5 | ) |
Set Render MD5.
string | $a_rendermd5 | Render MD5 |
Definition at line 95 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setShowActivationInfo | ( | $a_val | ) |
Set show page activation info.
bool | $a_val | show page actication info |
Definition at line 215 of file class.ilPageObject.php.
Referenced by read().
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 965 of file class.ilPageObject.php.
Referenced by createFromXML(), and ilSCORM2004Page\createWithLayoutId().
ilPageObject::stripHierIDs | ( | ) |
strip all hierarchical id attributes out of the dom tree
Definition at line 1845 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by validateDom().
ilPageObject::switchEnableMultiple | ( | $a_hids, | |
$a_update = true , |
|||
$a_self_ass = false |
|||
) |
(De-)activate elements
Definition at line 3508 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), getContentObject(), and update().
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 2424 of file class.ilPageObject.php.
References $errors, $file, $ilCtrl, $ilLog, $ilUser, $lng, ilObject\_exists(), ilObjFile\_getFilesOfObject(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), callUpdateListeners(), checkPCIds(), containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getId(), getParentId(), getParentType(), getShowActivationInfo(), 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(), saveInitialOpenedContent(), and switchEnableMultiple().
ilPageObject::updateFromXML | ( | ) |
updates page object with current xml content
Definition at line 2367 of file class.ilPageObject.php.
References $ilUser, $lng, containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getId(), getParentId(), getParentType(), getXMLContent(), ilUtil\now(), saveInternalLinks(), and saveStyleUsage().
ilPageObject::validateDom | ( | ) |
Validate the page content agains page DTD.
Definition at line 1656 of file class.ilPageObject.php.
References stripHierIDs().
Referenced by update().
ilPageObject::writeRenderedContent | ( | $a_content, | |
$a_md5 | |||
) |
Write rendered content.
Definition at line 4887 of file class.ilPageObject.php.
References getId(), getParentType(), and ilUtil\now().
ilPageObject::$contains_int_link |
Definition at line 37 of file class.ilPageObject.php.
Referenced by containsIntLink().
ilPageObject::$cur_dtd = "ilias_pg_4_3.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(), ilExtPublicProfilePage\create(), ilWikiPage\create(), ilDataCollectionRecordViewViewdefinition\create(), ilBlogPosting\create(), ilPortfolioPage\create(), ilPortfolioPage\delete(), ilBlogPosting\deleteAllBlogPostings(), generatePcId(), ilDataCollectionRecordViewViewdefinition\getId(), getId(), getInitialOpenedContent(), 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().