ILIAS
eassessment Revision 61809
|
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 | |
_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="") |
& | 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="") | |
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 | |
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) | |
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 | |
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 question ids. | |
send_paragraph ($par_id, $filename) | |
getFO () | |
get fo page content | |
registerOfflineHandler ($handler) | |
_lookupContainsDeactivatedElements ($a_id, $a_parent_type) | |
lookup whether page contains deactivated elements | |
containsDeactivatedElements ($a_content) | |
Check whether content contains deactivated elements. | |
getHistoryEntries () | |
Get History Entries. | |
getHistoryEntry ($a_old_nr) | |
Get History Entry. | |
getHistoryInfo ($a_nr) | |
Get information about a history entry, its predecessor and its successor. | |
addChangeDivClasses ($a_hashes) | |
compareVersion ($a_left, $a_right) | |
Compares to revisions of the page. | |
increaseViewCnt () | |
increase view cnt | |
writeRenderedContent ($a_content, $a_md5) | |
Write rendered content. | |
containsIntLinks ($a_content) | |
Check whether content contains internal links. | |
performAutomaticModifications () | |
Perform automatic modifications (may be overwritten by sub classes) |
Static Public Member Functions | |
static | _exists ($a_parent_type, $a_id) |
checks whether page exists | |
static | _isScheduledActivation ($a_id, $a_parent_type) |
Check whether page is activated by time schedule. | |
static | lookupParentId ($a_id, $a_type) |
Lookup parent id. | |
static | _handleImportRepositoryLinks ($a_rep_import_id, $a_rep_type, $a_rep_ref_id) |
Change targest of repository links. | |
static | _getQuestionIdsForPage ($a_parent_type, $a_page_id) |
Get all questions of a page. | |
static | _deleteAnchors ($a_parent_type, $a_page_id) |
Delete anchors of a page. | |
static | _saveAnchor ($a_parent_type, $a_page_id, $a_anchor_name) |
Save an anchor. | |
static | _readAnchors ($a_parent_type, $a_page_id) |
Read anchors of a page. | |
static | getRecentChanges ($a_parent_type, $a_parent_id, $a_period=30) |
Get recent pages changes for parent object. | |
static | getAllPages ($a_parent_type, $a_parent_id) |
Get all pages for parent object. | |
static | getNewPages ($a_parent_type, $a_parent_id) |
Get new pages. | |
static | getParentObjectContributors ($a_parent_type, $a_parent_id) |
Get all contributors for parent object. | |
static | getPageContributors ($a_parent_type, $a_page_id) |
Get all contributors for parent object. | |
static | getPagesWithLinks ($a_parent_type, $a_parent_id) |
Get all pages for parent object that contain internal links. |
Data Fields | |
$id | |
$ilias | |
$dom | |
$xml | |
$encoding | |
$node | |
$cur_dtd = "ilias_pg_4_1.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 2831 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 |
Get all questions of a page.
Definition at line 2783 of file class.ilPageObject.php.
Referenced by ilSCORM2004Sco\exportHTMLPageObjects(), ilSCORM2004Sco\exportPDFPrepareXmlNFiles(), ilSCORM2004Sco\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 1883 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 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 3920 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 3160 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_splitPageNext().
|
static |
Read anchors of a page.
Definition at line 2855 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilInternalLinkGUI\showLinkHelp().
|
static |
Save an anchor.
Definition at line 2843 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::_writeParentId | ( | $a_parent_type, | |
$a_pg_id, | |||
$a_par_id | |||
) |
Write parent id.
Definition at line 514 of file class.ilPageObject.php.
References $ilDB.
ilPageObject::addChangeDivClasses | ( | $a_hashes | ) |
Definition at line 4057 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1547 of file class.ilPageObject.php.
References $id, $path, $res, 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 1363 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 379 of file class.ilPageObject.php.
References $update_listener_cnt.
ilPageObject::appendLangVarXML | ( | & | $xml, |
$var | |||
) |
Definition at line 1009 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 820 of file class.ilPageObject.php.
ilPageObject::bbCode2XML | ( | & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 3456 of file class.ilPageObject.php.
ilPageObject::buildDom | ( | $a_force = false | ) |
Definition at line 301 of file class.ilPageObject.php.
References $error, $ilBench, $path, $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(), ilSCORM2004Page\performAutomaticModifications(), and ilPageObjectGUI\showMediaFullscreen().
ilPageObject::callUpdateListeners | ( | ) |
Definition at line 388 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by update().
ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 3694 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 2503 of file class.ilPageObject.php.
References $id, $path, $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 1255 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 1135 of file class.ilPageObject.php.
References $path, $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 4085 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 3948 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 1068 of file class.ilPageObject.php.
References $contains_int_link.
ilPageObject::containsIntLinks | ( | $a_content | ) |
Check whether content contains internal links.
@return |
Definition at line 4411 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 2945 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 853 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 ilExtPublicProfilePage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2873 of file class.ilPageObject.php.
References createFromXML().
ilPageObject::createFromXML | ( | ) |
create new page object with current xml content
Definition at line 1937 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 2934 of file class.ilPageObject.php.
References copyContents(), and deleteContents().
ilPageObject::delete | ( | ) |
delete page object
Reimplemented in ilExtPublicProfilePage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2253 of file class.ilPageObject.php.
References $files, $GLOBALS, $ilDB, $mobs, ilObjFile\_deleteAllUsages(), ilObject\_exists(), ilObject\_lookupType(), buildDom(), collectFileItems(), collectMediaObjects(), ilNewsItem\deleteNewsOfContext(), getId(), getParentId(), getParentType(), saveAnchors(), saveContentIncludeUsage(), saveInternalLinks(), saveMobUsage(), 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 2885 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 3129 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 3099 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 2903 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 558 of file class.ilPageObject.php.
Referenced by getActive(), update(), and updateFromXML().
ilPageObject::getActivationStart | ( | ) |
Get Activation Start.
Definition at line 538 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 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 4215 of file class.ilPageObject.php.
References $ilDB.
ilPageObject::getBibliographyXML | ( | ) |
get a xml string that contains all Bibliography elements, that are referenced by any bibitem alias in the page
Definition at line 1111 of file class.ilPageObject.php.
References $_GET, $ilDB, $ilias, $row, and DB_FETCHMODE_ASSOC.
Referenced by getXMLFromDom().
ilPageObject::getContainsQuestion | ( | ) |
Get contains question.
Definition at line 1102 of file class.ilPageObject.php.
& ilPageObject::getContentNode | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
) |
Definition at line 749 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 = "" |
|||
) |
Definition at line 563 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 | ( | ) |
ilPageObject::getFileItemIds | ( | ) |
get ids of all file items
Reimplemented in ilSCORM2004Page.
Definition at line 1518 of file class.ilPageObject.php.
ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1502 of file class.ilPageObject.php.
ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1016 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 1494 of file class.ilPageObject.php.
ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 3888 of file class.ilPageObject.php.
References $xml, getXMLFromDom(), xslt_create(), xslt_free(), and xslt_process().
ilPageObject::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 1486 of file class.ilPageObject.php.
Referenced by deleteContentBeforeHierId(), and deleteContentFromHierId().
ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 3960 of file class.ilPageObject.php.
References $ilDB, getId(), and getParentType().
ilPageObject::getHistoryEntry | ( | $a_old_nr | ) |
Get History Entry.
Definition at line 3985 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 4010 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(), ilExtPublicProfilePage\create(), createFromXML(), ilExtPublicProfilePage\delete(), delete(), ilSCORM2004Page\exportXMLMetaData(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilMediaPoolPage\getUsages(), ilExtPublicProfilePage\read(), saveAnchors(), saveContentIncludeUsage(), saveFileUsage(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), ilExtPublicProfilePage\update(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getInternalLinks | ( | $a_cnt_multiple = false | ) |
get all internal links that are used within the page
Definition at line 1181 of file class.ilPageObject.php.
References $id, $path, $res, $type, ilMediaItem\_getMapAreasIntLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::getLanguageVariablesXML | ( | ) |
get language variables as XML
Definition at line 976 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 2660 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 1510 of file class.ilPageObject.php.
ilPageObject::getMediaAliasElement | ( | $a_mob_id, | |
$a_nr = 1 |
|||
) |
get complete media object (alias) element
Definition at line 1325 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 1303 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 4241 of file class.ilPageObject.php.
References $ilDB.
& ilPageObject::getNode | ( | ) |
Definition at line 794 of file class.ilPageObject.php.
References $node.
Referenced by insertContent(), and insertContentNode().
ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 3766 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 4316 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 4384 of file class.ilPageObject.php.
References $ilDB.
Referenced by ilLMPageObject\getPagesWithLinksList().
ilPageObject::getParentId | ( | ) |
Definition at line 364 of file class.ilPageObject.php.
References $parent_id.
Referenced by createFromXML(), delete(), ilSCORM2004Page\exportXMLMetaData(), ilExtPublicProfilePage\getUserId(), 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 4272 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(), saveInternalLinks(), saveMetaKeywords(), saveMobUsage(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getQuestionIds | ( | ) |
Get question ids.
Definition at line 3813 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 4165 of file class.ilPageObject.php.
References $ilDB, 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 829 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), ilMediaPoolPage\create(), ilExtPublicProfilePage\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 913 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 1910 of file class.ilPageObject.php.
References $path, $res, $type, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 3577 of file class.ilPageObject.php.
Referenced by highlightText().
ilPageObject::highlightText | ( | $a_text, | |
$proglang, | |||
$autoindent | |||
) |
Highligths Text with given ProgLang.
Definition at line 3555 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 4147 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 3217 of file class.ilPageObject.php.
References $pos, 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 3320 of file class.ilPageObject.php.
References $pos, 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 3470 of file class.ilPageObject.php.
References $id, $path, $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 3719 of file class.ilPageObject.php.
References $dom, $id, $node, $path, $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 3586 of file class.ilPageObject.php.
References $path, $res, highlightText(), xpath_eval(), and xpath_new_context().
ilPageObject::lookforhier | ( | $a_hier_id | ) |
Definition at line 782 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
|
static |
Lookup parent id.
Definition at line 501 of file class.ilPageObject.php.
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 3432 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 3406 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 1718 of file class.ilPageObject.php.
References $changed, $id, $path, $res, $t, $type, ilInternalLink\_extractObjIdOfTarget(), ilLMObject\_lookupType(), addHierIDs(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::needsImportParsing | ( | $a_parse = "" | ) |
Definition at line 1073 of file class.ilPageObject.php.
References $needs_parsing.
ilPageObject::newQuestionCopies | ( | & | $temp_dom | ) |
Replaces existing question content elements with new copies.
Definition at line 877 of file class.ilPageObject.php.
References $path, $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 3016 of file class.ilPageObject.php.
References $error, $path, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), IL_INSERT_AFTER, insertContentNode(), newQuestionCopies(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::performAutomaticModifications | ( | ) |
Perform automatic modifications (may be overwritten by sub classes)
Reimplemented in ilSCORM2004Page.
Definition at line 4423 of file class.ilPageObject.php.
Referenced by update().
ilPageObject::read | ( | ) |
read page data
Reimplemented in ilExtPublicProfilePage, 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 3913 of file class.ilPageObject.php.
ilPageObject::resolveFileItems | ( | $a_mapping | ) |
Resolve file items (after import)
array | mapping array |
Definition at line 1666 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 1584 of file class.ilPageObject.php.
References $path, $res, $type, 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 1637 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 1693 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 2805 of file class.ilPageObject.php.
References $name, $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 2486 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 2472 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 |
Definition at line 2677 of file class.ilPageObject.php.
References $ilDB, $path, $res, $target_arr, ilInternalLink\_deleteAllLinksOfSource(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), ilInternalLink\_saveLink(), domxml_open_mem(), getId(), getParentType(), xpath_eval(), and xpath_new_context().
Referenced by ilMediaPoolPage\create(), ilExtPublicProfilePage\create(), delete(), update(), and updateFromXML().
ilPageObject::saveMetaKeywords | ( | $a_xml | ) |
save all keywords
string | $a_xml | xml data of page |
Definition at line 2330 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 2410 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::saveStyleUsage | ( | $a_xml, | |
$a_old_nr = 0 |
|||
) |
Save all style class/template usages.
string | $a_xml | xml data of page |
Definition at line 2539 of file class.ilPageObject.php.
References $ilDB, $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 3843 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 548 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActivationStart | ( | $a_activationstart | ) |
Set Activation Start.
date | $a_activationstart | Activation Start |
Definition at line 528 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 1059 of file class.ilPageObject.php.
ilPageObject::setContainsQuestion | ( | $a_val | ) |
Set contains question.
boolean | $a_val | contains question |
Definition at line 1092 of file class.ilPageObject.php.
ilPageObject::setId | ( | $a_id | ) |
set id
Definition at line 349 of file class.ilPageObject.php.
Referenced by ilLMPageObject\create(), ilSCORM2004PageNode\create(), and ilExtPublicProfilePage\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 1041 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 ilExtPublicProfilePage\setUserId().
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 808 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 1526 of file class.ilPageObject.php.
References $path, $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 3059 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 2047 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(), performAutomaticModifications(), 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 1990 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 1341 of file class.ilPageObject.php.
References $error, and stripHierIDs().
Referenced by update().
ilPageObject::writeRenderedContent | ( | $a_content, | |
$a_md5 | |||
) |
Write rendered content.
Definition at line 4357 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_4_1.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(), 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(), ilExtPublicProfilePage\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().