ILIAS
Release_4_0_x_branch Revision 61816
|
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. | |
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 | |
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="") |
& | getContentNode ($a_hier_id, $a_pc_id="") |
lookforhier ($a_hier_id) | |
& | getNode () |
setXMLContent ($a_xml, $a_encoding="UTF-8") | |
set xml content of page, start with <PageObject...>, end with </PageObject>, comply with ILIAS DTD, omit MetaData, use utf-8! | |
appendXMLContent ($a_xml) | |
append xml content to page setXMLContent must be called before and the same encoding must be used | |
getXMLContent ($a_incl_head=false) | |
get xml content of page | |
copyXmlContent ($a_new_question_copies=true) | |
Copy content of page; replace page components with copies where necessary (e.g. | |
newQuestionCopies (&$temp_dom) | |
Replaces existing question content elements with new copies. | |
getXMLFromDom ($a_incl_head=false, $a_append_mobs=false, $a_append_bib=false, $a_append_str="", $a_omit_pageobject_tag=false) | |
get xml content of page from dom (use this, if any changes are made to the document) | |
getLanguageVariablesXML () | |
get language variables as XML | |
appendLangVarXML (&$xml, $var) | |
getFirstParagraphText () | |
setParagraphContent ($a_hier_id, $a_content) | |
Set content of paragraph. | |
setContainsIntLink ($a_contains_link) | |
lm parser set this flag to true, if the page contains intern links (this method should only be called by the import parser) | |
containsIntLink () | |
returns true, if page was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) | |
needsImportParsing ($a_parse="") | |
getBibliographyXML () | |
get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page | |
collectMediaObjects ($a_inline_only=true) | |
get all media objects, that are referenced and used within the page | |
getInternalLinks () | |
get all internal links that are used within the page | |
collectFileItems ($a_xml="") | |
get all file items that are used within the page | |
getMultimediaXML () | |
get a xml string that contains all media object elements, that are referenced by any media alias in the page | |
getMediaAliasElement ($a_mob_id, $a_nr=1) | |
get complete media object (alias) element | |
validateDom () | |
Validate the page content agains page DTD. | |
addHierIDs () | |
Add hierarchical ID (e.g. | |
getHierIds () | |
get all hierarchical ids | |
getFirstRowIds () | |
get ids of all first table rows | |
getFirstColumnIds () | |
get ids of all first table columns | |
getListItemIds () | |
get ids of all list items | |
getFileItemIds () | |
get ids of all file items | |
stripHierIDs () | |
strip all hierarchical id attributes out of the dom tree | |
addFileSizes () | |
add file sizes | |
resolveIntLinks () | |
Resolves all internal link targets of the page, if targets are available (after import) | |
moveIntLinks ($a_from_to) | |
Move internal links from one destination to another. | |
handleImportRepositoryLink ($a_rep_import_id, $a_rep_type, $a_rep_ref_id) | |
createFromXML () | |
create new page object with current xml content | |
updateFromXML () | |
updates page object with current xml content | |
update ($a_validate=true, $a_no_history=false, $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 | |
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) | |
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) | |
Paste contents from pc clipboard. | |
switchEnableMultiple ($a_hids, $a_update=true) | |
gui function set enabled if is not enabled and vice versa | |
deleteContentFromHierId ($a_hid, $a_update=true) | |
delete content object with hierarchical id >= $a_hid | |
deleteContentBeforeHierId ($a_hid, $a_update=true) | |
delete content object with hierarchical id < $a_hid | |
_moveContentAfterHierId (&$a_source_page, &$a_target_page, $a_hid) | |
move content of hierarchical id >= $a_hid to other page | |
insertContent (&$a_cont_obj, $a_pos, $a_mode=IL_INSERT_AFTER, $a_pcid="") | |
insert a content node before/after a sibling or as first child of a parent | |
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. | |
insertPCIds () | |
Insert Page Content IDs. | |
getPageContentsHashes () | |
Get page contents hashes. | |
getQuestionIds () | |
Get page contents hashes. | |
send_paragraph ($par_id, $filename) | |
getFO () | |
get fo page content | |
registerOfflineHandler ($handler) | |
_lookupContainsDeactivatedElements ($a_id, $a_parent_type) | |
lookup whether page contains deactivated elements | |
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. |
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 | _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_3_11.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 2618 of file class.ilPageObject.php.
References $ilDB.
Referenced by saveAnchors().
|
static |
checks whether page exists
string | $a_parent_type | parent type |
int | $a_id | page id |
Definition at line 251 of file class.ilPageObject.php.
References $ilDB, $query, and $row.
Referenced by ilShopPurchaseGUI\__getAbstractHTML(), ilContainer\cloneObject(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilPaymentObjectGUI\forwardToPageObject(), ilShopInfoGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilShopGUI\forwardToPageObject(), ilObjPaymentSettingsGUI\forwardToPageObject(), ilShopInfoGUI\getPageHTML(), ilShopGUI\getPageHTML(), ilMediaPoolPage\lookupUsages(), ilObjMediaObject\lookupUsages(), 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 283 of file class.ilPageObject.php.
|
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 1748 of file class.ilPageObject.php.
References ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_getSourcesOfTarget(), and ilPageObject().
Referenced by ilObjContentObjectGUI\importFileObject().
|
static |
Check whether page is activated by time schedule.
Definition at line 459 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilChapterHierarchyFormGUI\getChildIcon(), ilLMEditorExplorer\getImage(), and ilObjContentObjectGUI\pages().
ilPageObject::_lookupActive | ( | $a_id, | |
$a_parent_type, | |||
$a_check_scheduled_activation = false |
|||
) |
lookup activation status
Definition at line 433 of file class.ilPageObject.php.
References $ilDB, and ilUtil\now().
Referenced by ilLMPageObject\_getPresentationTitle(), ilStructureObjectGUI\activatePages(), ilObjContentObjectGUI\activatePages(), ilLMTOCExplorer\buildLinkTarget(), ilTableOfContentsExplorer\buildLinkTarget(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMPresentationGUI\getCurrentPageId(), ilLMEditorExplorer\getImage(), ilLMEditorExplorer\getImageAlt(), ilLMPresentationGUI\ilLMNavigation(), ilLMTOCExplorer\isClickable(), ilTableOfContentsExplorer\isClickable(), ilLMTOCExplorer\isVisible(), ilTableOfContentsExplorer\isVisible(), ilObjContentObjectGUI\pages(), ilLMPresentationGUI\showPrintView(), ilLMPresentationGUI\showPrintViewSelection(), and ilStructureObjectGUI\view().
ilPageObject::_lookupContainsDeactivatedElements | ( | $a_id, | |
$a_parent_type | |||
) |
lookup whether page contains deactivated elements
Definition at line 3708 of file class.ilPageObject.php.
References $ilDB, $query, and DB_FETCHMODE_ASSOC.
Referenced by ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMEditorExplorer\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 2947 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_splitPageNext().
|
static |
Read anchors of a page.
Definition at line 2642 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilInternalLinkGUI\showLinkHelp().
|
static |
Save an anchor.
Definition at line 2630 of file class.ilPageObject.php.
References $ilDB.
Referenced by saveAnchors().
ilPageObject::_writeActive | ( | $a_id, | |
$a_parent_type, | |||
$a_active, | |||
$a_reset_scheduled_activation = true |
|||
) |
write activation status
Definition at line 479 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilStructureObjectGUI\activatePages(), and ilObjContentObjectGUI\activatePages().
ilPageObject::addChangeDivClasses | ( | $a_hashes | ) |
Definition at line 3845 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1493 of file class.ilPageObject.php.
References $id, $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 1309 of file class.ilPageObject.php.
References $res, ilPageContent\incEdId(), xpath_eval(), and xpath_new_context().
Referenced by moveIntLinks().
ilPageObject::addUpdateListener | ( | & | $a_object, |
$a_method, | |||
$a_parameters = "" |
|||
) |
Definition at line 379 of file class.ilPageObject.php.
References $update_listener_cnt.
ilPageObject::appendLangVarXML | ( | & | $xml, |
$var | |||
) |
Definition at line 998 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 809 of file class.ilPageObject.php.
ilPageObject::bbCode2XML | ( | & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 3243 of file class.ilPageObject.php.
ilPageObject::buildDom | ( | $a_force = false | ) |
Definition at line 301 of file class.ilPageObject.php.
References $error, $ilBench, $res, DOMXML_LOAD_VALIDATING, domxml_open_mem(), getXMLContent(), xpath_eval(), and xpath_new_context().
Referenced by collectContentIncludes(), delete(), ilSCORM2004Page\exportXMLPageContent(), handleImportRepositoryLink(), ilLMPresentationGUI\ilMedia(), ilLMPresentationGUI\ilPage(), moveIntLinks(), and ilPageObjectGUI\showMediaFullscreen().
ilPageObject::callUpdateListeners | ( | ) |
Definition at line 388 of file class.ilPageObject.php.
References $method, and $update_listener_cnt.
Referenced by update().
ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 3481 of file class.ilPageObject.php.
References $dom, $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 2350 of file class.ilPageObject.php.
References $id, $res, $type, 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 1217 of file class.ilPageObject.php.
References $res, 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 1104 of file class.ilPageObject.php.
References $res, ilObject\_exists(), xpath_eval(), and xpath_new_context().
Referenced by delete(), ilSCORM2004Page\exportXMLPageContent(), and getMultimediaXML().
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 3873 of file class.ilPageObject.php.
References $ilDB, getId(), getParentType(), and ilPageObject().
ilPageObject::containsDeactivatedElements | ( | $a_content | ) |
Check whether content contains deactivated elements.
@return |
Definition at line 3736 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 1057 of file class.ilPageObject.php.
References $contains_int_link.
ilPageObject::containsIntLinks | ( | $a_content | ) |
Check whether content contains internal links.
@return |
Definition at line 4199 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 2732 of file class.ilPageObject.php.
References $skip, getContentNode(), ilEditClipboard\setAction(), and ilPageContent\sortHierIds().
Referenced by cutContents().
ilPageObject::copyXmlContent | ( | $a_new_question_copies = true | ) |
Copy content of page; replace page components with copies where necessary (e.g.
questions)
Definition at line 842 of file class.ilPageObject.php.
References $error, $xml, DOMXML_LOAD_PARSING, domxml_open_mem(), and newQuestionCopies().
ilPageObject::create | ( | ) |
create new page (with current xml data)
Reimplemented in ilWikiPage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2660 of file class.ilPageObject.php.
References createFromXML().
ilPageObject::createFromXML | ( | ) |
create new page object with current xml content
Definition at line 1802 of file class.ilPageObject.php.
References $ilDB, $lng, containsDeactivatedElements(), containsIntLinks(), 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 2721 of file class.ilPageObject.php.
References copyContents(), and deleteContents().
ilPageObject::delete | ( | ) |
delete page object
Reimplemented in ilWikiPage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2107 of file class.ilPageObject.php.
References $files, $GLOBALS, $ilDB, $mobs, ilObjFile\_deleteAllUsages(), ilObject\_exists(), ilObject\_lookupType(), buildDom(), collectFileItems(), collectMediaObjects(), getId(), getParentType(), saveAnchors(), saveContentIncludeUsage(), saveInternalLinks(), saveMobUsage(), 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 2672 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 2916 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 2886 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
ilPageObject::deleteContents | ( | $a_hids, | |
$a_update = true |
|||
) |
delete multiple content objects
string | $a_hids | array of hierarchical ids of content objects |
boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 2690 of file class.ilPageObject.php.
References getContentNode(), and update().
Referenced by cutContents().
ilPageObject::freeDom | ( | ) |
Definition at line 335 of file class.ilPageObject.php.
Referenced by ilSCORM2004Page\exportXMLPageContent().
ilPageObject::getActivationEnd | ( | ) |
Get Activation End.
Definition at line 547 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
ilPageObject::getActivationStart | ( | ) |
Get Activation Start.
Definition at line 527 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
ilPageObject::getActive | ( | $a_check_scheduled_activation = false | ) |
get activation
Definition at line 414 of file class.ilPageObject.php.
References $start, ilDateTime\_after(), ilDateTime\_before(), getActivationEnd(), getActivationStart(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by 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 4003 of file class.ilPageObject.php.
ilPageObject::getBibliographyXML | ( | ) |
get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page
Definition at line 1080 of file class.ilPageObject.php.
References $_GET, $ilDB, $ilias, $row, and DB_FETCHMODE_ASSOC.
Referenced by getXMLFromDom().
& ilPageObject::getContentNode | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
) |
Definition at line 738 of file class.ilPageObject.php.
References $node, $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 = "" |
|||
) |
Definition at line 552 of file class.ilPageObject.php.
References $_GET, $_POST, $map, $res, $tab, ilObject\_exists(), exit, and getContentNode().
Referenced by ilSCORM2004Page\exportXMLPageContent(), moveContentAfter(), moveContentBefore(), and switchEnableMultiple().
& ilPageObject::getDom | ( | ) |
ilPageObject::getFileItemIds | ( | ) |
get ids of all file items
Reimplemented in ilSCORM2004Page.
Definition at line 1464 of file class.ilPageObject.php.
ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1448 of file class.ilPageObject.php.
ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1005 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
ilPageObject::getFirstRowIds | ( | ) |
get ids of all first table rows
Definition at line 1440 of file class.ilPageObject.php.
ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 3676 of file class.ilPageObject.php.
References $params, $xml, getXMLFromDom(), xslt_create(), xslt_free(), and xslt_process().
ilPageObject::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 1432 of file class.ilPageObject.php.
Referenced by deleteContentBeforeHierId(), and deleteContentFromHierId().
ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 3748 of file class.ilPageObject.php.
References $ilDB, getId(), and getParentType().
ilPageObject::getHistoryEntry | ( | $a_old_nr | ) |
Get History Entry.
Definition at line 3773 of file class.ilPageObject.php.
References $ilDB, $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 3798 of file class.ilPageObject.php.
References $ilDB, $res, $ret, and $row.
ilPageObject::getId | ( | ) |
Definition at line 354 of file class.ilPageObject.php.
References $id.
Referenced by compareVersion(), ilWikiPage\create(), createFromXML(), ilWikiPage\delete(), delete(), ilSCORM2004Page\exportXMLMetaData(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilMediaPoolPage\getUsages(), ilWikiPage\read(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), ilSCORM2004Page\saveInternalLinks(), ilWikiPage\saveInternalLinks(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), ilWikiPage\update(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getInternalLinks | ( | ) |
get all internal links that are used within the page
Definition at line 1150 of file class.ilPageObject.php.
References $id, $key, $res, $type, ilMediaItem\_getMapAreasIntLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::getLanguageVariablesXML | ( | ) |
get language variables as XML
Definition at line 965 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::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 2507 of file class.ilPageObject.php.
References $files, $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 1456 of file class.ilPageObject.php.
ilPageObject::getMediaAliasElement | ( | $a_mob_id, | |
$a_nr = 1 |
|||
) |
get complete media object (alias) element
Definition at line 1271 of file class.ilPageObject.php.
References $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 1249 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 4029 of file class.ilPageObject.php.
& ilPageObject::getNode | ( | ) |
Definition at line 783 of file class.ilPageObject.php.
References $node.
Referenced by insertContent(), and insertContentNode().
ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 3553 of file class.ilPageObject.php.
References $dom, $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 4104 of file class.ilPageObject.php.
References $ilDB, $name, and 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 4172 of file class.ilPageObject.php.
Referenced by ilLMPageObject\getPagesWithLinksList().
ilPageObject::getParentId | ( | ) |
Definition at line 364 of file class.ilPageObject.php.
References $parent_id.
Referenced by createFromXML(), ilSCORM2004Page\exportXMLMetaData(), 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 4060 of file class.ilPageObject.php.
References $ilDB, $name, and ilObjUser\_lookupName().
ilPageObject::getParentType | ( | ) |
Definition at line 374 of file class.ilPageObject.php.
References $parent_type.
Referenced by compareVersion(), createFromXML(), delete(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), read(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), ilSCORM2004Page\saveInternalLinks(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getQuestionIds | ( | ) |
Get page contents hashes.
Definition at line 3600 of file class.ilPageObject.php.
References $dom, $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 3953 of file class.ilPageObject.php.
References $ilDB, $q, and 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::getXMLContent | ( | $a_incl_head = false | ) |
get xml content of page
Definition at line 818 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), ilMediaPoolPage\create(), ilWikiPage\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 902 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::handleImportRepositoryLink | ( | $a_rep_import_id, | |
$a_rep_type, | |||
$a_rep_ref_id | |||
) |
Definition at line 1775 of file class.ilPageObject.php.
References $res, $type, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 3364 of file class.ilPageObject.php.
Referenced by highlightText().
ilPageObject::highlightText | ( | $a_text, | |
$proglang, | |||
$autoindent | |||
) |
Highligths Text with given ProgLang.
Definition at line 3342 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 3935 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 3004 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 3107 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 3257 of file class.ilPageObject.php.
References $id, $res, $type, ilObject\_lookupObjId(), ilObject\_lookupType(), xpath_eval(), and xpath_new_context().
Referenced by ilSCORM2004Page\exportXMLPageContent().
ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 3506 of file class.ilPageObject.php.
References $dom, $id, $node, $res, 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 3373 of file class.ilPageObject.php.
References $n, $res, highlightText(), xpath_eval(), and xpath_new_context().
ilPageObject::lookforhier | ( | $a_hier_id | ) |
Definition at line 771 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
|
static |
Lookup parent id.
Definition at line 501 of file class.ilPageObject.php.
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 3219 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 3193 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 1583 of file class.ilPageObject.php.
References $changed, $id, $res, $t, $type, ilInternalLink\_extractObjIdOfTarget(), ilLMObject\_lookupType(), addHierIDs(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::needsImportParsing | ( | $a_parse = "" | ) |
Definition at line 1062 of file class.ilPageObject.php.
References $needs_parsing.
ilPageObject::newQuestionCopies | ( | & | $temp_dom | ) |
Replaces existing question content elements with new copies.
Definition at line 866 of file class.ilPageObject.php.
References $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestion\_instanciateQuestion(), xpath_eval(), and xpath_new_context().
Referenced by copyXmlContent(), and pasteContents().
ilPageObject::pasteContents | ( | $a_hier_id | ) |
Paste contents from pc clipboard.
Definition at line 2803 of file class.ilPageObject.php.
References $error, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), IL_INSERT_AFTER, insertContentNode(), newQuestionCopies(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::read | ( | ) |
read page data
Reimplemented in ilWikiPage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 194 of file class.ilPageObject.php.
References $ilBench, $ilDB, $query, exit, getParentType(), setActivationEnd(), setActivationStart(), setActive(), setLastChange(), setParentId(), setRenderedContent(), setRenderedTime(), and setRenderMd5().
Referenced by ilPageObject().
ilPageObject::registerOfflineHandler | ( | $handler | ) |
Definition at line 3701 of file class.ilPageObject.php.
ilPageObject::resolveIntLinks | ( | ) |
Resolves all internal link targets of the page, if targets are available (after import)
Definition at line 1530 of file class.ilPageObject.php.
References $res, $type, ilInternalLink\_exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_getIdForImportId(), ilInternalLink\_removeInstFromTarget(), ilMediaItem\_resolveMapAreaLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::saveAnchors | ( | $a_xml | ) |
save anchors
string | xml page code |
Definition at line 2592 of file class.ilPageObject.php.
References $name, $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 2333 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 2319 of file class.ilPageObject.php.
References ilObjFile\_deleteAllUsages(), ilObjFile\_saveUsage(), collectFileItems(), getId(), and getParentType().
Referenced by update().
ilPageObject::saveInternalLinks | ( | $a_xml | ) |
save internal links of page
string | xml page code |
Reimplemented in ilWikiPage, and ilSCORM2004Page.
Definition at line 2524 of file class.ilPageObject.php.
References $res, $target_arr, ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_saveLink(), domxml_open_mem(), getId(), getParentType(), xpath_eval(), and xpath_new_context().
Referenced by ilMediaPoolPage\create(), delete(), update(), and updateFromXML().
ilPageObject::saveMetaKeywords | ( | $a_xml | ) |
save all keywords
string | $a_xml | xml data of page |
Definition at line 2179 of file class.ilPageObject.php.
References $id, $lang, $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 2259 of file class.ilPageObject.php.
References $res, ilObjMediaObject\_deleteAllUsages(), ilObjMediaObject\_saveUsage(), domxml_open_mem(), getId(), getParentType(), xpath_eval(), and xpath_new_context().
Referenced by delete(), and update().
ilPageObject::saveStyleUsage | ( | $a_xml, | |
$a_old_nr = 0 |
|||
) |
Save all style class/template usages.
string | $a_xml | xml data of page |
Definition at line 2386 of file class.ilPageObject.php.
References $ilDB, $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 3631 of file class.ilPageObject.php.
References $dom, $filename, $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 537 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActivationStart | ( | $a_activationstart | ) |
Set Activation Start.
date | $a_activationstart | Activation Start |
Definition at line 517 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 404 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 1048 of file class.ilPageObject.php.
ilPageObject::setId | ( | $a_id | ) |
set id
Definition at line 349 of file class.ilPageObject.php.
Referenced by ilWikiPage\create(), ilSCORM2004PageNode\create(), and ilLMPageObject\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::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 1030 of file class.ilPageObject.php.
References $node, and getContentNode().
ilPageObject::setParentId | ( | $a_id | ) |
Definition at line 359 of file class.ilPageObject.php.
Referenced by ilContainerGUI\forwardToPageObject(), read(), and ilWikiPage\setWikiId().
ilPageObject::setParentType | ( | $a_type | ) |
Definition at line 369 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::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 797 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 1472 of file class.ilPageObject.php.
References $res, xpath_eval(), and xpath_new_context().
Referenced by validateDom().
ilPageObject::switchEnableMultiple | ( | $a_hids, | |
$a_update = true |
|||
) |
gui function set enabled if is not enabled and vice versa
Definition at line 2846 of file class.ilPageObject.php.
References 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)
Definition at line 1912 of file class.ilPageObject.php.
References $errors, $file, $ilCtrl, $ilDB, $ilLog, $layout_mode, $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(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), saveStyleUsage(), and validateDom().
Referenced by deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), moveContentAfter(), moveContentBefore(), pasteContents(), and switchEnableMultiple().
ilPageObject::updateFromXML | ( | ) |
updates page object with current xml content
Definition at line 1855 of file class.ilPageObject.php.
References $ilDB, $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 1287 of file class.ilPageObject.php.
References $error, and stripHierIDs().
Referenced by update().
ilPageObject::writeRenderedContent | ( | $a_content, | |
$a_md5 | |||
) |
Write rendered content.
Definition at line 4145 of file class.ilPageObject.php.
References $ilDB, 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_3_11.dtd" |
Definition at line 36 of file class.ilPageObject.php.
ilPageObject::$dom |
Definition at line 32 of file class.ilPageObject.php.
Referenced by checkPCIds(), 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(), ilWikiPage\create(), getId(), getInternalLinks(), insertInstIntoIDs(), insertPCIds(), moveIntLinks(), and saveMetaKeywords().
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(), and update().
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 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().