ILIAS
release_8 Revision v8.19
|
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) More...
Public Member Functions | |
__construct (int $a_id=0, int $a_old_nr=0, string $a_lang="-") | |
afterConstructor () | |
getParentType () | |
initPageConfig () | |
setLanguage (string $a_val) | |
Set language. More... | |
getLanguage () | |
setPageConfig (ilPageConfig $a_val) | |
setConcreteLang (string $a_val) | |
getConcreteLang () | |
getPageConfig () | |
setRenderMd5 (string $a_rendermd5) | |
getRenderMd5 () | |
setRenderedContent (string $a_renderedcontent) | |
getRenderedContent () | |
setRenderedTime (string $a_renderedtime) | |
getRenderedTime () | |
setLastChange (string $a_lastchange) | |
getLastChange () | |
setLastChangeUser (int $a_val) | |
getLastChangeUser () | |
setShowActivationInfo (bool $a_val) | |
getShowActivationInfo () | |
getCreationUserId () | |
read () | |
Read page data. More... | |
buildDom (bool $a_force=false) | |
freeDom () | |
getDom () | |
setId (int $a_id) | |
getId () | |
setParentId (int $a_id) | |
getParentId () | |
addUpdateListener (object $a_object, string $a_method, $a_parameters="") | |
callUpdateListeners () | |
setActive (bool $a_active) | |
getActive (bool $a_check_scheduled_activation=false) | |
setActivationStart (?string $a_activationstart) | |
getActivationStart () | |
setActivationEnd (?string $a_activationend) | |
Set Activation End. More... | |
getActivationEnd () | |
getContentObject (string $a_hier_id, string $a_pc_id="") | |
Get a content object of the page. More... | |
getContentObjectForPcId (string $pcid) | |
Get content object for pc id. More... | |
getParentContentObjectForPcId (string $pcid) | |
Get parent content object for pc id. More... | |
getContentNode (string $a_hier_id, string $a_pc_id="") | |
checkForTag (string $a_content_tag, string $a_hier_id, string $a_pc_id="") | |
Get content node from dom. More... | |
getNode () | |
setXMLContent (string $a_xml, string $a_encoding="UTF-8") | |
set xml content of page, start with <PageObject...>, end with </PageObject>, comply with ILIAS DTD, omit MetaData, use utf-8! More... | |
appendXMLContent (string $a_xml) | |
append xml content to page setXMLContent must be called before and the same encoding must be used s More... | |
getXMLContent (bool $a_incl_head=false) | |
get xml content of page More... | |
copyXmlContent (bool $a_clone_mobs=false, int $a_new_parent_id=0, int $obj_copy_id=0, bool $self_ass=true) | |
Copy content of page; replace page components with copies where necessary (e.g. More... | |
handleCopiedContent (php4DOMDocument $a_dom, bool $a_self_ass=true, bool $a_clone_mobs=false, int $new_parent_id=0, int $obj_copy_id=0) | |
Handle copied content This function copies items, that must be copied, if page content is duplicated. More... | |
newIIMCopies (php4DOMDocument $temp_dom) | |
Replaces media objects in interactive images with copies of the interactive images. More... | |
newMobCopies (php4DOMDocument $temp_dom) | |
Replaces media objects with copies. More... | |
newQuestionCopies (php4DOMDocument $temp_dom) | |
Replaces existing question content elements with new copies. More... | |
removeQuestions (php4DOMDocument $temp_dom) | |
Remove questions from document. More... | |
countPageContents () | |
getXMLFromDom (bool $a_incl_head=false, bool $a_append_mobs=false, bool $a_append_bib=false, string $a_append_str="", bool $a_omit_pageobject_tag=false, int $style_id=0) | |
get xml content of page from dom (use this, if any changes are made to the document) More... | |
getLanguageVariablesXML (int $style_id=0) | |
Get language variables as XML. More... | |
getFirstParagraphText () | |
getParagraphForPCID (string $pcid) | |
setParagraphContent (string $a_hier_id, string $a_content) | |
Set content of paragraph. More... | |
setContainsIntLink (bool $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 !? More... | |
containsIntLink () | |
returns true, if page was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) More... | |
setImportMode (bool $a_val) | |
getImportMode () | |
needsImportParsing (?bool $a_parse=null) | |
setContainsQuestion (bool $a_val) | |
getContainsQuestion () | |
collectMediaObjects (bool $a_inline_only=true) | |
get all media objects, that are referenced and used within the page More... | |
getInternalLinks (bool $a_cnt_multiple=false) | |
get all internal links that are used within the page More... | |
getMultimediaXML () | |
get a xml string that contains all media object elements, that are referenced by any media alias in the page More... | |
getMediaAliasElement (int $a_mob_id, int $a_nr=1) | |
get complete media object (alias) element More... | |
validateDom (bool $throw=false) | |
Validate the page content agains page DTD. More... | |
addHierIDs () | |
Add hierarchical ID (e.g. More... | |
getHierIds () | |
get all hierarchical ids More... | |
getFirstRowIds () | |
get ids of all first table rows More... | |
getFirstColumnIds () | |
get ids of all first table columns More... | |
getListItemIds () | |
get ids of all list items More... | |
getFileItemIds () | |
get ids of all file items More... | |
stripHierIDs () | |
strip all hierarchical id attributes out of the dom tree More... | |
getHierIdsForPCIds (array $a_pc_ids) | |
Get hier ids for a set of pc ids. More... | |
getHierIdForPcId (string $pcid) | |
getPCIdsForHierIds (array $hier_ids) | |
Get hier ids for a set of pc ids. More... | |
getPCIdForHierId (string $hier_id) | |
addFileSizes () | |
add file sizes More... | |
resolveIntLinks (array $a_link_map=null) | |
Resolves all internal link targets of the page, if targets are available (after import) More... | |
resolveMediaAliases (array $a_mapping, bool $a_reuse_existing_by_import=false) | |
Resolve media aliases (after import) More... | |
resolveIIMMediaAliases (array $a_mapping) | |
Resolve iim media aliases (in ilContObjParse) More... | |
resolveFileItems (array $a_mapping) | |
Resolve file items (after import) More... | |
resolveQuestionReferences (array $a_mapping) | |
Resolve all quesiont references (after import) More... | |
moveIntLinks (array $a_from_to) | |
Move internal links from one destination to another. More... | |
handleImportRepositoryLink (string $a_rep_import_id, string $a_rep_type, int $a_rep_ref_id) | |
handleRepositoryLinksOnCopy (array $a_mapping, int $a_source_ref_id) | |
Handle repository links on copy process. More... | |
createFromXML () | |
Create new page object with current xml content. More... | |
updateFromXML () | |
Updates page object with current xml content This function is currently (8 beta) called by: More... | |
afterUpdate (DOMDocument $domdoc, string $xml) | |
After update. More... | |
update (bool $a_validate=true, bool $a_no_history=false) | |
update complete page content in db (dom xml content is used) More... | |
delete () | |
saveStyleUsage (DOMDocument $a_domdoc, int $a_old_nr=0) | |
Save all style class/template usages. More... | |
deleteStyleUsages (int $a_old_nr=0) | |
Delete style usages. More... | |
getLastUpdateOfIncludedElements () | |
Get last update of included elements (media objects and files). More... | |
deleteInternalLinks () | |
Delete internal links. More... | |
saveInternalLinks (DOMDocument $a_domdoc) | |
save internal links of page More... | |
create (bool $a_import=false) | |
create new page (with current xml data) More... | |
deleteContent (string $a_hid, bool $a_update=true, string $a_pcid="", bool $move_operation=false) | |
delete content object with hierarchical id $a_hid More... | |
deleteContents (array $a_hids, bool $a_update=true, bool $a_self_ass=false, bool $move_operation=false) | |
Delete multiple content objects. More... | |
cutContents (array $a_hids) | |
Copy contents to clipboard and cut them from the page. More... | |
copyContents (array $a_hids) | |
Copy contents to clipboard. More... | |
pasteContents (string $a_hier_id, bool $a_self_ass=false) | |
Paste contents from pc clipboard. More... | |
switchEnableMultiple (array $a_hids, bool $a_update=true, bool $a_self_ass=false) | |
(De-)activate elements More... | |
deleteContentFromHierId (string $a_hid, bool $a_update=true) | |
delete content object with hierarchical id >= $a_hid as part of a split page operation More... | |
deleteContentBeforeHierId (string $a_hid, bool $a_update=true) | |
delete content object with hierarchical id < $a_hid as part of the split page operation More... | |
insertContent (ilPageContent $a_cont_obj, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="", bool $remove_placeholder=true) | |
insert a content node before/after a sibling or as first child of a parent More... | |
insertContentNode (php4DOMElement $a_cont_node, string $a_pos, int $a_mode=IL_INSERT_AFTER, string $a_pcid="") | |
insert a content node before/after a sibling or as first child of a parent More... | |
moveContentBefore (string $a_source, string $a_target, string $a_spcid="", string $a_tpcid="") | |
move content object from position $a_source before position $a_target (both hierarchical content ids) More... | |
moveContentAfter (string $a_source, string $a_target, string $a_spcid="", string $a_tpcid="") | |
move content object from position $a_source before position $a_target (both hierarchical content ids) More... | |
bbCode2XML (string &$a_content) | |
transforms bbCode to corresponding xml More... | |
insertInstIntoIDs (string $a_inst, bool $a_res_ref_to_obj_id=true) | |
inserts installation id into ids (e.g. More... | |
checkPCIds () | |
Check, whether (all) page content hashes are set. More... | |
getAllPCIds () | |
Get all pc ids. More... | |
hasDuplicatePCIds () | |
getDuplicatePCIds () | |
Get all duplicate PC Ids. More... | |
existsPCId (string $a_pc_id) | |
generatePcId () | |
insertPCIds () | |
Insert Page Content IDs. More... | |
getPageContentsHashes () | |
Get page contents hashes. More... | |
getQuestionIds () | |
Get question ids. More... | |
send_paragraph (string $par_id, string $filename) | |
getFO () | |
get fo page content More... | |
registerOfflineHandler (object $handler) | |
getOfflineHandler () | |
containsDeactivatedElements (string $a_content) | |
Check whether content contains deactivated elements. More... | |
getHistoryEntries () | |
Get History Entries. More... | |
getHistoryEntry (int $a_old_nr) | |
Get History Entry. More... | |
getHistoryInfo (int $a_nr) | |
Get information about a history entry, its predecessor and its successor. More... | |
addChangeDivClasses (array $a_hashes) | |
compareVersion (int $a_left, int $a_right) | |
Compares to revisions of the page. More... | |
increaseViewCnt () | |
Increase view cnt. More... | |
writeRenderedContent (string $a_content, string $a_md5) | |
Write rendered content. More... | |
containsIntLinks (string $a_content) | |
Check whether content contains internal links. More... | |
performAutomaticModifications () | |
Perform automatic modifications (may be overwritten by sub classes) More... | |
saveInitialOpenedContent (string $a_type, int $a_id, string $a_target) | |
Save initial opened content. More... | |
getInitialOpenedContent () | |
Get initial opened content. More... | |
beforePageContentUpdate (ilPageContent $a_page_content) | |
Before page content update Note: This one is "work in progress", currently only text paragraphs call this hook It is called before the page content object invokes the update procedure of ilPageObject. More... | |
copy (int $a_id, string $a_parent_type="", int $a_new_parent_id=0, bool $a_clone_mobs=false, int $obj_copy_id=0) | |
Copy page. More... | |
copyPageToTranslation (string $a_target_lang) | |
Copy page to translation. More... | |
getEditLock () | |
Get page lock. More... | |
releasePageLock () | |
Release page lock. More... | |
getEditLockInfo () | |
Get edit lock info. More... | |
getContentTemplates () | |
Get content templates. More... | |
getEffectiveEditLockTime () | |
getAllFileObjIds () | |
Get all file object ids. More... | |
resolveResources (array $ref_mapping) | |
Resolve resources. More... | |
getRepoObjId () | |
Get object id of repository object that contains this page, return 0 if page does not belong to a repo object. More... | |
getPCModel () | |
Get page component model. More... | |
assignCharacteristic (array $targets, string $char_par, string $char_sec, string $char_med) | |
Assign characteristic. More... | |
Static Public Member Functions | |
static | randomhash () |
static | _exists (string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false) |
Checks whether page exists. More... | |
static | _existsAndNotEmpty (string $a_parent_type, int $a_id, string $a_lang="-") |
Checks whether page exists and is not empty (may return true on some empty pages) More... | |
static | preloadActivationDataByParentId (int $a_parent_id) |
Preload activation data by Parent Id. More... | |
static | _lookupActive (int $a_id, string $a_parent_type, bool $a_check_scheduled_activation=false, string $a_lang="-") |
lookup activation status More... | |
static | _isScheduledActivation (int $a_id, string $a_parent_type, string $a_lang="-") |
Check whether page is activated by time schedule. More... | |
static | _writeActive (int $a_id, string $a_parent_type, bool $a_active) |
write activation status More... | |
static | _lookupActivationData (int $a_id, string $a_parent_type, string $a_lang="-") |
Lookup activation data. More... | |
static | lookupParentId (int $a_id, string $a_type) |
static | _writeParentId (string $a_parent_type, int $a_pg_id, int $a_par_id) |
static | _handleImportRepositoryLinks (string $a_rep_import_id, string $a_rep_type, int $a_rep_ref_id) |
Change targest of repository links. More... | |
static | _moveContentAfterHierId (ilPageObject $a_source_page, ilPageObject $a_target_page, string $a_hid) |
move content of hierarchical id >= $a_hid to other page More... | |
static | _lookupContainsDeactivatedElements (int $a_id, string $a_parent_type, string $a_lang="-") |
lookup whether page contains deactivated elements More... | |
static | getRecentChanges (string $a_parent_type, int $a_parent_id, int $a_period=30, string $a_lang="") |
Get recent pages changes for parent object. More... | |
static | getAllPages (string $a_parent_type, int $a_parent_id, string $a_lang="-") |
Get all pages for parent object. More... | |
static | getNewPages (string $a_parent_type, int $a_parent_id, string $a_lang="-") |
Get new pages. More... | |
static | getParentObjectContributors (string $a_parent_type, int $a_parent_id, string $a_lang="-") |
Get all contributors for parent object. More... | |
static | getPageContributors (string $a_parent_type, int $a_page_id, string $a_lang="-") |
Get all contributors for parent object. More... | |
static | getPagesWithLinks (string $a_parent_type, int $a_parent_id, string $a_lang="-") |
Get all pages for parent object that contain internal links. More... | |
static | lookupTranslations (string $a_parent_type, int $a_id) |
Lookup translations. More... | |
static | truncateHTML (string $a_text, int $a_length=100, string $a_ending='...', bool $a_exact=false, bool $a_consider_html=true) |
Truncate (html) string. More... | |
static | getLastChangeByParent (string $a_parent_type, int $a_parent_id, string $a_lang="") |
Get all pages for parent object. More... | |
Data Fields | |
int | $old_nr |
php4DOMDocument | $dom = null |
string | $xml = "" |
string | $encoding = "" |
php4DOMElement | $node |
string | $cur_dtd = "ilias_pg_8.dtd" |
bool | $contains_int_link = false |
bool | $needs_parsing = false |
string | $parent_type = "" |
int | $parent_id = 0 |
array | $update_listeners = [] |
int | $update_listener_cnt = 0 |
object | $offline_handler = null |
bool | $dom_builded = false |
bool | $history_saved = false |
int | $last_change_user = 0 |
Static Public Attributes | |
static array | $exists = array() |
Protected Member Functions | |
getLangVarXML (string $var) | |
__afterUpdate (DOMDocument $a_domdoc, string $a_xml, bool $a_creation=false, bool $a_empty=false) | |
After update event handler (internal). More... | |
__beforeDelete () | |
Before deletion handler (internal). More... | |
__afterDelete () | |
afterDelete () | |
__afterHistoryEntry (DOMDocument $a_old_domdoc, string $a_old_content, int $a_old_nr) | |
preparePageForCompare (ilPageObject $page) | |
Protected Attributes | |
int | $create_user = 0 |
array | $id_elements |
bool | $page_not_found = false |
bool | $show_page_act_info = false |
ilObjectDefinition | $obj_definition |
ilDBInterface | $db |
ilObjUser | $user |
ilLanguage | $lng |
ilTree | $tree |
int | $id |
string | $language = "-" |
bool | $import_mode = false |
ilLogger | $log |
array | $page_record = array() |
bool | $active = false |
ilPageConfig | $page_config |
string | $rendermd5 = "" |
string | $renderedcontent = "" |
string | $renderedtime = "" |
string | $lastchange = "" |
bool | $contains_question = false |
array | $hier_ids = [] |
array | $first_row_ids = [] |
array | $first_col_ids = [] |
array | $list_item_ids = [] |
array | $file_item_ids = [] |
string | $activationstart = null |
string | $activationend = null |
ILIAS COPage ReadingTime ReadingTimeManager | $reading_time_manager |
$concrete_lang = "" | |
Static Protected Attributes | |
static array | $activation_data = array() |
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition at line 50 of file class.ilPageObject.php.
|
final |
Definition at line 104 of file class.ilPageObject.php.
References $DIC, afterConstructor(), ilLoggerFactory\getLogger(), getParentType(), initPageConfig(), ILIAS\Repository\lng(), read(), setActive(), setLanguage(), and ILIAS\Repository\user().
|
finalprotected |
Definition at line 2800 of file class.ilPageObject.php.
References afterDelete().
Referenced by delete().
|
finalprotected |
Definition at line 2809 of file class.ilPageObject.php.
References ilCOPagePCDef\getPCDefinitions(), and saveStyleUsage().
Referenced by update().
|
finalprotected |
After update event handler (internal).
The hooks are e.g. for storing any dependent relations/references in the database.
Definition at line 2508 of file class.ilPageObject.php.
References afterUpdate(), callUpdateListeners(), ilCOPagePCDef\getPCDefinitions(), saveInternalLinks(), and saveStyleUsage().
Referenced by createFromXML(), update(), and updateFromXML().
|
finalprotected |
Before deletion handler (internal).
Definition at line 2789 of file class.ilPageObject.php.
References ilCOPagePCDef\getPCDefinitions().
Referenced by delete().
|
static |
Checks whether page exists.
string | $a_lang | language code, if empty language independent existence is checked |
Definition at line 317 of file class.ilPageObject.php.
References $DIC, $query, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilDclDetailedViewDefinitionGUI\__construct(), ilDclEditViewDefinitionGUI\__construct(), ilImprintGUI\__construct(), ilDclCreateViewDefinitionGUI\__construct(), ilInternalLink\_exists(), ilContainer\_exportContainerSettings(), ilObjContentObject\checkStructure(), ilObjLearningSequence\cloneIntroAndExtroContentPages(), ILIAS\Blog\Export\BlogHtmlExport\collectAllPagesPageElements(), copy(), ilObjForum\delete(), ilObjMediaPool\deleteChild(), assQuestion\deletePageOfQuestion(), ilObjContentPage\doCloneObject(), ilObjContentPage\doDelete(), ILIAS\ContentPage\PageMetrics\PageMetricsService\doesPageExistsForLanguage(), ilForumPageCommandForwarder\doesPageExistsForLanguage(), ilContentPagePageCommandForwarder\doesPageExistsForLanguage(), assQuestion\ensureHintPageObjectExists(), ilAssQuestionFeedback\ensurePageObjectDeleted(), ilAssQuestionFeedbackPageObjectCommandForwarder\ensurePageObjectExists(), ilAssQuestionHintPageObjectCommandForwarder\ensurePageObjectExists(), ilAssQuestionFeedback\ensurePageObjectExists(), ilLMPageObjectGUI\executeCommand(), ilContainerStartObjectsGUI\executeCommand(), ilLOEditorGUI\executeCommand(), ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPages(), ILIAS\Blog\Export\BlogHtmlExport\exportHTMLPages(), ILIAS\Portfolio\Export\PortfolioHtmlExport\exportHTMLPages(), ILIAS\LearningModule\Export\LMHtmlExport\exportHTMLPages(), ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPagesPrint(), ILIAS\Portfolio\Export\PortfolioHtmlExport\exportHTMLPagesPrint(), ilObjContentObject\exportXMLPageObjects(), ilLearningModuleImporter\finalProcessing(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilObjContentObject\fixTree(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilObjUser\getClipboardObjects(), ilContainer\getCompleteDescriptions(), ilObjectTranslation\getEffectiveContentLang(), ilPageMultiLang\getEffectiveLang(), ilPageLayout\getLayoutsAsArray(), ilLMPresentationGUI\getLMPage(), ilLMContentRendererGUI\getLMPageGUI(), ilLMPresentationGUI\getLMPageGUI(), ilContainerExporter\getXmlExportTailDependencies(), ilWikiExporter\getXmlExportTailDependencies(), ilObjLearningSequence\hasContentPage(), ilCOPageImporter\importXmlRepresentation(), ilMediaPoolPage\lookupUsages(), ilObjMediaObject\lookupUsages(), ilPCContentInclude\modifyPageContentPostXsl(), newQuestionCopies(), ilQuestionPageParser\processPagesToParse(), ilWikiPage\rename(), ilPageObjectGUI\switchToLanguage(), ilObjForum\update(), ilObjContentObject\validatePages(), and ilContainerXmlWriter\writeSubitems().
|
static |
Checks whether page exists and is not empty (may return true on some empty pages)
Definition at line 351 of file class.ilPageObject.php.
References ilPageUtil\_existsAndNotEmpty().
|
static |
Change targest of repository links.
Use full targets in "from" and "to"!!!
Definition at line 2201 of file class.ilPageObject.php.
References $source, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), and ilInternalLink\_getSourcesOfTarget().
|
static |
Check whether page is activated by time schedule.
Definition at line 552 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilLMEditorExplorerGUI\getNodeIcon(), ilPublicSectionExplorerGUI\getNodeIcon(), and ilLMTOCExplorerGUI\getNodeIcon().
|
static |
Lookup activation data.
Definition at line 614 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), and ilDBInterface\queryF().
Referenced by ilLMPageObject\_getPresentationTitle(), ilLMTracker\_isNodeVisible(), ilLMNavigationStatus\determineStatus(), ilLMNavigationStatus\getPredecessorPageId(), ilLMNavigationStatus\getSuccessorPageId(), and ilLMContentRendererGUI\renderDeactivatedPageMessage().
|
static |
lookup activation status
Definition at line 508 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilUtil\now(), and ilDBInterface\queryF().
Referenced by ilLMPageObject\_getPresentationTitle(), ilLMTracker\_isNodeVisible(), ilStructureObjectGUI\activatePages(), ilObjContentObjectGUI\activatePages(), ilObjBlog\deliverRSS(), ilLMNavigationStatus\determineStatus(), ilLMPagesTableGUI\fillRow(), ilObjBlogGUI\filterInactivePostings(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilObjBlogGUI\getKeywords(), ilObjBlogGUI\getListItems(), ilLPStatusVisitedPages\getLMPages(), ilLMTOCExplorerGUI\getNodeHref(), ilLMEditorExplorerGUI\getNodeIcon(), ilPublicSectionExplorerGUI\getNodeIcon(), ilLMTOCExplorerGUI\getNodeIcon(), ilLMEditorExplorerGUI\getNodeIconAlt(), ilLMNavigationStatus\getPredecessorPageId(), ilLMNavigationStatus\getSuccessorPageId(), ilBlogDraftsDerivedTaskProvider\getTasks(), ilLMTOCExplorerGUI\isNodeClickable(), ilObjBlogGUI\renderList(), ilObjBlogGUI\renderNavigationByAuthors(), ilObjBlogGUI\renderNavigationByDate(), ilLMPresentationGUI\showPrintView(), and ilLMPresentationGUI\showPrintViewSelection().
|
static |
lookup whether page contains deactivated elements
Definition at line 4075 of file class.ilPageObject.php.
References $DIC, $query, ilDBConstants\FETCHMODE_ASSOC, ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMEditorExplorerGUI\getNodeIcon(), ilPublicSectionExplorerGUI\getNodeIcon(), and ilLMEditorExplorerGUI\getNodeIconAlt().
|
static |
move content of hierarchical id >= $a_hid to other page
ilDateTimeException |
Definition at line 3367 of file class.ilPageObject.php.
References getContentNode(), getDom(), getHierIds(), and update().
Referenced by ilLMPageObject\_splitPageNext().
|
static |
write activation status
Definition at line 590 of file class.ilPageObject.php.
References $DIC, and ilDBInterface\manipulateF().
Referenced by ilStructureObjectGUI\activatePages(), and ilObjContentObjectGUI\activatePages().
|
static |
Definition at line 663 of file class.ilPageObject.php.
References $DIC, and ilDBInterface\manipulateF().
Referenced by ilContentPageImporter\finalProcessing(), ilWikiImporter\finalProcessing(), ilPortfolioImporter\finalProcessing(), ilContainerImporter\finalProcessing(), ilForumImporter\finalProcessing(), ilBlogImporter\finalProcessing(), ilMediaPoolImporter\finalProcessing(), and ilLearningModuleImporter\finalProcessing().
ilPageObject::addChangeDivClasses | ( | array | $a_hashes | ) |
Definition at line 4226 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1818 of file class.ilPageObject.php.
References $i, $path, $res, 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 1592 of file class.ilPageObject.php.
References $i, $path, $res, ilPageContent\incEdId(), xpath_eval(), and xpath_new_context().
Referenced by ilPCParagraph\getLastSavedPCId(), getPageContentsHashes(), getPCIdsForHierIds(), and moveIntLinks().
ilPageObject::addUpdateListener | ( | object | $a_object, |
string | $a_method, | ||
$a_parameters = "" |
|||
) |
mixed | $a_parameters |
Definition at line 447 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by ilBlogPosting\read().
ilPageObject::afterConstructor | ( | ) |
Definition at line 153 of file class.ilPageObject.php.
References getParentType().
Referenced by __construct().
|
protected |
Definition at line 2805 of file class.ilPageObject.php.
Referenced by __afterDelete().
ilPageObject::afterUpdate | ( | DOMDocument | $domdoc, |
string | $xml | ||
) |
After update.
Definition at line 2546 of file class.ilPageObject.php.
Referenced by __afterUpdate().
ilPageObject::appendXMLContent | ( | string | $a_xml | ) |
append xml content to page setXMLContent must be called before and the same encoding must be used
s
Definition at line 892 of file class.ilPageObject.php.
ilPageObject::assignCharacteristic | ( | array | $targets, |
string | $char_par, | ||
string | $char_sec, | ||
string | $char_med | ||
) |
Assign characteristic.
Definition at line 5220 of file class.ilPageObject.php.
References getContentObject(), and update().
ilPageObject::bbCode2XML | ( | string & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 3671 of file class.ilPageObject.php.
ilPageObject::beforePageContentUpdate | ( | ilPageContent | $a_page_content | ) |
Before page content update Note: This one is "work in progress", currently only text paragraphs call this hook It is called before the page content object invokes the update procedure of ilPageObject.
Definition at line 4790 of file class.ilPageObject.php.
Referenced by ilPCParagraph\updatePage().
ilPageObject::buildDom | ( | bool | $a_force = false | ) |
Definition at line 362 of file class.ilPageObject.php.
References $path, $res, domxml_open_mem(), getId(), getParentType(), getXMLContent(), setXMLContent(), xpath_eval(), and xpath_new_context().
Referenced by ilCOPageImporter\afterContainerImportProcessing(), ilPCParagraph\autoLinkGlossariesPage(), checkPCIds(), countPageContents(), createFromXML(), delete(), existsPCId(), getAllPCIds(), getDuplicatePCIds(), getInitialOpenedContent(), getPageContentsHashes(), ilPortfolioTemplatePage\getPageDiskSize(), ilPCAMDFormGUI\getPortfolioForm(), getQuestionIds(), ilCOPageExporter\getValidSchemaVersions(), handleImportRepositoryLink(), handleRepositoryLinksOnCopy(), insertPCIds(), ilPCVerification\isInPortfolioPage(), moveIntLinks(), ilQuestionPageParser\processPagesToParse(), ilPortfolioPage\renameLinksOnTitleChange(), saveInitialOpenedContent(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), send_paragraph(), and updateFromXML().
ilPageObject::callUpdateListeners | ( | ) |
Definition at line 459 of file class.ilPageObject.php.
References $i, and $update_listener_cnt.
Referenced by __afterUpdate().
ilPageObject::checkForTag | ( | string | $a_content_tag, |
string | $a_hier_id, | ||
string | $a_pc_id = "" |
||
) |
Get content node from dom.
string | $a_content_tag | e.g. "Question" |
Definition at line 847 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by deleteContents(), and switchEnableMultiple().
ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 3788 of file class.ilPageObject.php.
References $dom, $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
Referenced by update().
ilPageObject::collectMediaObjects | ( | bool | $a_inline_only = true | ) |
get all media objects, that are referenced and used within the page
Definition at line 1414 of file class.ilPageObject.php.
References $i, $path, $res, ilObject\_exists(), IL_INST_ID, xpath_eval(), and xpath_new_context().
Referenced by delete(), and getMultimediaXML().
ilPageObject::compareVersion | ( | int | $a_left, |
int | $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 4248 of file class.ilPageObject.php.
References getId(), ilPageObjectFactory\getInstance(), getLanguage(), getParentType(), and preparePageForCompare().
ilPageObject::containsDeactivatedElements | ( | string | $a_content | ) |
Check whether content contains deactivated elements.
Definition at line 4105 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 1371 of file class.ilPageObject.php.
References $contains_int_link.
ilPageObject::containsIntLinks | ( | string | $a_content | ) |
Check whether content contains internal links.
Definition at line 4656 of file class.ilPageObject.php.
Referenced by createFromXML(), update(), and updateFromXML().
ilPageObject::copy | ( | int | $a_id, |
string | $a_parent_type = "" , |
||
int | $a_new_parent_id = 0 , |
||
bool | $a_clone_mobs = false , |
||
int | $obj_copy_id = 0 |
||
) |
Copy page.
int | $a_id | target page id (new page) |
string | $a_parent_type | |
int | $a_new_parent_id | |
false | $a_clone_mobs | |
int | $obj_copy_id | copy wizard id |
Definition at line 4802 of file class.ilPageObject.php.
References _exists(), getId(), ilPageObjectFactory\getInstance(), getParentId(), and getParentType().
Referenced by ilDclTableView\cloneStructure().
ilPageObject::copyContents | ( | array | $a_hids | ) |
Copy contents to clipboard.
Definition at line 3156 of file class.ilPageObject.php.
References $user, ilObjUser\addToPCClipboard(), getContentNode(), ilEditClipboard\setAction(), and ilPageContent\sortHierIds().
Referenced by cutContents().
ilPageObject::copyPageToTranslation | ( | string | $a_target_lang | ) |
Copy page to translation.
Definition at line 4866 of file class.ilPageObject.php.
References copyXmlContent(), getActivationEnd(), getActivationStart(), getActive(), getId(), ilPageObjectFactory\getInstance(), getParentId(), and getParentType().
ilPageObject::copyXmlContent | ( | bool | $a_clone_mobs = false , |
int | $a_new_parent_id = 0 , |
||
int | $obj_copy_id = 0 , |
||
bool | $self_ass = true |
||
) |
Copy content of page; replace page components with copies where necessary (e.g.
questions)
Definition at line 922 of file class.ilPageObject.php.
References $xml, DOMXML_LOAD_PARSING, domxml_open_mem(), getXMLContent(), and handleCopiedContent().
Referenced by copyPageToTranslation().
ilPageObject::countPageContents | ( | ) |
Definition at line 1148 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::create | ( | bool | $a_import = false | ) |
create new page (with current xml data)
Definition at line 3072 of file class.ilPageObject.php.
References createFromXML().
ilPageObject::createFromXML | ( | ) |
Create new page object with current xml content.
Definition at line 2417 of file class.ilPageObject.php.
References $errors, __afterUpdate(), buildDom(), containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getId(), getLanguage(), getParentId(), getParentType(), getShowActivationInfo(), getXMLContent(), ilUtil\now(), setXMLContent(), ILIAS\Repository\user(), and validateDom().
Referenced by create().
ilPageObject::cutContents | ( | array | $a_hids | ) |
Copy contents to clipboard and cut them from the page.
ilDateTimeException |
Definition at line 3142 of file class.ilPageObject.php.
References copyContents(), deleteContents(), and getPageConfig().
ilPageObject::delete | ( | ) |
Definition at line 2713 of file class.ilPageObject.php.
References $mobs, __afterDelete(), __beforeDelete(), ilObjMediaObject\_deleteAllUsages(), ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), buildDom(), collectMediaObjects(), deleteInternalLinks(), ilNewsItem\deleteNewsOfContext(), deleteStyleUsages(), getId(), getLanguage(), ilLoggerFactory\getLogger(), getParentId(), and getParentType().
ilPageObject::deleteContent | ( | string | $a_hid, |
bool | $a_update = true , |
||
string | $a_pcid = "" , |
||
bool | $move_operation = false |
||
) |
delete content object with hierarchical id $a_hid
ilDateTimeException | |
ilWACException |
Definition at line 3083 of file class.ilPageObject.php.
References getContentNode(), and update().
Referenced by moveContentAfter(), and moveContentBefore().
ilPageObject::deleteContentBeforeHierId | ( | string | $a_hid, |
bool | $a_update = true |
||
) |
delete content object with hierarchical id < $a_hid as part of the split page operation
string | $a_hid | hierarchical id of content object |
bool | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
ilDateTimeException |
Definition at line 3340 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
ilPageObject::deleteContentFromHierId | ( | string | $a_hid, |
bool | $a_update = true |
||
) |
delete content object with hierarchical id >= $a_hid as part of a split page operation
string | $a_hid | hierarchical id of content object |
bool | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
ilDateTimeException |
Definition at line 3308 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
ilPageObject::deleteContents | ( | array | $a_hids, |
bool | $a_update = true , |
||
bool | $a_self_ass = false , |
||
bool | $move_operation = false |
||
) |
Delete multiple content objects.
bool | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
ilDateTimeException |
Definition at line 3105 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), and update().
Referenced by cutContents().
ilPageObject::deleteInternalLinks | ( | ) |
Delete internal links.
Definition at line 2983 of file class.ilPageObject.php.
References ilInternalLink\_deleteAllLinksOfSource(), getId(), getLanguage(), and getParentType().
Referenced by delete(), and saveInternalLinks().
ilPageObject::deleteStyleUsages | ( | int | $a_old_nr = 0 | ) |
Delete style usages.
Definition at line 2944 of file class.ilPageObject.php.
Referenced by delete(), and saveStyleUsage().
ilPageObject::existsPCId | ( | string | $a_pc_id | ) |
Definition at line 3877 of file class.ilPageObject.php.
References $dom, $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::freeDom | ( | ) |
Definition at line 398 of file class.ilPageObject.php.
ilPageObject::generatePcId | ( | ) |
Definition at line 3894 of file class.ilPageObject.php.
References $id.
Referenced by ilPCParagraph\insert().
ilPageObject::getActivationEnd | ( | ) |
Definition at line 704 of file class.ilPageObject.php.
References $activationend.
Referenced by copyPageToTranslation(), createFromXML(), getActive(), update(), and updateFromXML().
ilPageObject::getActivationStart | ( | ) |
Definition at line 687 of file class.ilPageObject.php.
References $activationstart.
Referenced by copyPageToTranslation(), createFromXML(), getActive(), update(), and updateFromXML().
ilPageObject::getActive | ( | bool | $a_check_scheduled_activation = false | ) |
Definition at line 474 of file class.ilPageObject.php.
References $active, ilDateTime\_after(), ilDateTime\_before(), getActivationEnd(), getActivationStart(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilBlogPosting\checkApproval(), copyPageToTranslation(), createFromXML(), ilBlogPosting\handleNews(), ilBlogPosting\update(), update(), and updateFromXML().
ilPageObject::getAllFileObjIds | ( | ) |
Get all file object ids.
Definition at line 5162 of file class.ilPageObject.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
|
static |
Get all pages for parent object.
Definition at line 4389 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilObjContentObject\autoLinkGlossaryTerms(), ilContentPagePageCollector\getAllPageIds(), ilForumPageCollector\getAllPageIds(), ilLearningModulePageCollector\getAllPageIds(), and ilCourseExporter\getXmlExportTailDependencies().
ilPageObject::getAllPCIds | ( | ) |
Get all pc ids.
Definition at line 3812 of file class.ilPageObject.php.
References $dom, $i, $path, $res, buildDom(), php4DOMElement\get_attribute(), xpath_eval(), and xpath_new_context().
Referenced by getPCModel().
ilPageObject::getConcreteLang | ( | ) |
ilPageObject::getContainsQuestion | ( | ) |
ilPageObject::getContentNode | ( | string | $a_hier_id, |
string | $a_pc_id = "" |
||
) |
Definition at line 815 of file class.ilPageObject.php.
References $node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by _moveContentAfterHierId(), copyContents(), deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), getContentObject(), insertContent(), insertContentNode(), setParagraphContent(), and switchEnableMultiple().
ilPageObject::getContentObject | ( | string | $a_hier_id, |
string | $a_pc_id = "" |
||
) |
Get a content object of the page.
Definition at line 712 of file class.ilPageObject.php.
References ilObject\_lookupType(), getContentNode(), and ilCOPagePCDef\getPCDefinitionByName().
Referenced by assignCharacteristic(), getContentObjectForPcId(), ilPCParagraph\getParagraphSequenceContent(), ilPCParagraph\insert(), moveContentAfter(), moveContentBefore(), ilPCParagraph\saveJS(), and switchEnableMultiple().
ilPageObject::getContentObjectForPcId | ( | string | $pcid | ) |
Get content object for pc id.
Definition at line 789 of file class.ilPageObject.php.
References getContentObject(), and getHierIdsForPCIds().
Referenced by getParentContentObjectForPcId(), and getPCModel().
ilPageObject::getContentTemplates | ( | ) |
Get content templates.
Definition at line 5113 of file class.ilPageObject.php.
ilPageObject::getCreationUserId | ( | ) |
ilPageObject::getDom | ( | ) |
Definition at line 406 of file class.ilPageObject.php.
References $dom.
Referenced by ilPageContent\__construct(), ilPageContentGUI\__construct(), _moveContentAfterHierId(), ilPCParagraph\autoLinkGlossariesPage(), ilPortfolioTemplatePage\getPageDiskSize(), ilObjPortfolioGUI\getSkillsToPortfolioAssignment(), ilPCVerification\isInPortfolioPage(), and ilPCResources\modifyItemGroupRefIdsByMapping().
ilPageObject::getDuplicatePCIds | ( | ) |
Get all duplicate PC Ids.
Definition at line 3846 of file class.ilPageObject.php.
References $dom, $i, $path, $res, buildDom(), php4DOMElement\get_attribute(), xpath_eval(), and xpath_new_context().
Referenced by hasDuplicatePCIds(), and update().
ilPageObject::getEditLock | ( | ) |
Get page lock.
Definition at line 4891 of file class.ilPageObject.php.
References $db, $user, ilDBInterface\fetchAssoc(), getEffectiveEditLockTime(), ilObject\getId(), getId(), getParentType(), ilDBInterface\manipulate(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by update().
ilPageObject::getEditLockInfo | ( | ) |
Get edit lock info.
Definition at line 4963 of file class.ilPageObject.php.
References $db, ilDBInterface\fetchAssoc(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by update().
ilPageObject::getEffectiveEditLockTime | ( | ) |
Definition at line 5147 of file class.ilPageObject.php.
References getPageConfig(), and ILIAS\Repository\int().
Referenced by getEditLock().
ilPageObject::getFileItemIds | ( | ) |
get ids of all file items
Definition at line 1728 of file class.ilPageObject.php.
References $file_item_ids.
ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1710 of file class.ilPageObject.php.
References $first_col_ids.
ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1308 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 1701 of file class.ilPageObject.php.
References $first_row_ids.
ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 4038 of file class.ilPageObject.php.
References $params, getXMLFromDom(), xslt_create(), and xslt_free().
ilPageObject::getHierIdForPcId | ( | string | $pcid | ) |
Definition at line 1777 of file class.ilPageObject.php.
References getHierIdsForPCIds().
ilPageObject::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 1692 of file class.ilPageObject.php.
References $hier_ids.
Referenced by _moveContentAfterHierId(), deleteContentBeforeHierId(), and deleteContentFromHierId().
ilPageObject::getHierIdsForPCIds | ( | array | $a_pc_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1754 of file class.ilPageObject.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by ilPCMediaObjectGUI\__construct(), getContentObjectForPcId(), ILIAS\COPage\Editor\Components\Paragraph\ParagraphCommandActionHandler\getFullIdForPCId(), getHierIdForPcId(), and ilPCParagraph\getLastSavedPCId().
ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 4116 of file class.ilPageObject.php.
References $db, ilDBInterface\fetchAssoc(), getId(), getLanguage(), getParentType(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getHistoryEntry | ( | int | $a_old_nr | ) |
Get History Entry.
Definition at line 4141 of file class.ilPageObject.php.
References $db, $res, ilDBInterface\fetchAssoc(), getId(), getLanguage(), getParentType(), and ilDBInterface\queryF().
ilPageObject::getHistoryInfo | ( | int | $a_nr | ) |
Get information about a history entry, its predecessor and its successor.
int | $a_nr | Nr of history entry |
Definition at line 4166 of file class.ilPageObject.php.
References $db, $res, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getId | ( | ) |
Definition at line 429 of file class.ilPageObject.php.
References $id.
Referenced by ilTestExpressPageObjectGUI\addPageOfQuestions(), ilCOPageImporter\afterContainerImportProcessing(), ilPCQuestion\afterPageUpdate(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilLMPage\afterUpdate(), ilPCSkills\beforePageDelete(), ilPCQuestion\beforePageDelete(), ilPCContentInclude\beforePageDelete(), ilPCFileList\beforePageDelete(), ilPCMediaObject\beforePageDelete(), ilPCParagraph\beforePageDelete(), buildDom(), compareVersion(), copy(), copyPageToTranslation(), ilBlogPosting\create(), ilWikiPage\create(), createFromXML(), ilMediaPoolPage\createMetaData(), ilPortfolioPage\delete(), ilBlogPosting\delete(), ilWikiPage\delete(), delete(), deleteInternalLinks(), ilMediaPoolPage\deleteMetaData(), ilTestExpressPageObjectGUI\executeCommand(), ilDclDetailedViewDefinition\getAvailablePlaceholders(), ilDclCreateViewDefinition\getAvailablePlaceholders(), ilDclEditViewDefinition\getAvailablePlaceholders(), ilPCSection\getCacheTriggerString(), getEditLock(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilBlogPosting\getMDSection(), ilBlogPosting\getNotificationAbstract(), ilObjPortfolioTemplateGUI\getPageInstance(), ilObjPortfolioGUI\getPageInstance(), ILIAS\COPage\ReadingTime\ReadingTimeManager\getTime(), ilMediaPoolPage\getUsages(), ilCOPageExporter\getValidSchemaVersions(), ilBlogPosting\handleNews(), ilWikiStat\handlePageDeletion(), ilWikiStat\handlePageRating(), ilWikiStat\handlePageRead(), ilWikiStat\handlePageUpdated(), ilMediaPoolPage\MDUpdateListener(), ilPortfolioPage\read(), ilBlogPosting\read(), ilWikiPage\read(), ilWikiPage\rename(), resolveMediaAliases(), ilPCParagraph\saveAnchors(), ilPCContentInclude\saveContentIncludeUsage(), ilPCFileList\saveFileUsage(), ilWikiPage\saveInternalLinks(), saveInternalLinks(), ilPCParagraph\saveMetaKeywords(), ilPCMediaObject\saveMobUsage(), ilPCSkills\saveSkillUsage(), saveStyleUsage(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), ilPCSection\saveTimings(), ilBlogPosting\unpublish(), ilPortfolioPage\update(), ilBlogPosting\update(), ilWikiPage\update(), update(), updateFromXML(), ilMediaPoolPage\updateMetaData(), ilWikiPage\updateNews(), and writeRenderedContent().
ilPageObject::getImportMode | ( | ) |
Definition at line 1381 of file class.ilPageObject.php.
References $import_mode.
Referenced by ilPCFileList\afterPageUpdate(), and ilPCMediaObject\afterPageUpdate().
ilPageObject::getInitialOpenedContent | ( | ) |
Get initial opened content.
Definition at line 4740 of file class.ilPageObject.php.
References $i, $path, $res, $type, ilInternalLink\_extractObjIdOfTarget(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::getInternalLinks | ( | bool | $a_cnt_multiple = false | ) |
get all internal links that are used within the page
Definition at line 1466 of file class.ilPageObject.php.
References $i, ILIAS\LTI\ToolProvider\$key, $path, $res, $type, ilMediaItem\_getMapAreasIntLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::getLanguage | ( | ) |
Definition at line 174 of file class.ilPageObject.php.
References $language.
Referenced by ilCOPageImporter\afterContainerImportProcessing(), ilPCQuestion\afterPageUpdate(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilPCSkills\beforePageDelete(), ilPCQuestion\beforePageDelete(), ilPCContentInclude\beforePageDelete(), ilPCFileList\beforePageDelete(), ilPCMediaObject\beforePageDelete(), ilPCParagraph\beforePageDelete(), compareVersion(), createFromXML(), delete(), deleteInternalLinks(), getHistoryEntries(), getHistoryEntry(), ILIAS\COPage\ReadingTime\ReadingTimeManager\getTime(), ilCOPageExporter\getValidSchemaVersions(), read(), ilPCParagraph\saveAnchors(), ilPCContentInclude\saveContentIncludeUsage(), ilPCFileList\saveFileUsage(), saveInternalLinks(), ilPCMediaObject\saveMobUsage(), ilPCSkills\saveSkillUsage(), saveStyleUsage(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getLanguageVariablesXML | ( | int | $style_id = 0 | ) |
Get language variables as XML.
Definition at line 1215 of file class.ilPageObject.php.
References $txt, $type, $xml, getLangVarXML(), and ilCOPagePCDef\getPCDefinitions().
Referenced by getXMLFromDom().
|
protected |
Definition at line 1299 of file class.ilPageObject.php.
References ILIAS\Repository\lng().
Referenced by getLanguageVariablesXML().
ilPageObject::getLastChange | ( | ) |
|
static |
Get all pages for parent object.
Definition at line 5121 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), ilDBInterface\quote(), and ilDBInterface\setLimit().
Referenced by ilWikiUserHTMLExport\getProcess().
ilPageObject::getLastChangeUser | ( | ) |
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 2966 of file class.ilPageObject.php.
References $mobs, ilObject\_getLastUpdateOfObjects(), ilObjMediaObject\_getMobsOfObject(), getId(), and getParentType().
ilPageObject::getListItemIds | ( | ) |
get ids of all list items
Definition at line 1719 of file class.ilPageObject.php.
References $list_item_ids.
ilPageObject::getMediaAliasElement | ( | int | $a_mob_id, |
int | $a_nr = 1 |
||
) |
get complete media object (alias) element
Definition at line 1554 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 1535 of file class.ilPageObject.php.
References ilObject\_lookupType(), collectMediaObjects(), and IL_MODE_OUTPUT.
Referenced by getXMLFromDom().
|
static |
Get new pages.
Definition at line 4426 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getNode | ( | ) |
Definition at line 871 of file class.ilPageObject.php.
References $node.
Referenced by insertContent(), and insertContentNode().
ilPageObject::getOfflineHandler | ( | ) |
ilPageObject::getPageConfig | ( | ) |
Definition at line 194 of file class.ilPageObject.php.
References $page_config.
Referenced by ilLMPage\afterConstructor(), ilWikiPage\afterConstructor(), cutContents(), getEffectiveEditLockTime(), and insertContent().
ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 3928 of file class.ilPageObject.php.
References $dom, $i, $path, $res, addHierIDs(), buildDom(), ilPCParagraph\xml2output(), xpath_eval(), and xpath_new_context().
|
static |
Get all contributors for parent object.
Definition at line 4532 of file class.ilPageObject.php.
References $c, $DIC, $name, ilObjUser\_lookupName(), ilDBInterface\fetchAssoc(), ilDBInterface\queryF(), and ilDBInterface\quote().
Referenced by ilBlogPostingGUI\getPageHeading().
|
static |
Get all pages for parent object that contain internal links.
Definition at line 4618 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilLMPageObject\getPagesWithLinksList().
ilPageObject::getParagraphForPCID | ( | string | $pcid | ) |
Definition at line 1325 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::getParentContentObjectForPcId | ( | string | $pcid | ) |
Get parent content object for pc id.
Definition at line 798 of file class.ilPageObject.php.
References php4DOMElement\get_attribute(), getContentObjectForPcId(), php4DOMNode\node_name(), and php4DOMNode\parent_node().
ilPageObject::getParentId | ( | ) |
Definition at line 439 of file class.ilPageObject.php.
References $parent_id.
Referenced by ilLMPage\afterConstructor(), ilWikiPage\afterConstructor(), ilLMPage\afterDelete(), ilLMPage\afterUpdate(), ilGlossaryDefPage\beforePageContentUpdate(), ilLMPage\beforePageContentUpdate(), copy(), copyPageToTranslation(), createFromXML(), delete(), ilBlogPosting\getBlogId(), getRepoObjId(), ilWikiPage\getWikiId(), ilPCParagraph\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 4466 of file class.ilPageObject.php.
References $c, $DIC, $name, ilObjUser\_lookupName(), ilObject\_lookupType(), ilDBInterface\fetchAssoc(), ilDBInterface\queryF(), and ilDBInterface\quote().
|
abstract |
Referenced by __construct(), afterConstructor(), ilCOPageImporter\afterContainerImportProcessing(), ilPCQuestion\afterPageUpdate(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilPCSkills\beforePageDelete(), ilPCQuestion\beforePageDelete(), ilPCContentInclude\beforePageDelete(), ilPCFileList\beforePageDelete(), ilPCMediaObject\beforePageDelete(), ilPCParagraph\beforePageDelete(), buildDom(), compareVersion(), copy(), copyPageToTranslation(), createFromXML(), delete(), deleteInternalLinks(), ilPCSection\getCacheTriggerString(), getEditLock(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ILIAS\COPage\ReadingTime\ReadingTimeManager\getTime(), ilCOPageExporter\getValidSchemaVersions(), initPageConfig(), read(), resolveMediaAliases(), ilPCParagraph\saveAnchors(), ilPCContentInclude\saveContentIncludeUsage(), ilPCFileList\saveFileUsage(), saveInternalLinks(), ilPCParagraph\saveMetaKeywords(), ilPCMediaObject\saveMobUsage(), ilPCSkills\saveSkillUsage(), saveStyleUsage(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), ilPCSection\saveTimings(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getPCIdForHierId | ( | string | $hier_id | ) |
Definition at line 1808 of file class.ilPageObject.php.
References getPCIdsForHierIds().
ilPageObject::getPCIdsForHierIds | ( | array | $hier_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1786 of file class.ilPageObject.php.
References $i, $path, $res, addHierIDs(), xpath_eval(), and xpath_new_context().
Referenced by getPCIdForHierId().
ilPageObject::getPCModel | ( | ) |
Get page component model.
Definition at line 5198 of file class.ilPageObject.php.
References getAllPCIds(), and getContentObjectForPcId().
ilPageObject::getQuestionIds | ( | ) |
Get question ids.
Definition at line 3971 of file class.ilPageObject.php.
References $dom, $i, $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), buildDom(), 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 4326 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), ilDBInterface\quote(), and ilArrayUtil\sortArray().
Referenced by ilWikiRecentChangesTableGUI\getRecentChanges().
ilPageObject::getRenderedContent | ( | ) |
ilPageObject::getRenderedTime | ( | ) |
ilPageObject::getRenderMd5 | ( | ) |
ilPageObject::getRepoObjId | ( | ) |
Get object id of repository object that contains this page, return 0 if page does not belong to a repo object.
Definition at line 5189 of file class.ilPageObject.php.
References getParentId().
ilPageObject::getShowActivationInfo | ( | ) |
Definition at line 260 of file class.ilPageObject.php.
References $show_page_act_info.
Referenced by createFromXML(), and update().
ilPageObject::getXMLContent | ( | bool | $a_incl_head = false | ) |
get xml content of page
Definition at line 900 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), copyXmlContent(), createFromXML(), update(), and updateFromXML().
ilPageObject::getXMLFromDom | ( | bool | $a_incl_head = false , |
bool | $a_append_mobs = false , |
||
bool | $a_append_bib = false , |
||
string | $a_append_str = "" , |
||
bool | $a_omit_pageobject_tag = false , |
||
int | $style_id = 0 |
||
) |
get xml content of page from dom (use this, if any changes are made to the document)
Definition at line 1162 of file class.ilPageObject.php.
References $i, $mobs, $xml, getLanguageVariablesXML(), and getMultimediaXML().
Referenced by getFO(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), ilPCSection\saveTimings(), and update().
ilPageObject::handleCopiedContent | ( | php4DOMDocument | $a_dom, |
bool | $a_self_ass = true , |
||
bool | $a_clone_mobs = false , |
||
int | $new_parent_id = 0 , |
||
int | $obj_copy_id = 0 |
||
) |
Handle copied content This function copies items, that must be copied, if page content is duplicated.
Currently called by
Definition at line 955 of file class.ilPageObject.php.
References $path, $res, ilCOPagePCDef\getPCDefinitions(), newIIMCopies(), newMobCopies(), newQuestionCopies(), removeQuestions(), xpath_eval(), and xpath_new_context().
Referenced by copyXmlContent(), and pasteContents().
ilPageObject::handleImportRepositoryLink | ( | string | $a_rep_import_id, |
string | $a_rep_type, | ||
int | $a_rep_ref_id | ||
) |
Definition at line 2231 of file class.ilPageObject.php.
References $i, $path, $res, $type, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::handleRepositoryLinksOnCopy | ( | array | $a_mapping, |
int | $a_source_ref_id | ||
) |
Handle repository links on copy process.
Definition at line 2261 of file class.ilPageObject.php.
References $i, $obj_definition, $parts, $path, $ref_id, $res, $tree, $type, $url, buildDom(), CLIENT_ID, ilCOPagePCDef\getPCDefinitions(), IL_INST_ID, ILIAS\Repository\int(), ilTree\isGrandChild(), xpath_eval(), and xpath_new_context().
ilPageObject::hasDuplicatePCIds | ( | ) |
Definition at line 3836 of file class.ilPageObject.php.
References getDuplicatePCIds().
Referenced by update().
ilPageObject::increaseViewCnt | ( | ) |
Increase view cnt.
Definition at line 4309 of file class.ilPageObject.php.
References $db, ilDBInterface\manipulate(), and ilDBInterface\quote().
|
final |
Definition at line 159 of file class.ilPageObject.php.
References ilPageObjectFactory\getConfigInstance(), getParentType(), and setPageConfig().
Referenced by __construct().
ilPageObject::insertContent | ( | ilPageContent | $a_cont_obj, |
string | $a_pos, | ||
int | $a_mode = IL_INSERT_AFTER , |
||
string | $a_pcid = "" , |
||
bool | $remove_placeholder = true |
||
) |
insert a content node before/after a sibling or as first child of a parent
Definition at line 3419 of file class.ilPageObject.php.
References getContentNode(), ilPageContent\getNode(), getNode(), getPageConfig(), IL_INSERT_AFTER, IL_INSERT_BEFORE, IL_INSERT_CHILD, and ilPageContent\setNode().
Referenced by ilPCLauncher\create(), ilPCCurriculum\create(), ilPCMap\create(), ilPCFileList\create(), ilPCQuestionOverview\create(), ilPCTable\create(), ilPCDataTable\create(), ilPCResources\create(), ilPCList\create(), ilPCProfile\create(), ilPCTabs\create(), ilPCSkills\create(), ilPCBlog\create(), ilPCLearningHistory\create(), ilPCVerification\create(), ilPCConsultationHours\create(), ilPCPlaceHolder\create(), ilPCMyCourses\create(), ilPCSection\create(), ilPCContentInclude\create(), ilPCPlugged\create(), ilPCAMDPageList\create(), ilPCLoginPageElement\create(), ilPCAMDForm\create(), ilPCQuestion\create(), ilPCGrid\create(), ilPCParagraph\create(), ilPCMediaObject\createAlias(), ilPCInteractiveImage\createAlias(), moveContentAfter(), and moveContentBefore().
ilPageObject::insertContentNode | ( | php4DOMElement | $a_cont_node, |
string | $a_pos, | ||
int | $a_mode = IL_INSERT_AFTER , |
||
string | $a_pcid = "" |
||
) |
insert a content node before/after a sibling or as first child of a parent
Definition at line 3520 of file class.ilPageObject.php.
References php4DOMNode\append_child(), getContentNode(), getNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, IL_INSERT_CHILD, and php4DOMNode\insert_before().
Referenced by pasteContents().
ilPageObject::insertInstIntoIDs | ( | string | $a_inst, |
bool | $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
string | $a_inst | installation id |
bool | $a_res_ref_to_obj_id | convert repository links obj_<ref_id> to <type>_<obj_id> |
Definition at line 3687 of file class.ilPageObject.php.
References $i, $id, $path, $ref_id, $res, $type, ilObject\_lookupObjId(), ilObject\_lookupType(), xpath_eval(), and xpath_new_context().
ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 3903 of file class.ilPageObject.php.
References $dom, $i, $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
Referenced by update().
|
static |
Definition at line 651 of file class.ilPageObject.php.
References $DIC, $res, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilLMContentRendererGUI\determineStatus(), ilObjMediaObject\getParentObjectIdForUsage(), and ilLMPageGUI\processAnswer().
|
static |
Lookup translations.
Definition at line 4843 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilObjContentPage\doCloneObject(), ilContentPageImporter\finalProcessing(), ilLearningModuleExporter\getXmlRepresentation(), ilCOPageExporter\getXmlRepresentation(), ilObjForum\update(), and ilLMObject\updateInternalLinks().
ilPageObject::moveContentAfter | ( | string | $a_source, |
string | $a_target, | ||
string | $a_spcid = "" , |
||
string | $a_tpcid = "" |
||
) |
move content object from position $a_source before position $a_target (both hierarchical content ids)
string | $a_source | |
string | $a_target | |
string | $a_spcid | |
string | $a_tpcid |
Definition at line 3642 of file class.ilPageObject.php.
References deleteContent(), getContentObject(), IL_INSERT_AFTER, insertContent(), and update().
ilPageObject::moveContentBefore | ( | string | $a_source, |
string | $a_target, | ||
string | $a_spcid = "" , |
||
string | $a_tpcid = "" |
||
) |
move content object from position $a_source before position $a_target (both hierarchical content ids)
string | $a_source | source hier id |
string | $a_target | target hier id |
string | $a_spcid | source pcid |
string | $a_tpcid | target pcid |
Definition at line 3606 of file class.ilPageObject.php.
References deleteContent(), getContentObject(), IL_INSERT_BEFORE, insertContent(), and update().
ilPageObject::moveIntLinks | ( | array | $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".
Definition at line 2048 of file class.ilPageObject.php.
References $i, $path, $res, $type, ilInternalLink\_extractObjIdOfTarget(), ilLMObject\_lookupType(), addHierIDs(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::needsImportParsing | ( | ?bool | $a_parse = null | ) |
ilPageObject::newIIMCopies | ( | php4DOMDocument | $temp_dom | ) |
Replaces media objects in interactive images with copies of the interactive images.
Definition at line 1029 of file class.ilPageObject.php.
References $i, $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::newMobCopies | ( | php4DOMDocument | $temp_dom | ) |
Replaces media objects with copies.
Definition at line 1060 of file class.ilPageObject.php.
References $i, $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::newQuestionCopies | ( | php4DOMDocument | $temp_dom | ) |
Replaces existing question content elements with new copies.
Definition at line 1092 of file class.ilPageObject.php.
References Vendor\Package\$e, $i, $path, $res, _exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestion\_instantiateQuestion(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::pasteContents | ( | string | $a_hier_id, |
bool | $a_self_ass = false |
||
) |
Paste contents from pc clipboard.
ilDateTimeException |
Definition at line 3218 of file class.ilPageObject.php.
References $c, $i, $path, $res, $user, DOMXML_LOAD_PARSING, domxml_open_mem(), ilObjUser\getPCClipboardContent(), handleCopiedContent(), IL_INSERT_AFTER, insertContentNode(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::performAutomaticModifications | ( | ) |
Perform automatic modifications (may be overwritten by sub classes)
Definition at line 4667 of file class.ilPageObject.php.
Referenced by update().
|
static |
Preload activation data by Parent Id.
Definition at line 491 of file class.ilPageObject.php.
References $DIC, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilLMExplorerGUI\__construct().
|
protected |
Definition at line 4302 of file class.ilPageObject.php.
Referenced by compareVersion().
|
static |
Definition at line 199 of file class.ilPageObject.php.
ilPageObject::read | ( | ) |
Read page data.
Definition at line 273 of file class.ilPageObject.php.
References $query, getLanguage(), getParentType(), ILIAS\Repository\int(), setActivationEnd(), setActivationStart(), setActive(), setLastChange(), setParentId(), setRenderedContent(), setRenderedTime(), setRenderMd5(), and setShowActivationInfo().
Referenced by __construct(), and ilWikiPage\createFromXML().
ilPageObject::registerOfflineHandler | ( | object | $handler | ) |
Definition at line 4062 of file class.ilPageObject.php.
ilPageObject::releasePageLock | ( | ) |
Release page lock.
Definition at line 4927 of file class.ilPageObject.php.
References $db, $user, ilDBInterface\fetchAssoc(), ilObject\getId(), ILIAS\Repository\int(), ilDBInterface\manipulate(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::removeQuestions | ( | php4DOMDocument | $temp_dom | ) |
Remove questions from document.
Definition at line 1134 of file class.ilPageObject.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::resolveFileItems | ( | array | $a_mapping | ) |
Resolve file items (after import)
Definition at line 1996 of file class.ilPageObject.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::resolveIIMMediaAliases | ( | array | $a_mapping | ) |
Resolve iim media aliases (in ilContObjParse)
Definition at line 1972 of file class.ilPageObject.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::resolveIntLinks | ( | array | $a_link_map = null | ) |
Resolves all internal link targets of the page, if targets are available (after import)
Definition at line 1854 of file class.ilPageObject.php.
References $i, $path, $res, $type, ilInternalLink\_exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_getIdForImportId(), ilInternalLink\_removeInstFromTarget(), ilMediaItem\_resolveMapAreaLinks(), IL_INST_ID, xpath_eval(), and xpath_new_context().
Referenced by ilQuestionPageParser\processPagesToParse().
ilPageObject::resolveMediaAliases | ( | array | $a_mapping, |
bool | $a_reuse_existing_by_import = false |
||
) |
Resolve media aliases (after import)
Definition at line 1915 of file class.ilPageObject.php.
References $i, $path, $res, ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupImportId(), ilObject\_lookupType(), getId(), getParentType(), IL_INST_ID, xpath_eval(), and xpath_new_context().
ilPageObject::resolveQuestionReferences | ( | array | $a_mapping | ) |
Resolve all quesiont references (after import)
Definition at line 2022 of file class.ilPageObject.php.
References $i, $path, $res, ILIAS\LTI\ToolProvider\$updated, xpath_eval(), and xpath_new_context().
ilPageObject::resolveResources | ( | array | $ref_mapping | ) |
Resolve resources.
Definition at line 5181 of file class.ilPageObject.php.
References ilPCResources\resolveResources().
ilPageObject::saveInitialOpenedContent | ( | string | $a_type, |
int | $a_id, | ||
string | $a_target | ||
) |
Save initial opened content.
Definition at line 4675 of file class.ilPageObject.php.
References $i, $path, $res, buildDom(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::saveInternalLinks | ( | DOMDocument | $a_domdoc | ) |
save internal links of page
Definition at line 2997 of file class.ilPageObject.php.
References $target_arr, ilInternalLink\_saveLink(), deleteInternalLinks(), getId(), getLanguage(), getParentType(), and ILIAS\Repository\int().
Referenced by __afterUpdate().
ilPageObject::saveStyleUsage | ( | DOMDocument | $a_domdoc, |
int | $a_old_nr = 0 |
||
) |
Save all style class/template usages.
Definition at line 2835 of file class.ilPageObject.php.
References $path, deleteStyleUsages(), getId(), getLanguage(), getParentType(), and ilStr\subStr().
Referenced by __afterHistoryEntry(), and __afterUpdate().
ilPageObject::send_paragraph | ( | string | $par_id, |
string | $filename | ||
) |
Definition at line 3997 of file class.ilPageObject.php.
References $dom, $path, $res, buildDom(), ilUtil\deliverData(), exit, xpath_eval(), and xpath_new_context().
Referenced by ilObjQuestionPoolGUI\download_paragraphObject(), and ilObjTestGUI\download_paragraphObject().
ilPageObject::setActivationEnd | ( | ?string | $a_activationend | ) |
Set Activation End.
string | $a_activationend | IL_CAL_DATETIME format |
Definition at line 696 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActivationStart | ( | ?string | $a_activationstart | ) |
string | $a_activationstart | IL_CAL_DATETIME format |
Definition at line 679 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActive | ( | bool | $a_active | ) |
Definition at line 469 of file class.ilPageObject.php.
Referenced by __construct(), read(), and ilBlogPosting\unpublish().
ilPageObject::setConcreteLang | ( | string | $a_val | ) |
Definition at line 184 of file class.ilPageObject.php.
ilPageObject::setContainsIntLink | ( | bool | $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 !?
bool | $a_contains_link | true, if page contains intern link tag(s) |
Definition at line 1361 of file class.ilPageObject.php.
ilPageObject::setContainsQuestion | ( | bool | $a_val | ) |
Definition at line 1398 of file class.ilPageObject.php.
ilPageObject::setId | ( | int | $a_id | ) |
Definition at line 424 of file class.ilPageObject.php.
Referenced by ilBlogPosting\create(), ilPortfolioPage\create(), and ilWikiPage\create().
ilPageObject::setImportMode | ( | bool | $a_val | ) |
Definition at line 1376 of file class.ilPageObject.php.
ilPageObject::setLanguage | ( | string | $a_val | ) |
Set language.
string | $a_val | language code or "-" for unknown / not set |
Definition at line 169 of file class.ilPageObject.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by __construct().
ilPageObject::setLastChange | ( | string | $a_lastchange | ) |
Definition at line 235 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setLastChangeUser | ( | int | $a_val | ) |
Definition at line 245 of file class.ilPageObject.php.
ilPageObject::setPageConfig | ( | ilPageConfig | $a_val | ) |
Definition at line 179 of file class.ilPageObject.php.
Referenced by initPageConfig().
ilPageObject::setParagraphContent | ( | string | $a_hier_id, |
string | $a_content | ||
) |
Set content of paragraph.
Definition at line 1344 of file class.ilPageObject.php.
References getContentNode(), and php4DOMElement\set_content().
ilPageObject::setParentId | ( | int | $a_id | ) |
Definition at line 434 of file class.ilPageObject.php.
Referenced by read(), ilBlogPosting\setBlogId(), and ilWikiPage\setWikiId().
ilPageObject::setRenderedContent | ( | string | $a_renderedcontent | ) |
Definition at line 215 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setRenderedTime | ( | string | $a_renderedtime | ) |
Definition at line 225 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setRenderMd5 | ( | string | $a_rendermd5 | ) |
Definition at line 205 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setShowActivationInfo | ( | bool | $a_val | ) |
Definition at line 255 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setXMLContent | ( | string | $a_xml, |
string | $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_encoding | encoding of the content (here is no conversion done! it must be already utf-8 encoded at the time) |
Definition at line 882 of file class.ilPageObject.php.
Referenced by buildDom(), and createFromXML().
ilPageObject::stripHierIDs | ( | ) |
strip all hierarchical id attributes out of the dom tree
Definition at line 1736 of file class.ilPageObject.php.
References $i, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by ilPCParagraph\getLastSavedPCId(), and validateDom().
ilPageObject::switchEnableMultiple | ( | array | $a_hids, |
bool | $a_update = true , |
||
bool | $a_self_ass = false |
||
) |
(De-)activate elements
Definition at line 3266 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), getContentObject(), and update().
|
static |
Truncate (html) string.
Definition at line 4985 of file class.ilPageObject.php.
References ilStr\shortenText().
Referenced by ilLearningModuleNotification\getPreviewText(), ilBlogPostingGUI\getSnippet(), and ilWikiUtil\sendNotification().
ilPageObject::update | ( | bool | $a_validate = true , |
bool | $a_no_history = false |
||
) |
update complete page content in db (dom xml content is used)
ilDateTimeException | |
ilWACException |
Definition at line 2556 of file class.ilPageObject.php.
References $errors, $lm_set, __afterHistoryEntry(), __afterUpdate(), checkPCIds(), containsDeactivatedElements(), containsIntLinks(), ilDatePresentation\formatDate(), getActivationEnd(), getActivationStart(), getActive(), getDuplicatePCIds(), getEditLock(), getEditLockInfo(), getId(), getLanguage(), ilUserUtil\getNamePresentation(), getParentId(), getParentType(), getShowActivationInfo(), getXMLContent(), getXMLFromDom(), hasDuplicatePCIds(), IL_CAL_UNIX, ILIAS_VERSION_NUMERIC, insertPCIds(), ILIAS\Repository\lng(), ilUtil\now(), performAutomaticModifications(), ILIAS\Repository\user(), and validateDom().
Referenced by _moveContentAfterHierId(), assignCharacteristic(), ilPCParagraph\autoLinkGlossariesPage(), deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), moveContentAfter(), moveContentBefore(), pasteContents(), ilQuestionPageParser\processPagesToParse(), saveInitialOpenedContent(), switchEnableMultiple(), and ilPCParagraph\updatePage().
ilPageObject::updateFromXML | ( | ) |
Updates page object with current xml content This function is currently (8 beta) called by:
Definition at line 2464 of file class.ilPageObject.php.
References $errors, __afterUpdate(), buildDom(), containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getId(), getLanguage(), getParentId(), getParentType(), getXMLContent(), ilUtil\now(), ILIAS\Repository\user(), and validateDom().
ilPageObject::validateDom | ( | bool | $throw = false | ) |
Validate the page content agains page DTD.
Definition at line 1568 of file class.ilPageObject.php.
References stripHierIDs().
Referenced by createFromXML(), update(), and updateFromXML().
ilPageObject::writeRenderedContent | ( | string | $a_content, |
string | $a_md5 | ||
) |
Write rendered content.
Definition at line 4596 of file class.ilPageObject.php.
References $DIC, getId(), getLanguage(), getParentType(), ilUtil\now(), and ilDBInterface\update().
|
staticprotected |
Definition at line 82 of file class.ilPageObject.php.
|
protected |
Definition at line 100 of file class.ilPageObject.php.
Referenced by getActivationEnd().
|
protected |
Definition at line 99 of file class.ilPageObject.php.
Referenced by getActivationStart().
|
protected |
Definition at line 86 of file class.ilPageObject.php.
Referenced by getActive().
|
protected |
Definition at line 102 of file class.ilPageObject.php.
Referenced by getConcreteLang().
bool ilPageObject::$contains_int_link = false |
Definition at line 72 of file class.ilPageObject.php.
Referenced by containsIntLink().
|
protected |
Definition at line 93 of file class.ilPageObject.php.
Referenced by getContainsQuestion().
|
protected |
Definition at line 52 of file class.ilPageObject.php.
Referenced by getCreationUserId().
string ilPageObject::$cur_dtd = "ilias_pg_8.dtd" |
Definition at line 71 of file class.ilPageObject.php.
|
protected |
Definition at line 62 of file class.ilPageObject.php.
Referenced by ilBlogPosting\create(), ilPortfolioPage\create(), ilWikiPage\create(), ilWikiPage\createFromXML(), ilPortfolioPage\delete(), ilBlogPosting\delete(), ilWikiPage\delete(), getEditLock(), getEditLockInfo(), getHistoryEntries(), getHistoryEntry(), getHistoryInfo(), increaseViewCnt(), ilBlogPosting\lookup(), ilPortfolioPage\read(), ilBlogPosting\read(), ilWikiPage\read(), releasePageLock(), ilWikiPage\rename(), ilWikiPage\saveInternalLinks(), ilPortfolioPage\update(), ilBlogPosting\update(), and ilWikiPage\update().
php4DOMDocument ilPageObject::$dom = null |
Definition at line 67 of file class.ilPageObject.php.
Referenced by checkPCIds(), existsPCId(), getAllPCIds(), getDom(), getDuplicatePCIds(), getPageContentsHashes(), ilPortfolioTemplatePage\getPageDiskSize(), getQuestionIds(), insertPCIds(), and send_paragraph().
bool ilPageObject::$dom_builded = false |
Definition at line 79 of file class.ilPageObject.php.
string ilPageObject::$encoding = "" |
Definition at line 69 of file class.ilPageObject.php.
|
static |
Definition at line 61 of file class.ilPageObject.php.
|
protected |
Definition at line 98 of file class.ilPageObject.php.
Referenced by getFileItemIds().
|
protected |
Definition at line 96 of file class.ilPageObject.php.
Referenced by getFirstColumnIds().
|
protected |
Definition at line 95 of file class.ilPageObject.php.
Referenced by getFirstRowIds().
|
protected |
Definition at line 94 of file class.ilPageObject.php.
Referenced by getHierIds().
bool ilPageObject::$history_saved = false |
Definition at line 80 of file class.ilPageObject.php.
|
protected |
Definition at line 66 of file class.ilPageObject.php.
Referenced by ilBlogPosting\create(), ilPortfolioPage\create(), ilWikiPage\create(), ilPortfolioPage\delete(), ilBlogPosting\deleteAllBlogPostings(), generatePcId(), getId(), ilPortfolioTemplatePage\getPageDiskSize(), insertInstIntoIDs(), and ilPortfolioPage\update().
|
protected |
Definition at line 56 of file class.ilPageObject.php.
|
protected |
Definition at line 83 of file class.ilPageObject.php.
Referenced by getImportMode().
|
protected |
Definition at line 81 of file class.ilPageObject.php.
Referenced by getLanguage().
int ilPageObject::$last_change_user = 0 |
Definition at line 92 of file class.ilPageObject.php.
Referenced by getLastChangeUser().
|
protected |
Definition at line 91 of file class.ilPageObject.php.
Referenced by getLastChange().
|
protected |
Definition at line 97 of file class.ilPageObject.php.
Referenced by getListItemIds().
|
protected |
Definition at line 64 of file class.ilPageObject.php.
Referenced by ilPortfolioPage\getAllPortfolioPages(), ilPortfolioPage\getTitle(), and ilBlogPosting\handleNews().
|
protected |
Definition at line 84 of file class.ilPageObject.php.
bool ilPageObject::$needs_parsing = false |
Definition at line 73 of file class.ilPageObject.php.
Referenced by needsImportParsing().
php4DOMElement ilPageObject::$node |
Definition at line 70 of file class.ilPageObject.php.
Referenced by getContentNode(), getNode(), and ilPortfolioTemplatePage\getPageDiskSize().
|
protected |
Definition at line 60 of file class.ilPageObject.php.
Referenced by handleRepositoryLinksOnCopy().
object ilPageObject::$offline_handler = null |
Definition at line 78 of file class.ilPageObject.php.
Referenced by getOfflineHandler().
int ilPageObject::$old_nr |
Definition at line 57 of file class.ilPageObject.php.
|
protected |
Definition at line 87 of file class.ilPageObject.php.
Referenced by getPageConfig().
|
protected |
Definition at line 58 of file class.ilPageObject.php.
|
protected |
Definition at line 85 of file class.ilPageObject.php.
int ilPageObject::$parent_id = 0 |
Definition at line 75 of file class.ilPageObject.php.
Referenced by getParentId().
string ilPageObject::$parent_type = "" |
Definition at line 74 of file class.ilPageObject.php.
|
protected |
Definition at line 101 of file class.ilPageObject.php.
|
protected |
Definition at line 89 of file class.ilPageObject.php.
Referenced by getRenderedContent().
|
protected |
Definition at line 90 of file class.ilPageObject.php.
Referenced by getRenderedTime().
|
protected |
Definition at line 88 of file class.ilPageObject.php.
Referenced by getRenderMd5().
|
protected |
Definition at line 59 of file class.ilPageObject.php.
Referenced by getShowActivationInfo().
|
protected |
Definition at line 65 of file class.ilPageObject.php.
Referenced by handleRepositoryLinksOnCopy().
int ilPageObject::$update_listener_cnt = 0 |
Definition at line 77 of file class.ilPageObject.php.
Referenced by addUpdateListener(), and callUpdateListeners().
array ilPageObject::$update_listeners = [] |
Definition at line 76 of file class.ilPageObject.php.
|
protected |
Definition at line 63 of file class.ilPageObject.php.
Referenced by copyContents(), ilMediaPoolPage\createMetaData(), getEditLock(), ilBlogPosting\handleNews(), pasteContents(), releasePageLock(), ilBlogPosting\updateKeywords(), and ilWikiPage\updateNews().
string ilPageObject::$xml = "" |
Definition at line 68 of file class.ilPageObject.php.
Referenced by copyXmlContent(), getLanguageVariablesXML(), getXMLContent(), getXMLFromDom(), and ilWikiPage\saveInternalLinks().