ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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="-") | |
setContentIdManager (\ILIAS\COPage\ID\ContentIdManager $content_id_manager) | |
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 () | |
getDomDoc () | |
Get dom doc (DOMDocument) More... | |
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... | |
getContentDomNode (string $a_hier_id, string $a_pc_id="") | |
getDomNodeForPCId (string $pc_id) | |
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) | |
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... | |
handleDeleteContent (?DOMNode $a_node=null, $move_operation=false) | |
Handle content before deletion This currently treats only plugged content If no node is given, then the whole dom will be scanned. More... | |
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, bool $offline=false) | |
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) | |
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 () | |
get all internal links that are used within the page More... | |
getMultimediaXML (bool $offline=false) | |
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 () | |
stripHierIDs () | |
stripPCIDs () | |
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... | |
handleRepositoryLinksOnCopy (array $a_mapping, int $a_source_ref_id) | |
Handle repository links on copy process. More... | |
setEmptyPageXml () | |
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... | |
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 (DOMNode $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... | |
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... | |
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... | |
generatePCId () | |
insertPCIds () | |
Insert Page Content IDs. More... | |
sendParagraph (string $par_id, string $filename) | |
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... | |
preparePageForCompare (ilPageObject $page) | |
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, bool $overwrite_existing=true) | |
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 () | |
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 | _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 | _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 |
DOMDocument | $dom = null |
string | $xml = "" |
string | $encoding = "" |
DomNode | $node |
string | $cur_dtd = "ilias_pg_9.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 | |
getIliasAbsolutePath () | |
getLangVarXML (string $var) | |
getLangVarXMLForValue (string $var, string $val) | |
__afterUpdate (DOMDocument $a_domdoc, string $a_xml, bool $a_creation=false, bool $a_empty=false) | |
After update event handler (internal). More... | |
isTranslationPage () | |
__beforeDelete () | |
Before deletion handler (internal). More... | |
__afterDelete () | |
afterDelete () | |
__afterHistoryEntry (DOMDocument $a_old_domdoc, string $a_old_content, int $a_old_nr) | |
getContentManager () | |
setCopyProperties (ilPageObject $new_page) | |
setTranslationProperties (self $transl_page) | |
Protected Attributes | |
ILIAS COPage Dom DomUtil | $dom_util |
ILIAS COPage Link LinkManager | $link |
ILIAS COPage PC PCDefinition | $pc_definition |
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 |
LOMServices | $lom_services |
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 = [] |
string | $activationstart = null |
string | $activationend = null |
ILIAS COPage ReadingTime ReadingTimeManager | $reading_time_manager |
$concrete_lang = "" | |
ILIAS COPage ID ContentIdManager | $content_id_manager |
ILIAS COPage Page PageManager | $page_manager |
ILIAS COPage Style StyleManager | $style_manager |
ILIAS COPage PC DomainService | $pc_service |
Static Protected Attributes | |
static array | $activation_data = array() |
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)
Definition at line 52 of file class.ilPageObject.php.
|
final |
Definition at line 110 of file class.ilPageObject.php.
References $DIC, afterConstructor(), ilLoggerFactory\getLogger(), getParentType(), initPageConfig(), ILIAS\Repository\link(), ILIAS\Repository\lng(), read(), setActive(), setLanguage(), and ILIAS\Repository\user().
|
finalprotected |
Definition at line 1690 of file class.ilPageObject.php.
|
finalprotected |
Definition at line 1699 of file class.ilPageObject.php.
|
finalprotected |
After update event handler (internal).
The hooks are e.g. for storing any dependent relations/references in the database.
Definition at line 1379 of file class.ilPageObject.php.
|
finalprotected |
Before deletion handler (internal).
Definition at line 1680 of file class.ilPageObject.php.
|
static |
Checks whether page exists.
string | $a_lang | language code, if empty language independent existence is checked |
Definition at line 335 of file class.ilPageObject.php.
Referenced by ilImprintGUI\__construct(), ilDclDetailedViewDefinitionGUI\__construct(), ilDashboardPageGUI\__construct(), ilInternalLink\_exists(), ilPageObjectGUI\checkLangPageAvailable(), ilObjContentObject\checkStructure(), ILIAS\Blog\Export\BlogHtmlExport\collectAllPagesPageElements(), ilObjectCopyGUI\copyParentPage(), ilObjForum\delete(), ilObjMediaPool\deleteChild(), assQuestion\deletePageOfQuestion(), ilObjContentPage\doCloneObject(), ilObjContentPage\doDelete(), ILIAS\ContentPage\PageMetrics\PageMetricsService\doesPageExistsForLanguage(), ilContentPagePageCommandForwarder\doesPageExistsForLanguage(), ilForumPageCommandForwarder\doesPageExistsForLanguage(), ilAssQuestionFeedback\ensurePageObjectDeleted(), ilAssQuestionFeedbackPageObjectCommandForwarder\ensurePageObjectExists(), ilAssQuestionFeedback\ensurePageObjectExists(), ilContainerStartObjectsGUI\executeCommand(), ilLOEditorGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), ilObjectCopyGUI\executeNextStepAfterSourceSelection(), ILIAS\LearningModule\Export\LMHtmlExport\exportHTMLPages(), ILIAS\Portfolio\Export\PortfolioHtmlExport\exportHTMLPages(), ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPages(), ILIAS\Portfolio\Export\PortfolioHtmlExport\exportHTMLPagesPrint(), ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPagesPrint(), ilObjContentObject\exportXMLPageObjects(), ilLearningModuleImporter\finalProcessing(), ilObjContentObject\fixTree(), ilContainerGUI\forwardToPageObject(), ilPageMultiLang\getEffectiveLang(), ilLMPresentationGUI\getLMPage(), ilLMContentRendererGUI\getLMPageGUI(), ilLMPresentationGUI\getLMPageGUI(), ilContainerExporter\getXmlExportTailDependencies(), ilLearningSequenceExporter\getXmlExportTailDependencies(), ilPCQuestion\handleCopiedContent(), ilObjLearningSequence\hasContentPage(), ilQuestionPageParser\processPagesToParse(), ilObjContentObject\validatePages(), and ilContainerXmlWriter\writeSubitems().
|
static |
Checks whether page exists and is not empty (may return true on some empty pages)
Definition at line 369 of file class.ilPageObject.php.
Referenced by ilDashboardPageGUI\isLanguageAvailable().
|
static |
Check whether page is activated by time schedule.
Definition at line 552 of file class.ilPageObject.php.
Referenced by ilLMPagesTableGUI\fillRow(), ILIAS\LearningModule\Editing\SubObjectRetrieval\getData(), ilLMEditorExplorerGUI\getNodeIcon(), and ilLMTOCExplorerGUI\getNodeIcon().
|
static |
Lookup activation data.
Definition at line 614 of file class.ilPageObject.php.
Referenced by ilLMNavigationStatus\determineStatus(), ilLMNavigationStatus\getPredecessorPageId(), ilLMNavigationStatus\getSuccessorPageId(), and ilLMContentRendererGUI\renderDeactivatedPageMessage().
|
static |
lookup activation status
Definition at line 508 of file class.ilPageObject.php.
Referenced by ilDclDetailedViewDefinitionGUI\__construct(), ilObjContentObjectGUI\activatePages(), ILIAS\LearningModule\Editing\EditSubObjectsGUI\activatePages(), ilLMNavigationRendererGUI\addDropdown(), ILIAS\Blog\Permission\PermissionManager\canReadPosting(), ilObjBlog\deliverRSS(), ilLMNavigationStatus\determineStatus(), ilLMPagesTableGUI\fillRow(), ilObjBlogGUI\filterInactivePostings(), ILIAS\LearningModule\Editing\SubObjectRetrieval\getData(), ilDclTextRecordRepresentation\getHTML(), ilLPStatusVisitedPages\getLMPages(), ilLMTOCExplorerGUI\getNodeHref(), ilLMEditorExplorerGUI\getNodeIcon(), ilLMTOCExplorerGUI\getNodeIcon(), ilLMEditorExplorerGUI\getNodeIconAlt(), ilLMNavigationStatus\getPredecessorPageId(), ilLMNavigationStatus\getSuccessorPageId(), ilBlogDraftsDerivedTaskProvider\getTasks(), ilImprint\isActive(), ILIAS\Blog\Permission\PermissionManager\isActive(), ilLMTOCExplorerGUI\isNodeClickable(), ilObjBlogGUI\renderNavigationByDate(), ilLMPresentationGUI\showPrintView(), and ilLMPresentationGUI\showPrintViewSelection().
|
static |
lookup whether page contains deactivated elements
Definition at line 2047 of file class.ilPageObject.php.
Referenced by ilLMPagesTableGUI\fillRow(), ILIAS\LearningModule\Editing\SubObjectRetrieval\getData(), ilLMEditorExplorerGUI\getNodeIcon(), and ilLMEditorExplorerGUI\getNodeIconAlt().
|
static |
write activation status
Definition at line 590 of file class.ilPageObject.php.
Referenced by ilObjContentObjectGUI\activatePages(), and ILIAS\LearningModule\Editing\EditSubObjectsGUI\activatePages().
|
static |
Definition at line 663 of file class.ilPageObject.php.
References $DIC, and ilDBInterface\manipulateF().
Referenced by ilBlogImporter\finalProcessing(), ilContainerImporter\finalProcessing(), ilContentPageImporter\finalProcessing(), ilForumImporter\finalProcessing(), ilLearningModuleImporter\finalProcessing(), ilLearningSequenceImporter\finalProcessing(), ilMediaPoolImporter\finalProcessing(), ilPortfolioImporter\finalProcessing(), and ilWikiImporter\finalProcessing().
ilPageObject::addFileSizes | ( | ) |
add file sizes
Definition at line 1178 of file class.ilPageObject.php.
ilPageObject::addHierIDs | ( | ) |
Add hierarchical ID (e.g.
for editing) attributes "HierId" to current dom tree.
Definition at line 1129 of file class.ilPageObject.php.
Referenced by ilContainerPage\addRepositoryBlockToPage(), ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand(), PCInteractiveImageTest\getInteractiveImageInPage(), ilPCParagraph\getLastSavedPCId(), PCMediaObjectTest\getMediaObjectInPage(), ILIAS\COPage\Compare\PageCompare\getPageContentsHashes(), ILIAS\COPage\ID\ContentIdManager\getPCIdsForHierIds(), PCTabsTest\getTabsWithTabs(), COPageTestBase\insertParagraphAt(), and ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\mergePrevious().
ilPageObject::addUpdateListener | ( | object | $a_object, |
string | $a_method, | ||
$a_parameters = "" |
|||
) |
mixed | $a_parameters |
Definition at line 447 of file class.ilPageObject.php.
ilPageObject::afterConstructor | ( | ) |
Reimplemented in ilBlogPosting, ilDashboardPage, ilLMPage, ilPortfolioPage, and ilWikiPage.
Definition at line 177 of file class.ilPageObject.php.
Referenced by __construct().
|
protected |
Reimplemented in ilLMPage.
Definition at line 1695 of file class.ilPageObject.php.
ilPageObject::afterUpdate | ( | DOMDocument | $domdoc, |
string | $xml | ||
) |
After update.
Reimplemented in ilLMPage, and ilWikiPage.
Definition at line 1416 of file class.ilPageObject.php.
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 780 of file class.ilPageObject.php.
ilPageObject::assignCharacteristic | ( | array | $targets, |
string | $char_par, | ||
string | $char_sec, | ||
string | $char_med | ||
) |
Assign characteristic.
Definition at line 3049 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.
Reimplemented in ilGlossaryDefPage, and ilLMPage.
Definition at line 2601 of file class.ilPageObject.php.
Referenced by ilPCParagraph\updatePage().
ilPageObject::buildDom | ( | bool | $a_force = false | ) |
Definition at line 380 of file class.ilPageObject.php.
References $path, ILIAS\Survey\Mode\getId(), and getLanguage().
Referenced by ilContainerPage\addMissingContainerBlocks(), ILIAS\COPage\ID\ContentIdManager\checkPCIds(), ILIAS\COPage\ID\ContentIdManager\getAllPCIds(), ILIAS\COPage\Compare\PageCompare\getPageContentsHashes(), ilQuestionPageParser\processPagesToParse(), ilContainerPage\removeUnsupportedBlockIds(), and ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime().
ilPageObject::callUpdateListeners | ( | ) |
Definition at line 459 of file class.ilPageObject.php.
ilPageObject::checkPCIds | ( | ) |
Check, whether (all) page content hashes are set.
Definition at line 1983 of file class.ilPageObject.php.
ilPageObject::collectMediaObjects | ( | bool | $a_inline_only = true | ) |
get all media objects, that are referenced and used within the page
Definition at line 1073 of file class.ilPageObject.php.
ilPageObject::containsDeactivatedElements | ( | string | $a_content | ) |
Check whether content contains deactivated elements.
Definition at line 2077 of file class.ilPageObject.php.
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 1031 of file class.ilPageObject.php.
ilPageObject::containsIntLinks | ( | string | $a_content | ) |
Check whether content contains internal links.
Definition at line 2552 of file class.ilPageObject.php.
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 , |
||
bool | $overwrite_existing = true |
||
) |
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 2613 of file class.ilPageObject.php.
ilPageObject::copyContents | ( | array | $a_hids | ) |
Copy contents to clipboard.
Definition at line 1851 of file class.ilPageObject.php.
References ILIAS\Repository\user().
ilPageObject::copyPageToTranslation | ( | string | $a_target_lang | ) |
Copy page to translation.
Definition at line 2687 of file class.ilPageObject.php.
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 815 of file class.ilPageObject.php.
ilPageObject::create | ( | bool | $a_import = false | ) |
create new page (with current xml data)
Reimplemented in ilBlogPosting, ilPortfolioPage, and ilWikiPage.
Definition at line 1786 of file class.ilPageObject.php.
ilPageObject::createFromXML | ( | ) |
Create new page object with current xml content.
Reimplemented in ilWikiPage.
Definition at line 1290 of file class.ilPageObject.php.
References ILIAS\Survey\Mode\getId(), getLanguage(), ilUtil\now(), and ILIAS\Repository\user().
Referenced by ilTestPage\createPageWithNextId().
ilPageObject::cutContents | ( | array | $a_hids | ) |
Copy contents to clipboard and cut them from the page.
ilDateTimeException |
Definition at line 1837 of file class.ilPageObject.php.
ilPageObject::delete | ( | ) |
Reimplemented in ilBlogPosting, ilPortfolioPage, and ilWikiPage.
Definition at line 1588 of file class.ilPageObject.php.
References ilObjMediaObject\_deleteAllUsages(), ilObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObject\_lookupType(), ilNewsItem\deleteNewsOfContext(), ILIAS\Survey\Mode\getId(), getLanguage(), and ilLoggerFactory\getLogger().
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 1797 of file class.ilPageObject.php.
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 1818 of file class.ilPageObject.php.
Referenced by ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand(), ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\deleteCommand(), and ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\mergePrevious().
ilPageObject::deleteInternalLinks | ( | ) |
Delete internal links.
Definition at line 1765 of file class.ilPageObject.php.
References ILIAS\Repository\link().
ilPageObject::deleteStyleUsages | ( | int | $a_old_nr = 0 | ) |
Delete style usages.
Definition at line 1738 of file class.ilPageObject.php.
ilPageObject::freeDom | ( | ) |
Definition at line 411 of file class.ilPageObject.php.
ilPageObject::generatePCId | ( | ) |
Definition at line 2010 of file class.ilPageObject.php.
ilPageObject::getActivationEnd | ( | ) |
Definition at line 704 of file class.ilPageObject.php.
ilPageObject::getActivationStart | ( | ) |
Definition at line 687 of file class.ilPageObject.php.
ilPageObject::getActive | ( | bool | $a_check_scheduled_activation = false | ) |
Definition at line 474 of file class.ilPageObject.php.
References ilDateTime\_after(), ilDateTime\_before(), IL_CAL_DATETIME, and IL_CAL_UNIX.
Referenced by ILIAS\Blog\News\NewsManager\handle().
|
static |
Get all pages for parent object.
Definition at line 2285 of file class.ilPageObject.php.
References ilDBInterface\quote().
Referenced by ilForumPageCollector\getAllPageIds(), ilContentPagePageCollector\getAllPageIds(), ilLearningModulePageCollector\getAllPageIds(), and ilCourseExporter\getXmlExportTailDependencies().
ilPageObject::getAllPCIds | ( | ) |
Get all pc ids.
Definition at line 1991 of file class.ilPageObject.php.
Referenced by ilDclDetailedViewDefinition\isActive().
ilPageObject::getConcreteLang | ( | ) |
Definition at line 213 of file class.ilPageObject.php.
ilPageObject::getContainsQuestion | ( | ) |
Definition at line 1063 of file class.ilPageObject.php.
ilPageObject::getContentDomNode | ( | string | $a_hier_id, |
string | $a_pc_id = "" |
||
) |
Definition at line 753 of file class.ilPageObject.php.
Referenced by PCGridTest\getCellForHierId(), PCFileListTest\getItemForHierId(), PCListTest\getItemForHierId(), PCTabsTest\getTabForHierId(), and PCTableDataTest\getTDForHierId().
|
protected |
Definition at line 2567 of file class.ilPageObject.php.
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.
Referenced by ilPCParagraph\insert(), and ilPCParagraph\saveJS().
ilPageObject::getContentObjectForPcId | ( | string | $pcid | ) |
Get content object for pc id.
Definition at line 727 of file class.ilPageObject.php.
Referenced by ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand(), ilPCTableModelProvider\getModels(), and ilDclDetailedViewDefinition\isActive().
ilPageObject::getContentTemplates | ( | ) |
Get content templates.
Reimplemented in ilWikiPage.
Definition at line 2940 of file class.ilPageObject.php.
ilPageObject::getCreationUserId | ( | ) |
Definition at line 283 of file class.ilPageObject.php.
ilPageObject::getDomDoc | ( | ) |
Get dom doc (DOMDocument)
Definition at line 419 of file class.ilPageObject.php.
Referenced by ilPageContentGUI\__construct(), ilPageContent\__construct(), ilContainerPage\addRepositoryBlockToPage(), ILIAS\COPage\ID\ContentIdManager\checkPCIds(), ILIAS\COPage\ID\ContentIdManager\getAllPCIds(), ILIAS\COPage\PC\Paragraph\ParagraphManager\getFirstParagraphText(), ILIAS\COPage\Compare\PageCompare\getPageContentsHashes(), ILIAS\COPage\PC\Paragraph\ParagraphManager\getParagraphForPCID(), ILIAS\COPage\ID\ContentIdManager\getPCIdsForHierIds(), and ilContainerPage\removeUnsupportedBlockIds().
ilPageObject::getDomNodeForPCId | ( | string | $pc_id | ) |
Definition at line 759 of file class.ilPageObject.php.
ilPageObject::getDuplicatePCIds | ( | ) |
Get all duplicate PC Ids.
Definition at line 2005 of file class.ilPageObject.php.
ilPageObject::getEditLock | ( | ) |
Get page lock.
Definition at line 2718 of file class.ilPageObject.php.
References ilDBInterface\fetchAssoc(), ilObject\getId(), ilDBInterface\manipulate(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getEditLockInfo | ( | ) |
Get edit lock info.
Definition at line 2790 of file class.ilPageObject.php.
References ilDBInterface\fetchAssoc(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getEffectiveEditLockTime | ( | ) |
Definition at line 2974 of file class.ilPageObject.php.
References ILIAS\Repository\int().
ilPageObject::getFirstParagraphText | ( | ) |
Definition at line 1003 of file class.ilPageObject.php.
ilPageObject::getHierIdForPcId | ( | string | $pcid | ) |
Definition at line 1157 of file class.ilPageObject.php.
Referenced by ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand(), and ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\mergePrevious().
ilPageObject::getHierIds | ( | ) |
Definition at line 1134 of file class.ilPageObject.php.
ilPageObject::getHierIdsForPCIds | ( | array | $a_pc_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1152 of file class.ilPageObject.php.
Referenced by ilPCMediaObjectGUI\__construct(), ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\getFullIdForPCId(), ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\getIdForPCId(), and ilPCParagraph\getLastSavedPCId().
ilPageObject::getHistoryEntries | ( | ) |
Get History Entries.
Definition at line 2088 of file class.ilPageObject.php.
References ilDBInterface\fetchAssoc(), ILIAS\Survey\Mode\getId(), getLanguage(), ILIAS\Repository\int(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getHistoryEntry | ( | int | $a_old_nr | ) |
Get History Entry.
Definition at line 2113 of file class.ilPageObject.php.
References $res, ilDBInterface\fetchAssoc(), ILIAS\Survey\Mode\getId(), getLanguage(), 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 2138 of file class.ilPageObject.php.
References $res, ilDBInterface\fetchAssoc(), getLanguage(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::getId | ( | ) |
Definition at line 429 of file class.ilPageObject.php.
References $id.
Referenced by ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilLMPage\afterUpdate(), ilPCContentInclude\beforePageDelete(), ilTestPage\createPageWithNextId(), ilDclDetailedViewDefinition\getAvailablePlaceholders(), ILIAS\COPage\ReadingTime\ReadingTimeManager\getTime(), ilMediaPoolPage\getUsages(), ILIAS\Blog\News\NewsManager\handle(), ilWikiStat\handlePageDeletion(), ilDclDetailedViewDefinition\isActive(), ILIAS\COPage\PC\MediaObject\MediaObjectManager\resolveMediaAliases(), ilPCParagraph\saveMetaKeywords(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), and ilPCSection\saveTimings().
|
protected |
Reimplemented in ilUnitTestPageObject.
Definition at line 805 of file class.ilPageObject.php.
ilPageObject::getImportMode | ( | ) |
Definition at line 1041 of file class.ilPageObject.php.
ilPageObject::getInitialOpenedContent | ( | ) |
Get initial opened content.
Definition at line 2589 of file class.ilPageObject.php.
ilPageObject::getInternalLinks | ( | ) |
get all internal links that are used within the page
Definition at line 1082 of file class.ilPageObject.php.
References ILIAS\Repository\link().
ilPageObject::getLanguage | ( | ) |
Definition at line 198 of file class.ilPageObject.php.
Referenced by ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilPCContentInclude\beforePageDelete(), ILIAS\COPage\ReadingTime\ReadingTimeManager\getTime(), and ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime().
ilPageObject::getLanguageVariablesXML | ( | int | $style_id = 0 | ) |
Get language variables as XML.
Definition at line 903 of file class.ilPageObject.php.
References $txt.
|
protected |
Definition at line 989 of file class.ilPageObject.php.
References ILIAS\Repository\lng().
|
protected |
Definition at line 997 of file class.ilPageObject.php.
ilPageObject::getLastChange | ( | ) |
Definition at line 258 of file class.ilPageObject.php.
|
static |
Get all pages for parent object.
Definition at line 2948 of file class.ilPageObject.php.
References ilDBInterface\quote().
Referenced by ilWikiUserHTMLExport\getProcess().
ilPageObject::getLastChangeUser | ( | ) |
Definition at line 268 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 1748 of file class.ilPageObject.php.
References ilObject\_getLastUpdateOfObjects(), ilObjMediaObject\_getMobsOfObject(), and ILIAS\Survey\Mode\getId().
ilPageObject::getMediaAliasElement | ( | int | $a_mob_id, |
int | $a_nr = 1 |
||
) |
get complete media object (alias) element
Definition at line 1101 of file class.ilPageObject.php.
ilPageObject::getMultimediaXML | ( | bool | $offline = false | ) |
get a xml string that contains all media object elements, that are referenced by any media alias in the page
Definition at line 1091 of file class.ilPageObject.php.
|
static |
Get new pages.
Definition at line 2322 of file class.ilPageObject.php.
References ilDBInterface\quote().
ilPageObject::getOfflineHandler | ( | ) |
Definition at line 2039 of file class.ilPageObject.php.
ilPageObject::getPageConfig | ( | ) |
Definition at line 218 of file class.ilPageObject.php.
Referenced by ilLMPage\afterConstructor(), and ilWikiPage\afterConstructor().
|
static |
Get all contributors for parent object.
Definition at line 2428 of file class.ilPageObject.php.
References ilDBInterface\quote().
Referenced by ilBlogPostingGUI\getPageHeading(), and ILIAS\Blog\News\NewsManager\handle().
|
static |
Get all pages for parent object that contain internal links.
Definition at line 2514 of file class.ilPageObject.php.
References ilDBInterface\quote().
ilPageObject::getParagraphForPCID | ( | string | $pcid | ) |
Definition at line 1008 of file class.ilPageObject.php.
ilPageObject::getParentContentObjectForPcId | ( | string | $pcid | ) |
Get parent content object for pc id.
Definition at line 736 of file class.ilPageObject.php.
Referenced by ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand().
ilPageObject::getParentId | ( | ) |
Definition at line 439 of file class.ilPageObject.php.
Referenced by ilLMPage\afterConstructor(), ilWikiPage\afterConstructor(), ilLMPage\afterDelete(), ilLMPage\afterUpdate(), ilGlossaryDefPage\beforePageContentUpdate(), ilLMPage\beforePageContentUpdate(), ilBlogPosting\getBlogId(), ilWikiPage\getWikiId(), and ilPCParagraph\saveMetaKeywords().
|
static |
Get all contributors for parent object.
string | $a_parent_type | Parent Type |
int | $a_parent_id | Parent ID |
Definition at line 2362 of file class.ilPageObject.php.
References ilDBInterface\quote().
|
abstract |
Reimplemented in ilLoginPage, ilLogoutPage, ilBlogPosting, ilContainerPage, ilContainerStartObjectsPage, ilContentPagePage, ilPageLayoutPage, ilUnitTestPageObject, ilLOPage, ilDashboardPage, ilDclDetailedViewDefinition, ilForumPage, ilGlossaryDefPage, ilImprint, ilLMPage, ilLSOExtroPage, ilLSOIntroPage, ilMediaPoolPage, ilPortfolioPage, ilPortfolioTemplatePage, ilTestPage, ilAssQuestionPage, ilAssGenFeedbackPage, ilAssSpecFeedbackPage, and ilWikiPage.
Referenced by __construct(), ilPCFileList\afterPageUpdate(), ilPCMediaObject\afterPageUpdate(), ilPCContentInclude\beforePageDelete(), ILIAS\COPage\ReadingTime\ReadingTimeManager\getTime(), ILIAS\COPage\PC\MediaObject\MediaObjectManager\resolveMediaAliases(), ilPCParagraph\saveMetaKeywords(), ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime(), and ilPCSection\saveTimings().
ilPageObject::getPCIdForHierId | ( | string | $hier_id | ) |
Definition at line 1170 of file class.ilPageObject.php.
Referenced by PCGridTest\getCellForHierId(), PCInteractiveImageTest\getInteractiveImageInPage(), PCFileListTest\getItemForHierId(), PCListTest\getItemForHierId(), PCMediaObjectTest\getMediaObjectInPage(), PCTabsTest\getTabForHierId(), and PCTableDataTest\getTDForHierId().
ilPageObject::getPCIdsForHierIds | ( | array | $hier_ids | ) |
Get hier ids for a set of pc ids.
Definition at line 1165 of file class.ilPageObject.php.
ilPageObject::getPCModel | ( | ) |
Get page component model.
Definition at line 3007 of file class.ilPageObject.php.
|
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 2222 of file class.ilPageObject.php.
References ilDBInterface\quote().
ilPageObject::getRenderedContent | ( | ) |
Definition at line 238 of file class.ilPageObject.php.
ilPageObject::getRenderedTime | ( | ) |
Definition at line 248 of file class.ilPageObject.php.
ilPageObject::getRenderMd5 | ( | ) |
Definition at line 228 of file class.ilPageObject.php.
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 2998 of file class.ilPageObject.php.
ilPageObject::getShowActivationInfo | ( | ) |
Definition at line 278 of file class.ilPageObject.php.
ilPageObject::getXMLContent | ( | bool | $a_incl_head = false | ) |
get xml content of page
Definition at line 788 of file class.ilPageObject.php.
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 , |
||
bool | $offline = false |
||
) |
get xml content of page from dom (use this, if any changes are made to the document)
Definition at line 850 of file class.ilPageObject.php.
Referenced by ILIAS\COPage\ReadingTime\ReadingTimeManager\saveTime().
ilPageObject::handleDeleteContent | ( | ?DOMNode | $a_node = null , |
$move_operation = false |
|||
) |
Handle content before deletion This currently treats only plugged content If no node is given, then the whole dom will be scanned.
DOMNode | null | $a_node |
Definition at line 840 of file class.ilPageObject.php.
ilPageObject::handleRepositoryLinksOnCopy | ( | array | $a_mapping, |
int | $a_source_ref_id | ||
) |
Handle repository links on copy process.
Definition at line 1263 of file class.ilPageObject.php.
ilPageObject::hasDuplicatePCIds | ( | ) |
Definition at line 1996 of file class.ilPageObject.php.
ilPageObject::increaseViewCnt | ( | ) |
Increase view cnt.
Definition at line 2205 of file class.ilPageObject.php.
References ilDBInterface\manipulate(), and ilDBInterface\quote().
ilPageObject::initPageConfig | ( | ) |
Reimplemented in ilUnitTestPageObject.
Definition at line 183 of file class.ilPageObject.php.
References ilPageObjectFactory\getConfigInstance().
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 1900 of file class.ilPageObject.php.
Referenced by ilPCLearningHistory\create().
ilPageObject::insertContentNode | ( | DOMNode | $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 1921 of file class.ilPageObject.php.
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 1972 of file class.ilPageObject.php.
ilPageObject::insertPCIds | ( | ) |
Insert Page Content IDs.
Definition at line 2018 of file class.ilPageObject.php.
Referenced by PCInteractiveImageTest\getInteractiveImageInPage(), PCMediaObjectTest\getMediaObjectInPage(), and PCTabsTest\getTabForHierId().
|
protected |
Definition at line 1672 of file class.ilPageObject.php.
References getLanguage().
|
static |
Definition at line 651 of file class.ilPageObject.php.
References $DIC, $res, ilDBInterface\fetchAssoc(), ilDBInterface\query(), and ilDBInterface\quote().
Referenced by ilLMContentRendererGUI\determineStatus(), and ilLMPageGUI\processAnswer().
|
static |
Lookup translations.
Definition at line 2664 of file class.ilPageObject.php.
Referenced by ilObjContentPage\doCloneObject(), ilContentPageImporter\finalProcessing(), ilCOPageExporter\getXmlRepresentation(), 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 1949 of file class.ilPageObject.php.
Referenced by ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand().
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 1249 of file class.ilPageObject.php.
References ILIAS\Repository\link().
ilPageObject::needsImportParsing | ( | ?bool | $a_parse = null | ) |
Definition at line 1046 of file class.ilPageObject.php.
ilPageObject::pasteContents | ( | string | $a_hier_id, |
bool | $a_self_ass = false |
||
) |
Paste contents from pc clipboard.
ilDateTimeException |
Definition at line 1862 of file class.ilPageObject.php.
ilPageObject::performAutomaticModifications | ( | ) |
Perform automatic modifications (may be overwritten by sub classes)
Definition at line 2563 of file class.ilPageObject.php.
|
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().
ilPageObject::preparePageForCompare | ( | ilPageObject | $page | ) |
Reimplemented in ilWikiPage.
Definition at line 2198 of file class.ilPageObject.php.
ilPageObject::read | ( | ) |
Read page data.
Reimplemented in ilBlogPosting, and ilPortfolioPage.
Definition at line 291 of file class.ilPageObject.php.
References getLanguage(), and ILIAS\Repository\int().
Referenced by __construct(), and ilWikiPage\createFromXML().
ilPageObject::registerOfflineHandler | ( | object | $handler | ) |
Definition at line 2034 of file class.ilPageObject.php.
References $handler.
ilPageObject::releasePageLock | ( | ) |
Release page lock.
Definition at line 2754 of file class.ilPageObject.php.
References ilDBInterface\fetchAssoc(), ilObject\getId(), ILIAS\Repository\int(), ilDBInterface\manipulate(), ilDBInterface\query(), and ilDBInterface\quote().
ilPageObject::resolveFileItems | ( | array | $a_mapping | ) |
Resolve file items (after import)
Definition at line 1223 of file class.ilPageObject.php.
ilPageObject::resolveIIMMediaAliases | ( | array | $a_mapping | ) |
Resolve iim media aliases (in ilContObjParse)
Definition at line 1211 of file class.ilPageObject.php.
ilPageObject::resolveIntLinks | ( | ?array | $a_link_map = null | ) |
Resolves all internal link targets of the page, if targets are available (after import)
Definition at line 1187 of file class.ilPageObject.php.
References ILIAS\Repository\link().
Referenced by ilQuestionPageParser\processPagesToParse().
ilPageObject::resolveMediaAliases | ( | array | $a_mapping, |
bool | $a_reuse_existing_by_import = false |
||
) |
Resolve media aliases (after import)
Definition at line 1196 of file class.ilPageObject.php.
ilPageObject::resolveQuestionReferences | ( | array | $a_mapping | ) |
Resolve all quesiont references (after import)
Definition at line 1235 of file class.ilPageObject.php.
ilPageObject::resolveResources | ( | array | $ref_mapping | ) |
Resolve resources.
Definition at line 2990 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 2576 of file class.ilPageObject.php.
ilPageObject::saveInternalLinks | ( | DOMDocument | $a_domdoc | ) |
save internal links of page
Reimplemented in ilWikiPage.
Definition at line 1775 of file class.ilPageObject.php.
References ILIAS\Repository\link().
ilPageObject::saveStyleUsage | ( | DOMDocument | $a_domdoc, |
int | $a_old_nr = 0 |
||
) |
Save all style class/template usages.
Definition at line 1724 of file class.ilPageObject.php.
ilPageObject::sendParagraph | ( | string | $par_id, |
string | $filename | ||
) |
Definition at line 2023 of file class.ilPageObject.php.
ilPageObject::setActivationEnd | ( | ?string | $a_activationend | ) |
Set Activation End.
string | $a_activationend | IL_CAL_DATETIME format |
Definition at line 696 of file class.ilPageObject.php.
ilPageObject::setActivationStart | ( | ?string | $a_activationstart | ) |
string | $a_activationstart | IL_CAL_DATETIME format |
Definition at line 679 of file class.ilPageObject.php.
ilPageObject::setActive | ( | bool | $a_active | ) |
Definition at line 469 of file class.ilPageObject.php.
Referenced by __construct().
ilPageObject::setConcreteLang | ( | string | $a_val | ) |
Definition at line 208 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 1021 of file class.ilPageObject.php.
ilPageObject::setContainsQuestion | ( | bool | $a_val | ) |
Definition at line 1058 of file class.ilPageObject.php.
ilPageObject::setContentIdManager | ( | \ILIAS\COPage\ID\ContentIdManager | $content_id_manager | ) |
Definition at line 171 of file class.ilPageObject.php.
|
protected |
Reimplemented in ilWikiPage.
Definition at line 2656 of file class.ilPageObject.php.
ilPageObject::setEmptyPageXml | ( | ) |
Definition at line 1282 of file class.ilPageObject.php.
ilPageObject::setId | ( | int | $a_id | ) |
Definition at line 424 of file class.ilPageObject.php.
Referenced by ilWikiPage\create(), and ilTestPage\createPageWithNextId().
ilPageObject::setImportMode | ( | bool | $a_val | ) |
Definition at line 1036 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 193 of file class.ilPageObject.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language().
Referenced by __construct(), and ilPCParagraph\insert().
ilPageObject::setLastChange | ( | string | $a_lastchange | ) |
Definition at line 253 of file class.ilPageObject.php.
ilPageObject::setLastChangeUser | ( | int | $a_val | ) |
Definition at line 263 of file class.ilPageObject.php.
ilPageObject::setPageConfig | ( | ilPageConfig | $a_val | ) |
Definition at line 203 of file class.ilPageObject.php.
Referenced by ilUnitTestPageObject\initPageConfig().
ilPageObject::setParentId | ( | int | $a_id | ) |
Definition at line 434 of file class.ilPageObject.php.
Referenced by ilBlogPosting\setBlogId(), and ilWikiPage\setWikiId().
ilPageObject::setRenderedContent | ( | string | $a_renderedcontent | ) |
Definition at line 233 of file class.ilPageObject.php.
ilPageObject::setRenderedTime | ( | string | $a_renderedtime | ) |
Definition at line 243 of file class.ilPageObject.php.
ilPageObject::setRenderMd5 | ( | string | $a_rendermd5 | ) |
Definition at line 223 of file class.ilPageObject.php.
ilPageObject::setShowActivationInfo | ( | bool | $a_val | ) |
Definition at line 273 of file class.ilPageObject.php.
|
protected |
Definition at line 2700 of file class.ilPageObject.php.
References ILIAS\Survey\Mode\getId().
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 770 of file class.ilPageObject.php.
ilPageObject::stripHierIDs | ( | ) |
Definition at line 1139 of file class.ilPageObject.php.
Referenced by ilPCParagraph\getLastSavedPCId().
ilPageObject::stripPCIDs | ( | ) |
Definition at line 1144 of file class.ilPageObject.php.
ilPageObject::switchEnableMultiple | ( | array | $a_hids, |
bool | $a_update = true , |
||
bool | $a_self_ass = false |
||
) |
|
static |
Truncate (html) string.
Definition at line 2812 of file class.ilPageObject.php.
References ilStr\shortenText().
Referenced by ilLearningModuleNotification\getPreviewText().
ilPageObject::update | ( | bool | $a_validate = true , |
bool | $a_no_history = false |
||
) |
update complete page content in db (dom xml content is used)
ilDateTimeException | |
ilWACException |
Reimplemented in ilUnitTestPageObject, ilPortfolioPage, and ilWikiPage.
Definition at line 1426 of file class.ilPageObject.php.
References $lm_set, ilDatePresentation\formatDate(), ILIAS\Survey\Mode\getId(), getLanguage(), ilUserUtil\getNamePresentation(), IL_CAL_UNIX, ILIAS_VERSION_NUMERIC, ILIAS\Repository\lng(), ilUtil\now(), and ILIAS\Repository\user().
Referenced by ilContainerPage\addRepositoryBlockToPage(), ILIAS\COPage\PC\Paragraph\ParagraphCommandActionHandler\cancelCommand(), ilQuestionPageParser\processPagesToParse(), ilContainerPage\removeUnsupportedBlockIds(), and ilPCParagraph\updatePage().
ilPageObject::updateFromXML | ( | ) |
Updates page object with current xml content This function is currently (8 beta) called by:
Definition at line 1335 of file class.ilPageObject.php.
References ILIAS\Survey\Mode\getId(), getLanguage(), ilUtil\now(), and ILIAS\Repository\user().
ilPageObject::validateDom | ( | bool | $throw = false | ) |
Validate the page content agains page DTD.
Definition at line 1114 of file class.ilPageObject.php.
ilPageObject::writeRenderedContent | ( | string | $a_content, |
string | $a_md5 | ||
) |
Write rendered content.
Definition at line 2492 of file class.ilPageObject.php.
|
staticprotected |
Definition at line 88 of file class.ilPageObject.php.
|
protected |
Definition at line 102 of file class.ilPageObject.php.
|
protected |
Definition at line 101 of file class.ilPageObject.php.
|
protected |
Definition at line 92 of file class.ilPageObject.php.
|
protected |
Definition at line 104 of file class.ilPageObject.php.
bool ilPageObject::$contains_int_link = false |
Definition at line 78 of file class.ilPageObject.php.
|
protected |
Definition at line 99 of file class.ilPageObject.php.
|
protected |
Definition at line 105 of file class.ilPageObject.php.
|
protected |
Definition at line 57 of file class.ilPageObject.php.
string ilPageObject::$cur_dtd = "ilias_pg_9.dtd" |
Definition at line 77 of file class.ilPageObject.php.
|
protected |
Definition at line 67 of file class.ilPageObject.php.
Referenced by ilWikiPage\createFromXML().
DOMDocument ilPageObject::$dom = null |
Definition at line 73 of file class.ilPageObject.php.
bool ilPageObject::$dom_builded = false |
Definition at line 85 of file class.ilPageObject.php.
|
protected |
Definition at line 54 of file class.ilPageObject.php.
string ilPageObject::$encoding = "" |
Definition at line 75 of file class.ilPageObject.php.
|
static |
Definition at line 66 of file class.ilPageObject.php.
|
protected |
Definition at line 100 of file class.ilPageObject.php.
bool ilPageObject::$history_saved = false |
Definition at line 86 of file class.ilPageObject.php.
|
protected |
Definition at line 72 of file class.ilPageObject.php.
Referenced by ilContainerPage\addRepositoryBlockToPage(), ilWikiPage\create(), ilDclDetailedViewDefinition\exists(), ilDclDetailedViewDefinition\isActive(), and ilContainerPage\removeUnsupportedBlockIds().
|
protected |
Definition at line 61 of file class.ilPageObject.php.
|
protected |
Definition at line 89 of file class.ilPageObject.php.
|
protected |
Definition at line 87 of file class.ilPageObject.php.
int ilPageObject::$last_change_user = 0 |
Definition at line 98 of file class.ilPageObject.php.
|
protected |
Definition at line 97 of file class.ilPageObject.php.
|
protected |
Definition at line 55 of file class.ilPageObject.php.
|
protected |
Definition at line 69 of file class.ilPageObject.php.
Referenced by ilPortfolioPage\getTitle().
|
protected |
Definition at line 90 of file class.ilPageObject.php.
|
protected |
Definition at line 71 of file class.ilPageObject.php.
bool ilPageObject::$needs_parsing = false |
Definition at line 79 of file class.ilPageObject.php.
DomNode ilPageObject::$node |
Definition at line 76 of file class.ilPageObject.php.
Referenced by ilContainerPage\addRepositoryBlockToPage(), and ilContainerPage\removeUnsupportedBlockIds().
|
protected |
Definition at line 65 of file class.ilPageObject.php.
object ilPageObject::$offline_handler = null |
Definition at line 84 of file class.ilPageObject.php.
int ilPageObject::$old_nr |
Definition at line 62 of file class.ilPageObject.php.
|
protected |
Definition at line 93 of file class.ilPageObject.php.
|
protected |
Definition at line 106 of file class.ilPageObject.php.
|
protected |
Definition at line 63 of file class.ilPageObject.php.
|
protected |
Definition at line 91 of file class.ilPageObject.php.
int ilPageObject::$parent_id = 0 |
Definition at line 81 of file class.ilPageObject.php.
string ilPageObject::$parent_type = "" |
Definition at line 80 of file class.ilPageObject.php.
Referenced by ilDashboardPage\getParentType().
|
protected |
Definition at line 56 of file class.ilPageObject.php.
|
protected |
Definition at line 108 of file class.ilPageObject.php.
|
protected |
Definition at line 103 of file class.ilPageObject.php.
|
protected |
Definition at line 95 of file class.ilPageObject.php.
|
protected |
Definition at line 96 of file class.ilPageObject.php.
|
protected |
Definition at line 94 of file class.ilPageObject.php.
|
protected |
Definition at line 64 of file class.ilPageObject.php.
|
protected |
Definition at line 107 of file class.ilPageObject.php.
|
protected |
Definition at line 70 of file class.ilPageObject.php.
int ilPageObject::$update_listener_cnt = 0 |
Definition at line 83 of file class.ilPageObject.php.
array ilPageObject::$update_listeners = [] |
Definition at line 82 of file class.ilPageObject.php.
|
protected |
Definition at line 68 of file class.ilPageObject.php.
string ilPageObject::$xml = "" |
Definition at line 74 of file class.ilPageObject.php.