ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilPageObject. More...
Public Member Functions | |
ilPageObject ($a_id=0, $a_old_nr=0, $a_lang="-") | |
Constructor public. | |
afterConstructor () | |
After constructor. | |
getParentType () | |
Get parent type. | |
initPageConfig () | |
Init page config. | |
setLanguage ($a_val) | |
Set language. | |
getLanguage () | |
Get language. | |
setPageConfig ($a_val) | |
Set page config object. | |
getPageConfig () | |
Get page config object. | |
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. | |
setLastChangeUser ($a_val) | |
Set last change user. | |
getLastChangeUser () | |
Get last change user. | |
setShowActivationInfo ($a_val) | |
Set show page activation info. | |
getShowActivationInfo () | |
Get show page activation info. | |
read () | |
Read page data. | |
buildDom ($a_force=false) | |
freeDom () | |
getDom () | |
Deprecated php4DomDocument. | |
getDomDoc () | |
Get dom doc (php5 dom document) | |
setId ($a_id) | |
set id | |
getId () | |
setParentId ($a_id) | |
getParentId () | |
addUpdateListener (&$a_object, $a_method, $a_parameters="") | |
callUpdateListeners () | |
setActive ($a_active) | |
set activation | |
getActive ($a_check_scheduled_activation=false) | |
get activation | |
_writeActive ($a_id, $a_parent_type, $a_active, $a_reset_scheduled_activation=true, $a_lang="-") | |
write activation status | |
_lookupActivationData ($a_id, $a_parent_type, $a_lang="-") | |
Lookup activation data. | |
_writeParentId ($a_parent_type, $a_pg_id, $a_par_id) | |
Write parent id. | |
setActivationStart ($a_activationstart) | |
Set Activation Start. | |
getActivationStart () | |
Get Activation Start. | |
setActivationEnd ($a_activationend) | |
Set Activation End. | |
getActivationEnd () | |
Get Activation End. | |
getContentObject ($a_hier_id, $a_pc_id="") | |
Get a content object of the page. | |
& | getContentNode ($a_hier_id, $a_pc_id="") |
Get content node from dom. | |
checkForTag ($a_content_tag, $a_hier_id, $a_pc_id="") | |
Get content node from dom. | |
lookforhier ($a_hier_id) | |
& | getNode () |
setXMLContent ($a_xml, $a_encoding="UTF-8") | |
set xml content of page, start with <PageObject...>, end with </PageObject>, comply with ILIAS DTD, omit MetaData, use utf-8! | |
appendXMLContent ($a_xml) | |
append xml content to page setXMLContent must be called before and the same encoding must be used | |
getXMLContent ($a_incl_head=false) | |
get xml content of page | |
copyXmlContent ($a_clone_mobs=false) | |
Copy content of page; replace page components with copies where necessary (e.g. | |
handleCopiedContent ($a_dom, $a_self_ass=true, $a_clone_mobs=false) | |
Handle copied content. | |
newIIMCopies ($temp_dom) | |
Replaces media objects in interactive images with copies of the interactive images. | |
newMobCopies ($temp_dom) | |
Replaces media objects with copies. | |
newQuestionCopies (&$temp_dom) | |
Replaces existing question content elements with new copies. | |
removeQuestions (&$temp_dom) | |
Remove questions from document. | |
countPageContents () | |
Remove questions from document. | |
getXMLFromDom ($a_incl_head=false, $a_append_mobs=false, $a_append_bib=false, $a_append_str="", $a_omit_pageobject_tag=false) | |
get xml content of page from dom (use this, if any changes are made to the document) | |
getLanguageVariablesXML () | |
Get language variables as XML. | |
appendLangVarXML (&$xml, $var) | |
getFirstParagraphText () | |
setParagraphContent ($a_hier_id, $a_content) | |
Set content of paragraph. | |
setContainsIntLink ($a_contains_link) | |
lm parser set this flag to true, if the page contains intern links (this method should only be called by the import parser) | |
containsIntLink () | |
returns true, if page was marked as containing an intern link (via setContainsIntLink) (this method should only be called by the import parser) | |
needsImportParsing ($a_parse="") | |
setContainsQuestion ($a_val) | |
Set contains question. | |
getContainsQuestion () | |
Get contains question. | |
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 | |
getMultimediaXML () | |
get a xml string that contains all media object elements, that are referenced by any media alias in the page | |
getMediaAliasElement ($a_mob_id, $a_nr=1) | |
get complete media object (alias) element | |
validateDom () | |
Validate the page content agains page DTD. | |
addHierIDs () | |
Add hierarchical ID (e.g. | |
getHierIds () | |
get all hierarchical ids | |
getFirstRowIds () | |
get ids of all first table rows | |
getFirstColumnIds () | |
get ids of all first table columns | |
getListItemIds () | |
get ids of all list items | |
getFileItemIds () | |
get ids of all file items | |
stripHierIDs () | |
strip all hierarchical id attributes out of the dom tree | |
getHierIdsForPCIds ($a_pc_ids) | |
Get hier ids for a set of pc ids. | |
addFileSizes () | |
add file sizes | |
resolveIntLinks () | |
Resolves all internal link targets of the page, if targets are available (after import) | |
resolveMediaAliases ($a_mapping) | |
Resolve media aliases (after import) | |
resolveIIMMediaAliases ($a_mapping) | |
Resolve iim media aliases (in ilContObjParse) | |
resolveFileItems ($a_mapping) | |
Resolve file items (after import) | |
resolveQuestionReferences ($a_mapping) | |
Resolve all quesion references (after import) | |
moveIntLinks ($a_from_to) | |
Move internal links from one destination to another. | |
handleImportRepositoryLink ($a_rep_import_id, $a_rep_type, $a_rep_ref_id) | |
createFromXML () | |
Create new page object with current xml content. | |
updateFromXML () | |
Updates page object with current xml content. | |
afterUpdate () | |
After update. | |
update ($a_validate=true, $a_no_history=false) | |
update complete page content in db (dom xml content is used) | |
delete () | |
delete page object | |
saveStyleUsage ($a_domdoc, $a_old_nr=0) | |
Save all style class/template usages. | |
deleteStyleUsages ($a_old_nr=0) | |
Delete style usages. | |
getLastUpdateOfIncludedElements () | |
Get last update of included elements (media objects and files). | |
deleteInternalLinks () | |
Delete internal links. | |
saveInternalLinks ($a_domdoc) | |
save internal links of page | |
create () | |
create new page (with current xml data) | |
deleteContent ($a_hid, $a_update=true, $a_pcid="") | |
delete content object with hierarchical id $a_hid | |
deleteContents ($a_hids, $a_update=true, $a_self_ass=false) | |
Delete multiple content objects. | |
cutContents ($a_hids) | |
Copy contents to clipboard and cut them from the page. | |
copyContents ($a_hids) | |
Copy contents to clipboard. | |
pasteContents ($a_hier_id, $a_self_ass=false) | |
Paste contents from pc clipboard. | |
switchEnableMultiple ($a_hids, $a_update=true, $a_self_ass=false) | |
(De-)activate elements | |
deleteContentFromHierId ($a_hid, $a_update=true) | |
delete content object with hierarchical id >= $a_hid | |
deleteContentBeforeHierId ($a_hid, $a_update=true) | |
delete content object with hierarchical id < $a_hid | |
_moveContentAfterHierId (&$a_source_page, &$a_target_page, $a_hid) | |
move content of hierarchical id >= $a_hid to other page | |
insertContent (&$a_cont_obj, $a_pos, $a_mode=IL_INSERT_AFTER, $a_pcid="") | |
insert a content node before/after a sibling or as first child of a parent | |
insertContentNode (&$a_cont_node, $a_pos, $a_mode=IL_INSERT_AFTER, $a_pcid="") | |
insert a content node before/after a sibling or as first child of a parent | |
moveContentBefore ($a_source, $a_target, $a_spcid="", $a_tpcid="") | |
move content object from position $a_source before position $a_target (both hierarchical content ids) | |
moveContentAfter ($a_source, $a_target, $a_spcid="", $a_tpcid="") | |
move content object from position $a_source before position $a_target (both hierarchical content ids) | |
bbCode2XML (&$a_content) | |
transforms bbCode to corresponding xml | |
insertInstIntoIDs ($a_inst, $a_res_ref_to_obj_id=true) | |
inserts installation id into ids (e.g. | |
highlightText ($a_text, $proglang, $autoindent) | |
Highligths Text with given ProgLang. | |
hasHighlighter ($hfile_ext) | |
insertSourceCodeParagraphs ($a_output, $outputmode="presentation") | |
depending on the SubCharacteristic and ShowLineNumbers attribute the line numbers and html tags for the syntax highlighting will be inserted using the dom xml functions | |
checkPCIds () | |
Check, whether (all) page content hashes are set. | |
getAllPCIds () | |
Get all pc ids. | |
existsPCId ($a_pc_id) | |
existsPCId | |
generatePcId ($a_pc_ids=false) | |
Generate new pc id. | |
insertPCIds () | |
Insert Page Content IDs. | |
getPageContentsHashes () | |
Get page contents hashes. | |
getQuestionIds () | |
Get question ids. | |
send_paragraph ($par_id, $filename) | |
getFO () | |
get fo page content | |
registerOfflineHandler ($handler) | |
containsDeactivatedElements ($a_content) | |
Check whether content contains deactivated elements. | |
getHistoryEntries () | |
Get History Entries. | |
getHistoryEntry ($a_old_nr) | |
Get History Entry. | |
getHistoryInfo ($a_nr) | |
Get information about a history entry, its predecessor and its successor. | |
addChangeDivClasses ($a_hashes) | |
compareVersion ($a_left, $a_right) | |
Compares to revisions of the page. | |
increaseViewCnt () | |
Increase view cnt. | |
writeRenderedContent ($a_content, $a_md5) | |
Write rendered content. | |
containsIntLinks ($a_content) | |
Check whether content contains internal links. | |
performAutomaticModifications () | |
Perform automatic modifications (may be overwritten by sub classes) | |
saveInitialOpenedContent ($a_type, $a_id, $a_target) | |
Save initial opened content. | |
getInitialOpenedContent () | |
Get initial opened content. | |
beforePageContentUpdate ($a_page_content) | |
Before page content update. | |
copy ($a_id, $a_parent_type="", $a_parent_id=0, $a_clone_mobs=false) | |
Copy page. | |
copyPageToTranslation ($a_target_lang) | |
Copy page to translation. | |
getEditLock () | |
Get page lock. | |
releasePageLock () | |
Release page lock. | |
getEditLockInfo () | |
Get edit lock info. |
Static Public Member Functions | |
static | _exists ($a_parent_type, $a_id, $a_lang="") |
Checks whether page exists. | |
static | _existsAndNotEmpty ($a_parent_type, $a_id, $a_lang="-") |
Checks whether page exists and is not empty (may return true on some empty pages) | |
static | preloadActivationDataByParentId ($a_parent_id) |
Preload activation data by Parent Id. | |
static | _lookupActive ($a_id, $a_parent_type, $a_check_scheduled_activation=false, $a_lang="-") |
lookup activation status | |
static | _isScheduledActivation ($a_id, $a_parent_type, $a_lang="-") |
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 | _lookupContainsDeactivatedElements ($a_id, $a_parent_type, $a_lang="-") |
lookup whether page contains deactivated elements | |
static | getRecentChanges ($a_parent_type, $a_parent_id, $a_period=30, $a_lang="") |
Get recent pages changes for parent object. | |
static | getAllPages ($a_parent_type, $a_parent_id, $a_lang="-") |
Get all pages for parent object. | |
static | getNewPages ($a_parent_type, $a_parent_id, $a_lang="-") |
Get new pages. | |
static | getParentObjectContributors ($a_parent_type, $a_parent_id, $a_lang="-") |
Get all contributors for parent object. | |
static | getPageContributors ($a_parent_type, $a_page_id, $a_lang="-") |
Get all contributors for parent object. | |
static | getPagesWithLinks ($a_parent_type, $a_parent_id, $a_lang="-") |
Get all pages for parent object that contain internal links. | |
static | lookupTranslations ($a_parent_type, $a_id) |
Lookup translations. |
Data Fields | |
$id | |
$ilias | |
$dom | |
$xml | |
$encoding | |
$node | |
$cur_dtd = "ilias_pg_4_4.dtd" | |
$contains_int_link | |
$needs_parsing | |
$parent_type | |
$parent_id | |
$update_listeners | |
$update_listener_cnt | |
$offline_handler | |
$dom_builded | |
$history_saved | |
$language = "-" |
Static Public Attributes | |
static | $exists = array() |
Protected Member Functions | |
__afterUpdate ($a_domdoc, $a_xml, $a_creation=false, $a_empty=false) | |
After update event handler (internal). | |
__beforeDelete () | |
Before deletion handler (internal). | |
__afterHistoryEntry ($a_old_domdoc, $a_old_content, $a_old_nr) | |
Before deletion handler (internal). |
Static Protected Attributes | |
static | $activation_data = array() |
Class ilPageObject.
Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition at line 46 of file class.ilPageObject.php.
|
finalprotected |
Before deletion handler (internal).
Definition at line 2663 of file class.ilPageObject.php.
References ilCOPagePCDef\getPCDefinitions(), ilCOPagePCDef\requirePCClassByName(), 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 2374 of file class.ilPageObject.php.
References afterUpdate(), callUpdateListeners(), ilCOPagePCDef\getPCDefinitions(), ilCOPagePCDef\requirePCClassByName(), saveInternalLinks(), and saveStyleUsage().
Referenced by createFromXML(), update(), and updateFromXML().
|
finalprotected |
Before deletion handler (internal).
Definition at line 2645 of file class.ilPageObject.php.
References ilCOPagePCDef\getPCDefinitions(), and ilCOPagePCDef\requirePCClassByName().
Referenced by delete().
|
static |
Checks whether page exists.
string | $a_parent_type | parent type |
int | $a_id | page id |
string | $a_lang | language code, if empty language independent existence is checked |
Definition at line 356 of file class.ilPageObject.php.
Referenced by ilImprintGUI\__construct(), ilShopPurchaseGUI\__getAbstractHTML(), ilContainer\cloneObject(), copy(), ilAssQuestionFeedback\ensurePageObjectDeleted(), ilAssQuestionFeedbackPageObjectCommandForwarder\ensurePageObjectExists(), ilAssQuestionHintPageObjectCommandForwarder\ensurePageObjectExists(), ilAssQuestionFeedback\ensurePageObjectExists(), ilLMPageObjectGUI\executeCommand(), ilWikiHTMLExport\exportHTMLPages(), ilPortfolioHTMLExport\exportHTMLPages(), ilObjBlogGUI\exportHTMLPages(), ilObjContentObject\exportHTMLPages(), ilObjContentObject\exportXMLPageObjects(), ilCOPageImporter\finalProcessing(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilObjPaymentSettingsGUI\forwardToDocumentsPageObject(), ilTermsConditionsGUI\forwardToPageObject(), ilShopInfoGUI\forwardToPageObject(), ilAuthLoginPageEditorGUI\forwardToPageObject(), ilShopGUI\forwardToPageObject(), ilContainerGUI\forwardToPageObject(), ilObjPaymentSettingsGUI\getDocumentsPageHTML(), ilObjectTranslation\getEffectiveContentLang(), ilPageMultiLang\getEffectiveLang(), ilLMPresentationGUI\getLMPage(), ilLMPresentationGUI\getLMPageGUI(), ilShopInfoGUI\getPageHTML(), ilTermsConditionsGUI\getPageHTML(), ilShopGUI\getPageHTML(), ilWikiExporter\getXmlExportTailDependencies(), ilMediaPoolPage\lookupUsages(), ilObjMediaObject\lookupUsages(), newQuestionCopies(), ilContObjParser\processPagesToParse(), ilWikiPage\rename(), ilPageObjectGUI\switchToLanguage(), and ilObjContentObject\validatePages().
|
static |
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 |
string | $a_lang | language code ("-" for unknown / not set) |
Definition at line 392 of file class.ilPageObject.php.
|
static |
Change targest of repository links.
Use full targets in "from" and "to"!!!
array | keys are the old targets, values are the new targets |
Definition at line 2222 of file class.ilPageObject.php.
References ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), and ilInternalLink\_getSourcesOfTarget().
Referenced by ilObjContentObject\importFromDirectory().
|
static |
Check whether page is activated by time schedule.
Definition at line 599 of file class.ilPageObject.php.
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilLMTOCExplorer\getImage(), ilTableOfContentsExplorer\getImage(), ilLMEditorExplorerGUI\getNodeIcon(), ilLMTOCExplorerGUI\getNodeIcon(), and ilObjContentObjectGUI\pages().
ilPageObject::_lookupActivationData | ( | $a_id, | |
$a_parent_type, | |||
$a_lang = "-" |
|||
) |
Lookup activation data.
Definition at line 662 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_getPresentationTitle(), ilLMPresentationGUI\ilLMNavigation(), ilLMPresentationGUI\ilPage(), ilLMTOCExplorerGUI\isNodeVisible(), ilLMTOCExplorer\isVisible(), and ilTableOfContentsExplorer\isVisible().
|
static |
lookup activation status
Definition at line 558 of file class.ilPageObject.php.
References ilUtil\now().
Referenced by ilLMPageObject\_getPresentationTitle(), ilStructureObjectGUI\activatePages(), ilObjContentObjectGUI\activatePages(), ilTableOfContentsExplorer\buildLinkTarget(), ilLMTOCExplorer\buildLinkTarget(), ilObjBlog\deliverRSS(), ilLMPagesTableGUI\fillRow(), ilObjBlogGUI\filterInactivePostings(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMPresentationGUI\getCurrentPageId(), ilLMTOCExplorer\getImage(), ilTableOfContentsExplorer\getImage(), ilObjBlogGUI\getKeywords(), ilLMTOCExplorerGUI\getNodeHref(), ilLMEditorExplorerGUI\getNodeIcon(), ilLMTOCExplorerGUI\getNodeIcon(), ilLMEditorExplorerGUI\getNodeIconAlt(), ilLMPresentationGUI\ilLMNavigation(), ilImprint\isActive(), ilLMTOCExplorer\isClickable(), ilTableOfContentsExplorer\isClickable(), ilLMTOCExplorerGUI\isNodeClickable(), ilLMTOCExplorerGUI\isNodeVisible(), ilLMTOCExplorer\isVisible(), ilTableOfContentsExplorer\isVisible(), ilObjContentObjectGUI\pages(), ilObjBlogGUI\renderList(), ilObjBlogGUI\renderNavigation(), ilLMPresentationGUI\showPrintView(), and ilLMPresentationGUI\showPrintViewSelection().
|
static |
lookup whether page contains deactivated elements
Definition at line 4067 of file class.ilPageObject.php.
References $query, and DB_FETCHMODE_ASSOC.
Referenced by ilLMPagesTableGUI\fillRow(), ilChapterHierarchyFormGUI\getChildIcon(), ilChapterHierarchyFormGUI\getChildIconAlt(), ilLMTOCExplorer\getImage(), ilTableOfContentsExplorer\getImage(), ilLMEditorExplorerGUI\getNodeIcon(), ilLMEditorExplorerGUI\getNodeIconAlt(), and ilObjContentObjectGUI\pages().
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 3226 of file class.ilPageObject.php.
Referenced by ilLMPageObject\_splitPageNext().
ilPageObject::_writeActive | ( | $a_id, | |
$a_parent_type, | |||
$a_active, | |||
$a_reset_scheduled_activation = true , |
|||
$a_lang = "-" |
|||
) |
write activation status
Definition at line 634 of file class.ilPageObject.php.
Referenced by ilStructureObjectGUI\activatePages(), and ilObjContentObjectGUI\activatePages().
ilPageObject::_writeParentId | ( | $a_parent_type, | |
$a_pg_id, | |||
$a_par_id | |||
) |
Write parent id.
Definition at line 705 of file class.ilPageObject.php.
Referenced by ilWikiImporter\finalProcessing(), ilBlogImporter\finalProcessing(), and ilPortfolioImporter\finalProcessing().
ilPageObject::addChangeDivClasses | ( | $a_hashes | ) |
Definition at line 4213 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1852 of file class.ilPageObject.php.
References $id, $path, $res, $size, ilObjFile\_lookupFileSize(), xpath_eval(), and xpath_new_context().
ilPageObject::addHierIDs | ( | ) |
Add hierarchical ID (e.g.
for editing) attributes "HierId" to current dom tree. This attribute will be added to the following elements: PageObject, Paragraph, Table, TableRow, TableData. Only elements of these types are counted as "childs" here.
Hierarchical IDs have the format "x_y_z_...", e.g. "1_4_2" means: second child of fourth child of first child of page.
The PageObject element gets the special id "pg". The first child of the page starts with id 1. The next child gets the 2 and so on.
Another example: The first child of the page is a Paragraph -> id 1. The second child is a table -> id 2. The first row gets the id 2_1, the
Definition at line 1633 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 485 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by ilBlogPosting\read().
ilPageObject::afterConstructor | ( | ) |
After constructor.
@return |
Reimplemented in ilSCORM2004Page, ilWikiPage, and ilLMPage.
Definition at line 115 of file class.ilPageObject.php.
Referenced by ilPageObject().
ilPageObject::afterUpdate | ( | ) |
After update.
@return |
Definition at line 2411 of file class.ilPageObject.php.
Referenced by __afterUpdate().
ilPageObject::appendLangVarXML | ( | & | $xml, |
$var | |||
) |
Definition at line 1321 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 961 of file class.ilPageObject.php.
ilPageObject::bbCode2XML | ( | & | $a_content | ) |
transforms bbCode to corresponding xml
Definition at line 3528 of file class.ilPageObject.php.
ilPageObject::beforePageContentUpdate | ( | $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
@return |
Reimplemented in ilLMPage.
Definition at line 4810 of file class.ilPageObject.php.
ilPageObject::buildDom | ( | $a_force = false | ) |
Definition at line 401 of file class.ilPageObject.php.
References $path, $res, DOMXML_LOAD_VALIDATING, domxml_open_mem(), getXMLContent(), xpath_eval(), and xpath_new_context().
Referenced by countPageContents(), createFromXML(), delete(), ilSCORM2004Page\exportXMLPageContent(), getInitialOpenedContent(), ilPortfolioTemplatePage\getPageDiskSize(), handleImportRepositoryLink(), ilPCVerification\isInPortfolioPage(), moveIntLinks(), ilSCORM2004Page\performAutomaticModifications(), saveInitialOpenedContent(), and updateFromXML().
ilPageObject::callUpdateListeners | ( | ) |
Definition at line 494 of file class.ilPageObject.php.
References $update_listener_cnt.
Referenced by __afterUpdate().
ilPageObject::checkForTag | ( | $a_content_tag, | |
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Get content node from dom.
string | $a_hier_id | hierarchical ID |
string | $a_pc_id | page content ID |
Definition at line 898 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 3780 of file class.ilPageObject.php.
References $dom, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by update().
ilPageObject::collectMediaObjects | ( | $a_inline_only = true | ) |
get all media objects, that are referenced and used within the page
Definition at line 1432 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 4242 of file class.ilPageObject.php.
References getId(), ilPageObjectFactory\getInstance(), and getParentType().
ilPageObject::containsDeactivatedElements | ( | $a_content | ) |
Check whether content contains deactivated elements.
@return |
Definition at line 4097 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 1386 of file class.ilPageObject.php.
References $contains_int_link.
ilPageObject::containsIntLinks | ( | $a_content | ) |
Check whether content contains internal links.
@return |
Definition at line 4654 of file class.ilPageObject.php.
Referenced by createFromXML(), update(), and updateFromXML().
ilPageObject::copy | ( | $a_id, | |
$a_parent_type = "" , |
|||
$a_parent_id = 0 , |
|||
$a_clone_mobs = false |
|||
) |
Copy page.
int | $a_id | target page id |
string | $a_parent_type | target parent type |
int | $a_parent_id | target parent id |
Definition at line 4822 of file class.ilPageObject.php.
References _exists(), getId(), ilPageObjectFactory\getInstance(), getParentId(), and getParentType().
ilPageObject::copyContents | ( | $a_hids | ) |
Copy contents to clipboard.
string | $a_hids | array of hierarchical ids of content objects |
Definition at line 3005 of file class.ilPageObject.php.
References $ilUser, getContentNode(), ilEditClipboard\setAction(), and ilPageContent\sortHierIds().
Referenced by cutContents().
ilPageObject::copyPageToTranslation | ( | $a_target_lang | ) |
Copy page to translation.
string | $a_target_lang | target language |
Definition at line 4895 of file class.ilPageObject.php.
References getActivationEnd(), getActivationStart(), getActive(), getId(), ilPageObjectFactory\getInstance(), getParentId(), and getParentType().
ilPageObject::copyXmlContent | ( | $a_clone_mobs = false | ) |
Copy content of page; replace page components with copies where necessary (e.g.
questions)
Definition at line 994 of file class.ilPageObject.php.
References $xml, DOMXML_LOAD_PARSING, domxml_open_mem(), and handleCopiedContent().
ilPageObject::countPageContents | ( | ) |
Remove questions from document.
@return |
Definition at line 1202 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::create | ( | ) |
create new page (with current xml data)
Reimplemented in ilDataCollectionRecordViewViewdefinition, and ilSCORM2004Page.
Definition at line 2927 of file class.ilPageObject.php.
References createFromXML().
Referenced by ilBlogPosting\create(), ilPortfolioPage\create(), and ilWikiPage\create().
ilPageObject::createFromXML | ( | ) |
Create new page object with current xml content.
Reimplemented in ilWikiPage.
Definition at line 2281 of file class.ilPageObject.php.
References $ilUser, $lng, __afterUpdate(), buildDom(), containsDeactivatedElements(), containsIntLinks(), getActive(), getDomDoc(), getId(), getLanguage(), 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 2994 of file class.ilPageObject.php.
References copyContents(), and deleteContents().
ilPageObject::delete | ( | ) |
delete page object
Reimplemented in ilWikiPage, ilBlogPosting, ilPortfolioPage, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2573 of file class.ilPageObject.php.
References $GLOBALS, $mobs, __beforeDelete(), ilObjMediaObject\_deleteAllUsages(), ilObject\_exists(), ilObject\_lookupType(), buildDom(), collectMediaObjects(), deleteInternalLinks(), ilNewsItem\deleteNewsOfContext(), deleteStyleUsages(), getId(), getParentId(), and getParentType().
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 2939 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 3195 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 3165 of file class.ilPageObject.php.
References getContentNode(), getHierIds(), and update().
ilPageObject::deleteContents | ( | $a_hids, | |
$a_update = true , |
|||
$a_self_ass = false |
|||
) |
Delete multiple content objects.
string | $a_hids | array of hierarchical ids of content objects |
boolean | $a_update | update page in db (note: update deletes all hierarchical ids in DOM!) |
Definition at line 2957 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), and update().
Referenced by cutContents().
ilPageObject::deleteInternalLinks | ( | ) |
Delete internal links.
@return |
Definition at line 2844 of file class.ilPageObject.php.
References ilInternalLink\_deleteAllLinksOfSource(), getId(), getLanguage(), and getParentType().
Referenced by delete(), and saveInternalLinks().
ilPageObject::deleteStyleUsages | ( | $a_old_nr = 0 | ) |
Delete style usages.
@return |
Definition at line 2803 of file class.ilPageObject.php.
Referenced by delete(), and saveStyleUsage().
ilPageObject::existsPCId | ( | $a_pc_id | ) |
existsPCId
@return |
Definition at line 3840 of file class.ilPageObject.php.
References $dom, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::freeDom | ( | ) |
Definition at line 431 of file class.ilPageObject.php.
Referenced by ilSCORM2004Page\exportXMLPageContent().
ilPageObject::generatePcId | ( | $a_pc_ids = false | ) |
Generate new pc id.
array | $a_pc_ids | existing pc ids |
Definition at line 3866 of file class.ilPageObject.php.
References $id, and getAllPCIds().
ilPageObject::getActivationEnd | ( | ) |
Get Activation End.
Definition at line 749 of file class.ilPageObject.php.
Referenced by copyPageToTranslation(), getActive(), update(), and updateFromXML().
ilPageObject::getActivationStart | ( | ) |
Get Activation Start.
Definition at line 729 of file class.ilPageObject.php.
Referenced by copyPageToTranslation(), getActive(), update(), and updateFromXML().
ilPageObject::getActive | ( | $a_check_scheduled_activation = false | ) |
get activation
Definition at line 520 of file class.ilPageObject.php.
References ilDateTime\_after(), ilDateTime\_before(), getActivationEnd(), getActivationStart(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ilBlogPosting\checkApproval(), copyPageToTranslation(), createFromXML(), ilBlogPosting\update(), update(), and updateFromXML().
|
static |
Get all pages for parent object.
string | $a_parent_type | Parent Type |
int | $a_parent_id | Parent ID |
int | $a_period | Time Period |
Definition at line 4386 of file class.ilPageObject.php.
Referenced by ilObjContentObject\autoLinkGlossaryTerms(), and ilBlogPosting\getAllPostings().
ilPageObject::getAllPCIds | ( | ) |
Get all pc ids.
@return |
Definition at line 3808 of file class.ilPageObject.php.
References $dom, $node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by generatePcId(), and insertPCIds().
ilPageObject::getContainsQuestion | ( | ) |
Get contains question.
Definition at line 1421 of file class.ilPageObject.php.
& ilPageObject::getContentNode | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
) |
Get content node from dom.
string | $a_hier_id | hierarchical ID |
string | $a_pc_id | page content ID |
Definition at line 860 of file class.ilPageObject.php.
References $node, $path, $res, xpath_eval(), and xpath_new_context().
Referenced by copyContents(), deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), getContentObject(), insertContent(), insertContentNode(), setParagraphContent(), and switchEnableMultiple().
ilPageObject::getContentObject | ( | $a_hier_id, | |
$a_pc_id = "" |
|||
) |
Get a content object of the page.
string | hier ID |
string | PC ID |
Definition at line 762 of file class.ilPageObject.php.
References $_GET, $_POST, $tab, ilObject\_exists(), exit, getContentNode(), and ilCOPagePCDef\getPCDefinitionByName().
Referenced by ilSCORM2004Page\exportXMLPageContent(), moveContentAfter(), moveContentBefore(), and switchEnableMultiple().
ilPageObject::getDom | ( | ) |
Deprecated php4DomDocument.
Definition at line 440 of file class.ilPageObject.php.
References $dom.
Referenced by ilPortfolioTemplatePage\getPageDiskSize(), and ilPCVerification\isInPortfolioPage().
ilPageObject::getDomDoc | ( | ) |
Get dom doc (php5 dom document)
@return |
Definition at line 451 of file class.ilPageObject.php.
References $dom.
Referenced by ilWikiPage\create(), createFromXML(), ilSCORM2004Page\exportXMLPageContent(), update(), and updateFromXML().
ilPageObject::getEditLock | ( | ) |
Get page lock.
Definition at line 4915 of file class.ilPageObject.php.
References $ilUser, getId(), and getParentType().
Referenced by update().
ilPageObject::getEditLockInfo | ( | ) |
Get edit lock info.
Definition at line 4990 of file class.ilPageObject.php.
Referenced by update().
ilPageObject::getFileItemIds | ( | ) |
get ids of all file items
Reimplemented in ilSCORM2004Page.
Definition at line 1792 of file class.ilPageObject.php.
ilPageObject::getFirstColumnIds | ( | ) |
get ids of all first table columns
Definition at line 1774 of file class.ilPageObject.php.
ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1330 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 1765 of file class.ilPageObject.php.
ilPageObject::getFO | ( | ) |
get fo page content
Definition at line 4035 of file class.ilPageObject.php.
References $xml, getXMLFromDom(), xslt_create(), xslt_free(), and xslt_process().
ilPageObject::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 1756 of file class.ilPageObject.php.
Referenced by deleteContentBeforeHierId(), and deleteContentFromHierId().
ilPageObject::getHierIdsForPCIds | ( | $a_pc_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1821 of file class.ilPageObject.php.
References $path, $res, $ret, xpath_eval(), and xpath_new_context().
ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 4109 of file class.ilPageObject.php.
References getId(), getLanguage(), and getParentType().
ilPageObject::getHistoryEntry | ( | $a_old_nr | ) |
Get History Entry.
Definition at line 4135 of file class.ilPageObject.php.
References $res, getId(), getLanguage(), 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 4161 of file class.ilPageObject.php.
References $res, $ret, and $row.
ilPageObject::getId | ( | ) |
Definition at line 470 of file class.ilPageObject.php.
References $id.
Referenced by compareVersion(), copy(), copyPageToTranslation(), ilDataCollectionRecordViewViewdefinition\create(), ilBlogPosting\create(), ilWikiPage\create(), createFromXML(), ilPortfolioPage\delete(), ilBlogPosting\delete(), ilWikiPage\delete(), delete(), deleteInternalLinks(), ilDataCollectionRecordViewViewdefinition\doRead(), ilSCORM2004Page\exportXMLMetaData(), getEditLock(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilMediaPoolPage\getUsages(), ilBlogPosting\read(), ilPortfolioPage\read(), ilWikiPage\read(), ilWikiPage\rename(), ilWikiPage\saveInternalLinks(), saveInternalLinks(), ilBlogPosting\update(), ilPortfolioPage\update(), ilWikiPage\update(), update(), updateFromXML(), ilWikiPage\updateNews(), and writeRenderedContent().
ilPageObject::getInitialOpenedContent | ( | ) |
Get initial opened content.
Definition at line 4751 of file class.ilPageObject.php.
References $id, $path, $res, ilInternalLink\_extractObjIdOfTarget(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::getInternalLinks | ( | $a_cnt_multiple = false | ) |
get all internal links that are used within the page
Definition at line 1490 of file class.ilPageObject.php.
References $id, $path, $res, ilMediaItem\_getMapAreasIntLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::getLanguage | ( | ) |
Get language.
Definition at line 155 of file class.ilPageObject.php.
References $language.
Referenced by createFromXML(), deleteInternalLinks(), getHistoryEntries(), getHistoryEntry(), read(), saveInternalLinks(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getLanguageVariablesXML | ( | ) |
Get language variables as XML.
Definition at line 1280 of file class.ilPageObject.php.
References $lng, $xml, appendLangVarXML(), ilCOPagePCDef\getPCDefinitions(), and ilCOPagePCDef\requirePCClassByName().
Referenced by getXMLFromDom().
ilPageObject::getLastChange | ( | ) |
Get Last Change.
Definition at line 255 of file class.ilPageObject.php.
ilPageObject::getLastChangeUser | ( | ) |
Get last change user.
Definition at line 275 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 2826 of file class.ilPageObject.php.
References $mobs, ilObjFile\_getFilesOfObject(), ilObject\_getLastUpdateOfObjects(), ilObjMediaObject\_getMobsOfObject(), getId(), and getParentType().
ilPageObject::getListItemIds | ( | ) |
get ids of all list items
Definition at line 1783 of file class.ilPageObject.php.
ilPageObject::getMediaAliasElement | ( | $a_mob_id, | |
$a_nr = 1 |
|||
) |
get complete media object (alias) element
Definition at line 1589 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 1566 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 4424 of file class.ilPageObject.php.
& ilPageObject::getNode | ( | ) |
Definition at line 935 of file class.ilPageObject.php.
References $node.
Referenced by insertContent(), and insertContentNode().
ilPageObject::getPageConfig | ( | ) |
Get page config object.
Definition at line 175 of file class.ilPageObject.php.
Referenced by ilLMPage\afterConstructor(), ilWikiPage\afterConstructor(), ilSCORM2004Page\afterConstructor(), and insertContent().
ilPageObject::getPageContentsHashes | ( | ) |
Get page contents hashes.
Definition at line 3910 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 4531 of file class.ilPageObject.php.
References ilObjUser\_lookupName().
|
static |
Get all pages for parent object that contain internal links.
string | $a_parent_type | Parent Type |
int | $a_parent_id | Parent ID |
int | $a_period | Time Period |
Definition at line 4615 of file class.ilPageObject.php.
Referenced by ilLMPageObject\getPagesWithLinksList().
ilPageObject::getParentId | ( | ) |
Definition at line 480 of file class.ilPageObject.php.
References $parent_id.
Referenced by ilLMPage\afterConstructor(), ilWikiPage\afterConstructor(), ilSCORM2004Page\afterConstructor(), ilLMPage\beforePageContentUpdate(), copy(), copyPageToTranslation(), createFromXML(), delete(), ilSCORM2004Page\exportXMLMetaData(), ilBlogPosting\getBlogId(), ilWikiPage\getWikiId(), 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 4463 of file class.ilPageObject.php.
References ilObjUser\_lookupName(), and ilObject\_lookupType().
|
abstract |
Get parent type.
Reimplemented in ilDataCollectionRecordViewViewdefinition, ilPortfolioPage, ilBlogPosting, ilSCORM2004Page, ilPortfolioTemplatePage, ilWikiPage, ilAssQuestionPage, ilGlossaryDefPage, ilLMPage, ilMediaPoolPage, ilAssHintPage, ilAssGenFeedbackPage, ilAssSpecFeedbackPage, ilLoginPage, ilContainerPage, ilShopPage, ilPageLayoutPage, and ilImprint.
Referenced by compareVersion(), copy(), copyPageToTranslation(), createFromXML(), delete(), deleteInternalLinks(), getEditLock(), getHistoryEntries(), getHistoryEntry(), getLastUpdateOfIncludedElements(), ilPageObject(), initPageConfig(), read(), saveInternalLinks(), update(), updateFromXML(), and writeRenderedContent().
ilPageObject::getQuestionIds | ( | ) |
Get question ids.
Definition at line 3958 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 4323 of file class.ilPageObject.php.
References ilUtil\sortArray().
ilPageObject::getRenderedContent | ( | ) |
Get Rendered Content.
Definition at line 215 of file class.ilPageObject.php.
ilPageObject::getRenderedTime | ( | ) |
Get Rendered Time.
Definition at line 235 of file class.ilPageObject.php.
ilPageObject::getRenderMd5 | ( | ) |
Get Render MD5.
Definition at line 195 of file class.ilPageObject.php.
ilPageObject::getShowActivationInfo | ( | ) |
Get show page activation info.
Definition at line 295 of file class.ilPageObject.php.
Referenced by update().
ilPageObject::getXMLContent | ( | $a_incl_head = false | ) |
get xml content of page
Definition at line 970 of file class.ilPageObject.php.
References $xml.
Referenced by buildDom(), createFromXML(), 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 1216 of file class.ilPageObject.php.
References $mobs, $xml, getLanguageVariablesXML(), and getMultimediaXML().
Referenced by ilSCORM2004Page\exportXMLPageContent(), getFO(), and update().
ilPageObject::handleCopiedContent | ( | $a_dom, | |
$a_self_ass = true , |
|||
$a_clone_mobs = false |
|||
) |
Handle copied content.
This function copies items, that must be copied, if page content is duplicated.
@return |
Definition at line 1021 of file class.ilPageObject.php.
References ilCOPagePCDef\getPCDefinitions(), newIIMCopies(), newMobCopies(), newQuestionCopies(), removeQuestions(), and ilCOPagePCDef\requirePCClassByName().
Referenced by copyXmlContent(), and pasteContents().
ilPageObject::handleImportRepositoryLink | ( | $a_rep_import_id, | |
$a_rep_type, | |||
$a_rep_ref_id | |||
) |
Definition at line 2254 of file class.ilPageObject.php.
References $path, $res, buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::hasHighlighter | ( | $hfile_ext | ) |
Definition at line 3663 of file class.ilPageObject.php.
Referenced by highlightText().
ilPageObject::highlightText | ( | $a_text, | |
$proglang, | |||
$autoindent | |||
) |
Highligths Text with given ProgLang.
Definition at line 3641 of file class.ilPageObject.php.
References hasHighlighter().
Referenced by insertSourceCodeParagraphs().
|
final |
Constructor public.
Definition at line 73 of file class.ilPageObject.php.
References $ilias, afterConstructor(), getParentType(), initPageConfig(), read(), setActive(), and setLanguage().
ilPageObject::increaseViewCnt | ( | ) |
Increase view cnt.
Definition at line 4305 of file class.ilPageObject.php.
|
final |
Init page config.
Definition at line 133 of file class.ilPageObject.php.
References ilPageObjectFactory\getConfigInstance(), getParentType(), and setPageConfig().
Referenced by ilPageObject().
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 3283 of file class.ilPageObject.php.
References getContentNode(), getNode(), getPageConfig(), 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 3389 of file class.ilPageObject.php.
References getContentNode(), getNode(), IL_INSERT_AFTER, IL_INSERT_BEFORE, and IL_INSERT_CHILD.
Referenced by pasteContents().
ilPageObject::insertInstIntoIDs | ( | $a_inst, | |
$a_res_ref_to_obj_id = true |
|||
) |
inserts installation id into ids (e.g.
il__pg_4 -> il_23_pg_4) this is needed for xml export of page
Definition at line 3542 of file class.ilPageObject.php.
References $id, $path, $ref_id, $res, ilObject\_lookupObjId(), ilObject\_lookupType(), xpath_eval(), and xpath_new_context().
Referenced by ilSCORM2004Page\exportXMLPageContent().
ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 3880 of file class.ilPageObject.php.
References $dom, $id, $node, $path, $res, getAllPCIds(), xpath_eval(), and xpath_new_context().
Referenced by update().
ilPageObject::insertSourceCodeParagraphs | ( | $a_output, | |
$outputmode = "presentation" |
|||
) |
depending on the SubCharacteristic and ShowLineNumbers attribute the line numbers and html tags for the syntax highlighting will be inserted using the dom xml functions
Definition at line 3672 of file class.ilPageObject.php.
References $n, $path, $res, highlightText(), xpath_eval(), and xpath_new_context().
ilPageObject::lookforhier | ( | $a_hier_id | ) |
Definition at line 923 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
|
static |
Lookup parent id.
Definition at line 692 of file class.ilPageObject.php.
References $res.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
|
static |
Lookup translations.
string | $a_parent_type | parent type |
int | $a_id | page id |
Definition at line 4873 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 3503 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 3477 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 2056 of file class.ilPageObject.php.
References $changed, $id, $path, $res, $t, ilInternalLink\_extractObjIdOfTarget(), ilLMObject\_lookupType(), addHierIDs(), buildDom(), xpath_eval(), and xpath_new_context().
ilPageObject::needsImportParsing | ( | $a_parse = "" | ) |
Definition at line 1391 of file class.ilPageObject.php.
References $needs_parsing.
ilPageObject::newIIMCopies | ( | $temp_dom | ) |
Replaces media objects in interactive images with copies of the interactive images.
Definition at line 1063 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::newMobCopies | ( | $temp_dom | ) |
Replaces media objects with copies.
Definition at line 1099 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::newQuestionCopies | ( | & | $temp_dom | ) |
Replaces existing question content elements with new copies.
Definition at line 1136 of file class.ilPageObject.php.
References $path, $res, _exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestion\_instanciateQuestion(), xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::pasteContents | ( | $a_hier_id, | |
$a_self_ass = false |
|||
) |
Paste contents from pc clipboard.
Definition at line 3076 of file class.ilPageObject.php.
References $ilUser, $path, $res, DOMXML_LOAD_PARSING, domxml_open_mem(), handleCopiedContent(), IL_INSERT_AFTER, insertContentNode(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::performAutomaticModifications | ( | ) |
Perform automatic modifications (may be overwritten by sub classes)
Reimplemented in ilSCORM2004Page.
Definition at line 4666 of file class.ilPageObject.php.
Referenced by update().
|
static |
Preload activation data by Parent Id.
integer | $a_parent_id | parent id |
Definition at line 541 of file class.ilPageObject.php.
Referenced by ilLMExplorerGUI\__construct().
ilPageObject::read | ( | ) |
Read page data.
Reimplemented in ilPortfolioPage, ilBlogPosting, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 303 of file class.ilPageObject.php.
References $query, getLanguage(), getParentType(), setActivationEnd(), setActivationStart(), setActive(), setLastChange(), setParentId(), setRenderedContent(), setRenderedTime(), setRenderMd5(), and setShowActivationInfo().
Referenced by ilWikiPage\createFromXML(), ilPageObject(), and ilWikiPage\read().
ilPageObject::registerOfflineHandler | ( | $handler | ) |
Definition at line 4060 of file class.ilPageObject.php.
ilPageObject::releasePageLock | ( | ) |
Release page lock.
Definition at line 4952 of file class.ilPageObject.php.
References $ilUser.
ilPageObject::removeQuestions | ( | & | $temp_dom | ) |
Remove questions from document.
@return |
Definition at line 1181 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by handleCopiedContent().
ilPageObject::resolveFileItems | ( | $a_mapping | ) |
Resolve file items (after import)
array | mapping array |
Definition at line 2002 of file class.ilPageObject.php.
References $changed, $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::resolveIIMMediaAliases | ( | $a_mapping | ) |
Resolve iim media aliases (in ilContObjParse)
array | mapping array |
Definition at line 1974 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 1890 of file class.ilPageObject.php.
References $path, $res, ilInternalLink\_exists(), ilInternalLink\_extractInstOfTarget(), ilInternalLink\_getIdForImportId(), ilInternalLink\_removeInstFromTarget(), ilMediaItem\_resolveMapAreaLinks(), xpath_eval(), and xpath_new_context().
ilPageObject::resolveMediaAliases | ( | $a_mapping | ) |
Resolve media aliases (after import)
array | mapping array |
Definition at line 1944 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 2030 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
ilPageObject::saveInitialOpenedContent | ( | $a_type, | |
$a_id, | |||
$a_target | |||
) |
Save initial opened content.
Definition at line 4676 of file class.ilPageObject.php.
References $path, $res, $ret, buildDom(), update(), xpath_eval(), and xpath_new_context().
ilPageObject::saveInternalLinks | ( | $a_domdoc | ) |
save internal links of page
string | xml page code |
Reimplemented in ilWikiPage.
Definition at line 2858 of file class.ilPageObject.php.
References $node, $target_arr, ilInternalLink\_saveLink(), deleteInternalLinks(), getId(), getLanguage(), and getParentType().
Referenced by __afterUpdate().
ilPageObject::saveStyleUsage | ( | $a_domdoc, | |
$a_old_nr = 0 |
|||
) |
Save all style class/template usages.
string | $a_xml | xml data of page |
Definition at line 2684 of file class.ilPageObject.php.
References $node, $path, and deleteStyleUsages().
Referenced by __afterHistoryEntry(), and __afterUpdate().
ilPageObject::send_paragraph | ( | $par_id, | |
$filename | |||
) |
Definition at line 3989 of file class.ilPageObject.php.
References $dom, $filename, $path, $res, ilUtil\deliverData(), exit, xpath_eval(), and xpath_new_context().
ilPageObject::setActivationEnd | ( | $a_activationend | ) |
Set Activation End.
date | $a_activationend | Activation End |
Definition at line 739 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setActivationStart | ( | $a_activationstart | ) |
Set Activation Start.
date | $a_activationstart | Activation Start |
Definition at line 719 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 510 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 1376 of file class.ilPageObject.php.
ilPageObject::setContainsQuestion | ( | $a_val | ) |
Set contains question.
boolean | $a_val | contains question |
Definition at line 1411 of file class.ilPageObject.php.
ilPageObject::setId | ( | $a_id | ) |
set id
Definition at line 465 of file class.ilPageObject.php.
Referenced by ilSCORM2004PageNode\create(), ilDataCollectionRecordViewViewdefinition\create(), ilBlogPosting\create(), ilPortfolioPage\create(), and ilWikiPage\create().
ilPageObject::setLanguage | ( | $a_val | ) |
Set language.
string | $a_val | language code or "-" for unknown / not set |
Definition at line 145 of file class.ilPageObject.php.
Referenced by ilPageObject().
ilPageObject::setLastChange | ( | $a_lastchange | ) |
Set Last Change.
string | $a_lastchange | Last Change |
Definition at line 245 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setLastChangeUser | ( | $a_val | ) |
Set last change user.
integer | $a_val | last change user |
Definition at line 265 of file class.ilPageObject.php.
ilPageObject::setPageConfig | ( | $a_val | ) |
Set page config object.
object | $a_val | page config object |
Definition at line 165 of file class.ilPageObject.php.
Referenced by initPageConfig().
ilPageObject::setParagraphContent | ( | $a_hier_id, | |
$a_content | |||
) |
Set content of paragraph.
string | $a_hier_id | Hier ID |
string | $a_content | Content |
Definition at line 1355 of file class.ilPageObject.php.
References $node, and getContentNode().
ilPageObject::setParentId | ( | $a_id | ) |
Definition at line 475 of file class.ilPageObject.php.
Referenced by read(), ilBlogPosting\setBlogId(), and ilWikiPage\setWikiId().
ilPageObject::setRenderedContent | ( | $a_renderedcontent | ) |
Set Rendered Content.
string | $a_renderedcontent | Rendered Content |
Definition at line 205 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setRenderedTime | ( | $a_renderedtime | ) |
Set Rendered Time.
string | $a_renderedtime | Rendered Time |
Definition at line 225 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setRenderMd5 | ( | $a_rendermd5 | ) |
Set Render MD5.
string | $a_rendermd5 | Render MD5 |
Definition at line 185 of file class.ilPageObject.php.
Referenced by read().
ilPageObject::setShowActivationInfo | ( | $a_val | ) |
Set show page activation info.
bool | $a_val | show page actication info |
Definition at line 285 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 949 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 1800 of file class.ilPageObject.php.
References $path, $res, xpath_eval(), and xpath_new_context().
Referenced by validateDom().
ilPageObject::switchEnableMultiple | ( | $a_hids, | |
$a_update = true , |
|||
$a_self_ass = false |
|||
) |
(De-)activate elements
Definition at line 3118 of file class.ilPageObject.php.
References checkForTag(), getContentNode(), getContentObject(), and update().
ilPageObject::update | ( | $a_validate = true , |
|
$a_no_history = false |
|||
) |
update complete page content in db (dom xml content is used)
Reimplemented in ilWikiPage, ilPortfolioPage, ilDataCollectionRecordViewViewdefinition, ilSCORM2004Page, and ilMediaPoolPage.
Definition at line 2420 of file class.ilPageObject.php.
References $errors, $ilCtrl, $ilLog, $ilUser, $lng, __afterHistoryEntry(), __afterUpdate(), checkPCIds(), containsDeactivatedElements(), containsIntLinks(), ilDatePresentation\formatDate(), getActivationEnd(), getActivationStart(), getActive(), getDomDoc(), getEditLock(), getEditLockInfo(), getId(), getLanguage(), ilUserUtil\getNamePresentation(), getParentId(), getParentType(), getShowActivationInfo(), getXMLFromDom(), IL_CAL_UNIX, ILIAS_VERSION_NUMERIC, insertPCIds(), ilUtil\now(), performAutomaticModifications(), and validateDom().
Referenced by deleteContent(), deleteContentBeforeHierId(), deleteContentFromHierId(), deleteContents(), moveContentAfter(), moveContentBefore(), pasteContents(), saveInitialOpenedContent(), and switchEnableMultiple().
ilPageObject::updateFromXML | ( | ) |
Updates page object with current xml content.
This function is currently (4.4.0 alpha) called by:
Definition at line 2331 of file class.ilPageObject.php.
References $ilUser, $lng, __afterUpdate(), buildDom(), containsDeactivatedElements(), containsIntLinks(), getActivationEnd(), getActivationStart(), getActive(), getDomDoc(), getId(), getLanguage(), getParentId(), getParentType(), getXMLContent(), and ilUtil\now().
ilPageObject::validateDom | ( | ) |
Validate the page content agains page DTD.
Definition at line 1605 of file class.ilPageObject.php.
References stripHierIDs().
Referenced by update().
ilPageObject::writeRenderedContent | ( | $a_content, | |
$a_md5 | |||
) |
Write rendered content.
Definition at line 4593 of file class.ilPageObject.php.
References getId(), getLanguage(), getParentType(), and ilUtil\now().
|
staticprotected |
Definition at line 67 of file class.ilPageObject.php.
ilPageObject::$contains_int_link |
Definition at line 57 of file class.ilPageObject.php.
Referenced by containsIntLink().
ilPageObject::$cur_dtd = "ilias_pg_4_4.dtd" |
Definition at line 56 of file class.ilPageObject.php.
ilPageObject::$dom |
Definition at line 52 of file class.ilPageObject.php.
Referenced by checkPCIds(), existsPCId(), getAllPCIds(), getDom(), getDomDoc(), getPageContentsHashes(), ilPortfolioTemplatePage\getPageDiskSize(), getQuestionIds(), insertPCIds(), and send_paragraph().
ilPageObject::$dom_builded |
Definition at line 64 of file class.ilPageObject.php.
ilPageObject::$encoding |
Definition at line 54 of file class.ilPageObject.php.
|
static |
Definition at line 48 of file class.ilPageObject.php.
ilPageObject::$history_saved |
Definition at line 65 of file class.ilPageObject.php.
ilPageObject::$id |
Definition at line 50 of file class.ilPageObject.php.
Referenced by addFileSizes(), ilDataCollectionRecordViewViewdefinition\create(), ilBlogPosting\create(), ilPortfolioPage\create(), ilWikiPage\create(), ilPortfolioPage\delete(), ilBlogPosting\deleteAllBlogPostings(), generatePcId(), getId(), getInitialOpenedContent(), getInternalLinks(), insertInstIntoIDs(), insertPCIds(), moveIntLinks(), and ilPortfolioPage\update().
ilPageObject::$ilias |
Definition at line 51 of file class.ilPageObject.php.
Referenced by ilPageObject().
ilPageObject::$language = "-" |
Definition at line 66 of file class.ilPageObject.php.
Referenced by getLanguage().
ilPageObject::$needs_parsing |
Definition at line 58 of file class.ilPageObject.php.
Referenced by needsImportParsing().
ilPageObject::$node |
Definition at line 55 of file class.ilPageObject.php.
Referenced by getAllPCIds(), getContentNode(), getNode(), ilPortfolioTemplatePage\getPageDiskSize(), insertPCIds(), saveInternalLinks(), saveStyleUsage(), and setParagraphContent().
ilPageObject::$offline_handler |
Definition at line 63 of file class.ilPageObject.php.
ilPageObject::$parent_id |
Definition at line 60 of file class.ilPageObject.php.
Referenced by getParentId().
ilPageObject::$parent_type |
Definition at line 59 of file class.ilPageObject.php.
ilPageObject::$update_listener_cnt |
Definition at line 62 of file class.ilPageObject.php.
Referenced by addUpdateListener(), and callUpdateListeners().
ilPageObject::$update_listeners |
Definition at line 61 of file class.ilPageObject.php.
ilPageObject::$xml |
Definition at line 53 of file class.ilPageObject.php.
Referenced by appendLangVarXML(), copyXmlContent(), ilSCORM2004Page\exportXMLPageContent(), getFO(), getLanguageVariablesXML(), getXMLContent(), getXMLFromDom(), and ilWikiPage\saveInternalLinks().