ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPageObjectGUI Class Reference

Class ilPageObjectGUI. More...

+ Inheritance diagram for ilPageObjectGUI:
+ Collaboration diagram for ilPageObjectGUI:

Public Member Functions

 ilPageObjectGUI ($a_parent_type, $a_id, $a_old_nr=0, $a_prevent_get_id=false, $a_lang="")
 Constructor.
 afterConstructor ()
 After constructor.
 setParentType ($a_val)
 Set parent type.
 getParentType ()
 Get parent type.
 setId ($a_val)
 Set ID.
 getId ()
 Get ID.
 setOldNr ($a_val)
 Set old nr (historic page)
 getOldNr ()
 Get old nr (historic page)
 setLanguage ($a_val)
 Set language.
 getLanguage ()
 Get language.
 setEnablePCType ($a_pc_type, $a_val)
 Set enable pc type.
 getEnablePCType ($a_pc_type)
 Get enable pc type.
 setPageConfig ($a_val)
 Set page config object.
 getPageConfig ()
 Get page config object.
 setBibId ($a_id)
 Set Bib Id.
 getBibId ()
 Get Bib Id.
 setPageObject ($a_pg_obj)
 Set Page Object.
 getPageObject ()
 Get Page Object.
 setOutputMode ($a_mode=IL_PAGE_PRESENTATION)
 Set Output Mode.
 getOutputMode ()
 setTemplateOutput ($a_output=true)
 outputToTemplate ()
 setPresentationTitle ($a_title="")
 getPresentationTitle ()
 setHeader ($a_title="")
 getHeader ()
 setLinkParams ($l_params="")
 getLinkParams ()
 setLinkFrame ($l_frame="")
 getLinkFrame ()
 setLinkXML ($link_xml)
 getLinkXML ()
 setQuestionXML ($question_xml)
 setQuestionHTML ($question_html)
 getQuestionXML ()
 getQuestionHTML ()
 setTemplateTargetVar ($a_variable)
 getTemplateTargetVar ()
 setTemplateOutputVar ($a_value)
 getTemplateOutputVar ()
 setSourcecodeDownloadScript ($script_name)
 getSourcecodeDownloadScript ()
 enableCitation ($a_enabled)
 isEnabledCitation ()
 setLocator (&$a_locator)
 setTabs ($a_tabs)
 setPageBackTitle ($a_title)
 setFileDownloadLink ($a_download_link)
 getFileDownloadLink ()
 setFullscreenLink ($a_fullscreen_link)
 getFullscreenLink ()
 setIntLinkReturn ($a_return)
 enableChangeComments ($a_enabled)
 isEnabledChangeComments ()
 enableNotes ($a_enabled, $a_parent_id)
 isEnabledNotes ()
 setOfflineDirectory ($offdir)
 set offline directory to offdir
 getOfflineDirectory ()
 get offline directory
 setViewPageLink ($a_link, $a_target="")
 set link for "view page" button
 getViewPageLink ()
 get view page link
 getViewPageTarget ()
 get view page target frame
 setActivationListener (&$a_obj, $a_meth)
 setEnabledNews ($a_enabled, $a_news_obj_id=0, $a_news_obj_type=0)
 Set enabled news.
 getEnabledNews ()
 Get enabled news.
 setTabHook ($a_object, $a_function)
 Set tab hook.
 setEditPreview ($a_editpreview)
 Set Display first Edit tab, then Preview tab, instead of Page and Edit.
 getEditPreview ()
 Get Display first Edit tab, then Preview tab, instead of Page and Edit.
 setEnabledTabs ($a_enabledtabs)
 Set Output tabs.
 getEnabledTabs ()
 Get Output tabs.
 setEnabledPageFocus ($a_enabledpagefocus)
 Set Enable page focus.
 getEnabledPageFocus ()
 Get Enable page focus.
 setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script)
 Set Explorer Updater.
 setPrependingHtml ($a_prependinghtml)
 Set Prepending HTML.
 getPrependingHtml ()
 Get Prepending HTML.
 setEnableEditing ($a_enableediting)
 Set Enable Editing.
 getEnableEditing ()
 Get Enable Editing.
 setRawPageContent ($a_rawpagecontent)
 Set Get raw page content only.
 getRawPageContent ()
 Get Get raw page content only.
 setStyleId ($a_styleid)
 Set Style Id.
 getStyleId ()
 Get Style Id.
 setCompareMode ($a_val)
 Set compare mode.
 getCompareMode ()
 Get compare mode.
 setAbstractOnly ($a_val)
 Set abstract only.
 getAbstractOnly ()
 Get abstract only.
 setRenderPageContainer ($a_val)
 Set render page container.
 getRenderPageContainer ()
 Get render page container.
 activateMetaDataEditor ($a_rep_obj_id, $a_sub_obj_id, $a_type, $a_observer_obj=NULL, $a_observer_func="")
 Activate meda data editor.
 determineFileDownloadLink ()
 Determine file download link.
 determineFullscreenLink ()
 Determine fullscreen link.
 determineSourcecodeDownloadScript ()
 Determine source code download script.
 getComponentPluginsXML ()
 Put information about activated plugins into XML.
executeCommand ()
 execute command
 setQEditTabs ($a_active)
 Set question editing tabs.
 onFeedbackEditingForwarding ()
 On feedback editing forwarding.
 deactivatePage ()
 activatePage ()
 showPage ()
 display content of page
 replaceCurlyBrackets ($output)
 Replace curly brackets.
 addActionsMenu ($a_tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode)
 Add actions menu.
 addMultiLangActionsAndInfo ($a_list, $a_tpl)
 Add multi-language actions to menu.
 setEditMode ()
 Set edit mode.
 setDefaultLinkXml ()
 Set standard link xml.
 downloadFile ()
 Download file of file lists.
 displayMediaFullscreen ()
 Show media in fullscreen mode.
 displayMedia ($a_fullscreen=false)
 Display media.
 download_paragraph ()
 download source code paragraph
 insertContentIncludes ($a_html)
 Insert content includes.
 insertPageToc ($a_output)
 Insert page toc.
 insertResources ($a_output)
 Insert resources.
 insertAdvTrigger ($a_output)
 Insert adv content trigger.
 postOutputProcessing ($a_output)
 Finalizing output processing.
 insertHelp ($a_tpl)
 Insert help texts.
 previewHistory ()
 Preview history.
 preview ()
 preview
 edit ()
 edit ("view" before)
 insertJSAtPlaceholder ()
 InsertJS at placeholder.
 presentation ($a_mode=IL_PAGE_PRESENTATION)
 getHTML ()
 showMediaFullscreen ($a_style_id=0)
 show fullscreen view of media object
 displayValidationError ($a_error)
 display validation error
 history ()
 Get history table as HTML.
 rollbackConfirmation ()
 Rollback confirmation.
 rollback ()
 Rollback to a previous version.
 setScreenIdComponent ()
 Set screen id component.
 getTabs ($a_activate="")
 adds tabs to tab gui object
 compareVersion ()
 Compares two revisions of the page.
 replaceDiffTags ($a_html)
 editActivation ()
 Edit activation (only, if scheduled page activation is activated in administration)
 initActivationForm ()
 Init activation form.
 getActivationFormValues ()
 Get values for activation form.
 saveActivation ()
 Save Activation.
 getNotesHTML ($a_content_object=null, $a_enable_private_notes=true, $a_enable_public_notes=false, $a_enable_notes_deletion=false, $a_callback=null)
 Get html for public and/or private notes.
 processAnswer ()
 Process answer.
 initialOpenedContent ()
 Initially opened content.
 initOpenedContentForm ()
 Init form for initially opened content.
 saveInitialOpenedContent ()
 Save initial opened content.
 switchToLanguage ()
 Switch to language.
 confirmPageTranslationCreation ()
 Confirm page translation creation.
 editMasterLanguage ()
 Edit master language.
 createPageTranslation ()
 Create page translation.
 releasePageLock ()
 Release page lock.

Static Public Member Functions

static getTinyMenu ($a_par_type, $a_int_links=false, $a_wiki_links=false, $a_keywords=false, $a_style_id=0, $a_paragraph_styles=true, $a_save_return=true, $a_anchors=false, $a_save_new=true)
 Get Tiny Menu.

Data Fields

 $tpl
 $lng
 $ctrl
 $obj
 $output_mode
 $presentation_title
 $target_script
 $return_location
 $target_var
 $template_output_var
 $output2template
 $link_params
 $bib_id
 $citation
 $sourcecode_download_script
 $change_comments
 $question_html
 $activation = false
 $activated = true
 $editpreview = false
 $use_meta_data = false
 $link_xml_set = false
 $enableediting = true
 $rawpagecontent = false
 $enabledcontentincludes = false
 $compare_mode = false
 $page_config = null
 $tabs_enabled = true
 $render_page_container = false
 $pl_start = "{{{{{"
 $pl_end = "}}}}}"

Protected Member Functions

 initPageObject ()
 Init page object.
 getActivationCaptions ()
 Get captions for activation action menu entries.
 isPageContainerToBeRendered ()

Protected Attributes

 $parent_type = ""

Private Attributes

 $abstract_only = false

Detailed Description

Member Function Documentation

ilPageObjectGUI::activateMetaDataEditor (   $a_rep_obj_id,
  $a_sub_obj_id,
  $a_type,
  $a_observer_obj = NULL,
  $a_observer_func = "" 
)

Activate meda data editor.

Parameters
int$a_rep_obj_idobject id as used in repository
int$a_sub_obj_idsub object id
string$a_typeobject type
object$a_observer_objobserver object
object$a_observer_funcobserver function

Definition at line 815 of file class.ilPageObjectGUI.php.

{
$this->use_meta_data = true;
$this->meta_data_rep_obj_id = $a_rep_obj_id;
$this->meta_data_sub_obj_id = $a_sub_obj_id;
$this->meta_data_type = $a_type;
$this->meta_data_observer_obj = $a_observer_obj;
$this->meta_data_observer_func = $a_observer_func;
}
ilPageObjectGUI::activatePage ( )

Definition at line 1119 of file class.ilPageObjectGUI.php.

References getPageObject().

Referenced by ilBlogPostingGUI\activatePageToList().

{
$this->getPageObject()->setActivationStart(null);
$this->getPageObject()->setActivationEnd(null);
$this->getPageObject()->setActive(true);
$this->getPageObject()->update();
$this->ctrl->redirect($this, "edit");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::addActionsMenu (   $a_tpl,
  $sel_media_mode,
  $sel_html_mode,
  $sel_js_mode 
)

Add actions menu.

Definition at line 1924 of file class.ilPageObjectGUI.php.

References $ilCtrl, $lng, addMultiLangActionsAndInfo(), getActivationCaptions(), getPageConfig(), and getPageObject().

Referenced by showPage().

{
global $lng, $ilCtrl;
// actions
include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
// activate/deactivate
$list->setListTitle($lng->txt("actions"));
$list->setId("copage_act");
$entries = false;
if ($this->getPageConfig()->getEnableActivation())
{
$entries = true;
$captions = $this->getActivationCaptions();
if ($this->getPageObject()->getActive())
{
$list->addItem($captions["deactivatePage"], "",
$ilCtrl->getLinkTarget($this, "deactivatePage"));
}
else
{
$list->addItem($captions["activatePage"], "",
$ilCtrl->getLinkTarget($this, "activatePage"));
}
$a_tpl->setVariable("PAGE_ACTIONS", $list->getHTML());
}
// initially opened content
if ($this->getPageConfig()->getUseAttachedContent())
{
$entries = true;
$list->addItem($lng->txt("cont_initial_attached_content"), "",
$ilCtrl->getLinkTarget($this, "initialOpenedContent"));
}
// multi-lang actions
if ($this->addMultiLangActionsAndInfo($list, $a_tpl))
{
$entries = true;
}
if ($entries)
{
$a_tpl->setVariable("PAGE_ACTIONS", $list->getHTML());
}
$lng->loadLanguageModule("content");
$list->setListTitle($lng->txt("cont_edit_mode"));
$list->setId("copage_ed_mode");
// media mode
if ($sel_media_mode == "enable")
{
$ilCtrl->setParameter($this, "media_mode", "disable");
$list->addItem($lng->txt("cont_deactivate_media"), "",
$ilCtrl->getLinkTarget($this, "setEditMode"));
}
else
{
$ilCtrl->setParameter($this, "media_mode", "enable");
$list->addItem($lng->txt("cont_activate_media"), "",
$ilCtrl->getLinkTarget($this, "setEditMode"));
}
$ilCtrl->setParameter($this, "media_mode", "");
// html mode
if (!$this->getPageConfig()->getPreventHTMLUnmasking())
{
if ($sel_html_mode == "enable")
{
$ilCtrl->setParameter($this, "html_mode", "disable");
$list->addItem($lng->txt("cont_deactivate_html"), "",
$ilCtrl->getLinkTarget($this, "setEditMode"));
}
else
{
$ilCtrl->setParameter($this, "html_mode", "enable");
$list->addItem($lng->txt("cont_activate_html"), "",
$ilCtrl->getLinkTarget($this, "setEditMode"));
}
}
$ilCtrl->setParameter($this, "html_mode", "");
// js mode
if ($sel_js_mode == "enable")
{
$ilCtrl->setParameter($this, "js_mode", "disable");
$list->addItem($lng->txt("cont_deactivate_js"), "",
$ilCtrl->getLinkTarget($this, "setEditMode"));
}
else
{
$ilCtrl->setParameter($this, "js_mode", "enable");
$list->addItem($lng->txt("cont_activate_js"), "",
$ilCtrl->getLinkTarget($this, "setEditMode"));
}
$ilCtrl->setParameter($this, "js_mode", "");
$a_tpl->setVariable("EDIT_MODE", $list->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::addMultiLangActionsAndInfo (   $a_list,
  $a_tpl 
)

Add multi-language actions to menu.

Parameters
@return

Definition at line 2035 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, $lang, $lng, ilObjectTranslation\getInstance(), getLanguage(), getPageConfig(), getPageObject(), and getParentType().

Referenced by addActionsMenu().

{
global $lng, $ilCtrl;
$any_items = false;
$cfg = $this->getPageConfig();
// general multi lang support and single page mode?
if ($cfg->getMultiLangSupport())
{
//include_once("./Services/COPage/classes/class.ilPageMultiLang.php");
//$ml = new ilPageMultiLang($this->getPageObject()->getParentType(),
// $this->getPageObject()->getParentId());
include_once("./Services/Object/classes/class.ilObjectTranslation.php");
$ot = ilObjectTranslation::getInstance($this->getPageObject()->getParentId());
if (!$ot->getContentActivated())
{
/* if ($cfg->getSinglePageMode())
{
$a_list->addItem($lng->txt("cont_activate_multi_lang"), "",
$ilCtrl->getLinkTargetByClass("ilpagemultilanggui", "activateMultilinguality"));
$any_items = true;
}*/
}
else
{
$lng->loadLanguageModule("meta");
//echo $this->getPageObject()->getLanguage();
if ($this->getPageObject()->getLanguage() != "-")
{
$l = $ot->getMasterLanguage();
$a_list->addItem($lng->txt("cont_edit_language_version").": ".
$lng->txt("meta_l_".$l), "",
$ilCtrl->getLinkTarget($this, "editMasterLanguage"));
}
foreach ($ot->getLanguages() as $al => $lang)
{
if ($this->getPageObject()->getLanguage() != $al &&
$al != $ot->getMasterLanguage())
{
$ilCtrl->setParameter($this, "totransl", $al);
$a_list->addItem($lng->txt("cont_edit_language_version").": ".
$lng->txt("meta_l_".$al), "",
$ilCtrl->getLinkTarget($this, "switchToLanguage"));
$ilCtrl->setParameter($this, "totransl", $_GET["totransl"]);
}
}
/* if ($cfg->getSinglePageMode())
{
$a_list->addItem($lng->txt("cont_manage_multilang"), "",
$ilCtrl->getLinkTargetByClass("ilpagemultilanggui", "settings"));
}*/
include_once("./Services/COPage/classes/class.ilPageMultiLangGUI.php");
$ml_gui = new ilPageMultiLangGUI($this->getPageObject()->getParentType(),
$this->getPageObject()->getParentId());
$a_tpl->setVariable("MULTI_LANG_INFO", $ml_gui->getMultiLangInfo($this->getPageObject()->getLanguage()));
$any_items = true;
}
}
return $any_items;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::afterConstructor ( )

After constructor.

Definition at line 134 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::compareVersion ( )

Compares two revisions of the page.

Definition at line 3284 of file class.ilPageObjectGUI.php.

References $_POST, $lng, $tpl, getEnableEditing(), getPageConfig(), getPresentationTitle(), IL_PAGE_PREVIEW, replaceDiffTags(), setCompareMode(), setOutputMode(), setPageObject(), setPresentationTitle(), and showPage().

{
global $lng;
if (!$this->getEnableEditing())
{
return;
}
$tpl = new ilTemplate("tpl.page_compare.html", true, true, "Services/COPage");
$compare = $this->obj->compareVersion((int) $_POST["left"], (int) $_POST["right"]);
// left page
$lpage = $compare["l_page"];
$cfg = $this->getPageConfig();
$cfg->setPreventHTMLUnmasking(true);
$this->setPageObject($lpage);
$this->setCompareMode(true);
$lhtml = $this->showPage();
$lhtml = $this->replaceDiffTags($lhtml);
$lhtml = str_replace("&lt;br /&gt;", "<br />", $lhtml);
$tpl->setVariable("LEFT", $lhtml);
// right page
$rpage = $compare["r_page"];
$this->setPageObject($rpage);
$this->setCompareMode(true);
$rhtml = $this->showPage();
$rhtml = $this->replaceDiffTags($rhtml);
$rhtml = str_replace("&lt;br /&gt;", "<br />", $rhtml);
$tpl->setVariable("RIGHT", $rhtml);
$tpl->setVariable("TXT_NEW", $lng->txt("cont_pc_new"));
$tpl->setVariable("TXT_MODIFIED", $lng->txt("cont_pc_modified"));
$tpl->setVariable("TXT_DELETED", $lng->txt("cont_pc_deleted"));
//var_dump($left);
//var_dump($right);
return $tpl->get();
}

+ Here is the call graph for this function:

ilPageObjectGUI::confirmPageTranslationCreation ( )

Confirm page translation creation.

Definition at line 3656 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, and ilUtil\stripSlashes().

Referenced by switchToLanguage().

{
global $ilCtrl, $tpl, $lng;
$l = ilUtil::stripSlashes($_GET["totransl"]);
$ilCtrl->setParameter($this, "totransl", $l);
$lng->loadLanguageModule("meta");
include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
$cgui = new ilConfirmationGUI();
$cgui->setFormAction($ilCtrl->getFormAction($this));
$cgui->setHeaderText($lng->txt("cont_page_translation_does_not_exist").": ".
$lng->txt("meta_l_".$l));
$cgui->setCancel($lng->txt("cancel"), "editMasterLanguage");
$cgui->setConfirm($lng->txt("confirm"), "createPageTranslation");
$tpl->setContent($cgui->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::createPageTranslation ( )

Create page translation.

Definition at line 3688 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, getPageObject(), and ilUtil\stripSlashes().

{
global $ilCtrl;
$l = ilUtil::stripSlashes($_GET["totransl"]);
$this->getPageObject()->copyPageToTranslation($l);
$ilCtrl->setParameter($this, "transl", $l);
$ilCtrl->redirect($this, "edit");
}

+ Here is the call graph for this function:

ilPageObjectGUI::deactivatePage ( )

Definition at line 1110 of file class.ilPageObjectGUI.php.

References getPageObject().

Referenced by ilBlogPostingGUI\deactivatePageToList().

{
$this->getPageObject()->setActivationStart(null);
$this->getPageObject()->setActivationEnd(null);
$this->getPageObject()->setActive(false);
$this->getPageObject()->update();
$this->ctrl->redirect($this, "edit");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::determineFileDownloadLink ( )

Determine file download link.

Returns
string file download link

Definition at line 831 of file class.ilPageObjectGUI.php.

References $ilCtrl, getFileDownloadLink(), and getOutputMode().

Referenced by insertContentIncludes(), ilSCORM2004PageGUI\setDefaultLinkXml(), and showPage().

{
global $ilCtrl;
$file_download_link = $this->getFileDownloadLink();
if ($this->getFileDownloadLink() == "" && $this->getOutputMode() != "offline")
{
$file_download_link = $ilCtrl->getLinkTarget($this, "downloadFile");
}
return $file_download_link;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::determineFullscreenLink ( )

Determine fullscreen link.

Returns
string fullscreen link

Definition at line 848 of file class.ilPageObjectGUI.php.

References $ilCtrl, getFullscreenLink(), and getOutputMode().

Referenced by insertContentIncludes(), and showPage().

{
global $ilCtrl;
$fullscreen_link = $this->getFullscreenLink();
if ($this->getFullscreenLink() == "" && $this->getOutputMode() != "offline")
{
$fullscreen_link = $ilCtrl->getLinkTarget($this, "displayMediaFullscreen", "", false, false);
}
return $fullscreen_link;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::determineSourcecodeDownloadScript ( )

Determine source code download script.

Returns
string sourcecode download script

Definition at line 865 of file class.ilPageObjectGUI.php.

References $ilCtrl, $sourcecode_download_script, and getOutputMode().

Referenced by insertContentIncludes(), and showPage().

{
global $ilCtrl;
if ($this->sourcecode_download_script == "" && $this->getOutputMode() != "offline")
{
$l = $ilCtrl->getLinkTarget($this, "");
}
return $l;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::displayMedia (   $a_fullscreen = false)

Display media.

Definition at line 2487 of file class.ilPageObjectGUI.php.

References $_GET, $tpl, ilMediaItem\_getMapAreasIntLinks(), exit, ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), getPageObject(), ilUtil\getStyleSheetLocation(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, ilObjMediaObjectGUI\includePresentationJS(), xslt_create(), and xslt_free().

Referenced by displayMediaFullscreen().

{
global $tpl;
$tpl = new ilTemplate("tpl.fullscreen.html", true, true, "Modules/LearningModule");
$tpl->setCurrentBlock("ilMedia");
//$int_links = $page_object->getInternalLinks();
$med_links = ilMediaItem::_getMapAreasIntLinks($_GET["mob_id"]);
// @todo
//$link_xml = $this->getLinkXML($med_links, $this->getLayoutLinkTargets());
require_once("./Services/MediaObjects/classes/class.ilObjMediaObject.php");
$media_obj = new ilObjMediaObject($_GET["mob_id"]);
require_once("./Services/COPage/classes/class.ilPageObject.php");
$pg_obj = $this->getPageObject();
$pg_obj->buildDom();
if (!empty ($_GET["pg_id"]))
{
$xml = "<dummy>";
$xml.= $pg_obj->getMediaAliasElement($_GET["mob_id"]);
$xml.= $media_obj->getXML(IL_MODE_OUTPUT);
$xml.= $link_xml;
$xml.="</dummy>";
}
else
{
$xml = "<dummy>";
$xml.= $media_obj->getXML(IL_MODE_ALIAS);
$xml.= $media_obj->getXML(IL_MODE_OUTPUT);
$xml.= $link_xml;
$xml.="</dummy>";
}
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
$args = array( '/_xml' => $xml, '/_xsl' => $xsl );
$xh = xslt_create();
$mode = "media";
if ($a_fullscreen)
{
$mode = "fullscreen";
}
//echo "<b>XML:</b>".htmlentities($xml);
// determine target frames for internal links
$wb_path = ilUtil::getWebspaceDir("output")."/";
$enlarge_path = ilUtil::getImagePath("enlarge.svg");
$params = array ('mode' => $mode, 'enlarge_path' => $enlarge_path,
'link_params' => "ref_id=".$_GET["ref_id"],'fullscreen_link' => "",
'ref_id' => $_GET["ref_id"], 'webspace_path' => $wb_path);
$output = xslt_process($xh,"arg:/_xml","arg:/_xsl",NULL,$args, $params);
//echo "<br><br>".htmlentities($output);
//echo xslt_error($xh);
xslt_free($xh);
// unmask user html
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
$tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$tpl->setVariable("MEDIA_CONTENT", $output);
// add js
include_once("./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
$tpl->fillJavaScriptFiles();
$tpl->fillCssFiles();
echo $tpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::displayMediaFullscreen ( )

Show media in fullscreen mode.

Definition at line 2479 of file class.ilPageObjectGUI.php.

References displayMedia().

{
$this->displayMedia(true);
}

+ Here is the call graph for this function:

ilPageObjectGUI::displayValidationError (   $a_error)

display validation error

Parameters
string$a_errorerror string

Definition at line 3067 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
if(is_array($a_error))
{
$error_str = "<b>Error(s):</b><br>";
foreach ($a_error as $error)
{
$err_mess = implode($error, " - ");
if (!is_int(strpos($err_mess, ":0:")))
{
$error_str .= htmlentities($err_mess)."<br />";
}
}
$this->tpl->setVariable("MESSAGE", $error_str);
}
}

+ Here is the caller graph for this function:

ilPageObjectGUI::download_paragraph ( )

download source code paragraph

Definition at line 2564 of file class.ilPageObjectGUI.php.

References $_GET, and getPageObject().

{
$pg_obj = $this->getPageObject();
$pg_obj->send_paragraph($_GET["par_id"], $_GET["downloadtitle"]);
}

+ Here is the call graph for this function:

ilPageObjectGUI::downloadFile ( )

Download file of file lists.

Definition at line 2455 of file class.ilPageObjectGUI.php.

References $_GET, $file, ilPCFileList\collectFileItems(), and exit.

{
$this->obj->buildDom();
include_once("./Services/COPage/classes/class.ilPCFileList.php");
$files = ilPCFileList::collectFileItems($this->obj, $this->obj->getDomDoc());
$file = explode("_", $_GET["file_id"]);
require_once("./Modules/File/classes/class.ilObjFile.php");
$file_id = $file[count($file) - 1];
// file must be in page
if (!in_array($file_id, $files))
{
}
$fileObj =& new ilObjFile($file_id, false);
$fileObj->sendFile();
}

+ Here is the call graph for this function:

ilPageObjectGUI::edit ( )

edit ("view" before)

Reimplemented in ilWikiPageGUI.

Definition at line 2846 of file class.ilPageObjectGUI.php.

References $_GET, $_POST, $ilCtrl, $ilSetting, $ilUser, $lng, ilObject\_lookupType(), exit, ilDatePresentation\formatDate(), getEnableEditing(), ilLinkButton\getInstance(), ilUserUtil\getNamePresentation(), getPageObject(), getParentType(), IL_CAL_UNIX, IL_PAGE_EDIT, isEnabledNotes(), ilUtil\sendFailure(), ilUtil\sendInfo(), setOutputMode(), and showPage().

Referenced by executeCommand(), and insertJSAtPlaceholder().

{
global $tree, $lng, $ilCtrl, $ilSetting, $ilUser, $ilHelp;
// editing allowed?
if (!$this->getEnableEditing())
{
ilUtil::sendFailure($lng->txt("permission_denied"), true);
$ilCtrl->redirect($this, "preview");
}
// not so nive workaround for container pages, bug #0015831
$ptype = $this->getParentType();
if ($ptype == "cont" && $_GET["ref_id"] > 0)
{
$ptype = ilObject::_lookupType((int) $_GET["ref_id"], true);
}
$ilHelp->setScreenId("edit_".$ptype);
require_once 'Services/Captcha/classes/class.ilCaptchaUtil.php';
if(
$ilUser->isAnonymous() &&
!$ilUser->isCaptchaVerified() &&
ilCaptchaUtil::isActiveForWiki()
)
{
$form = $this->initCaptchaForm();
if($_POST['captcha_code'] && $form->checkInput())
{
$ilUser->setCaptchaVerified(true);
}
else
{
return $form->getHTML();
}
}
// edit lock
if (!$this->getPageObject()->getEditLock())
{
include_once("./Services/User/classes/class.ilUserUtil.php");
$info = $lng->txt("content_no_edit_lock");
$lock = $this->getPageObject()->getEditLockInfo();
$info .= "</br>" . $lng->txt("content_until") . ": " .
ilDatePresentation::formatDate(new ilDateTime($lock["edit_lock_until"], IL_CAL_UNIX));
$info .= "</br>" . $lng->txt("obj_usr") . ": " .
ilUserUtil::getNamePresentation($lock["edit_lock_user"]);
if (!$ilCtrl->isAsynch())
{
return "";
}
else
{
echo $this->tpl->getMessageHTML($info);
}
}
else
{
$aset = new ilSetting("adve");
$min = (int) $aset->get("block_mode_minutes") ;
if ($min > 0)
{
include_once("./Services/User/classes/class.ilUserUtil.php");
$lock = $this->getPageObject()->getEditLockInfo();
$info = $lng->txt("cont_got_lock_until");
$info = str_replace("%1", ilDatePresentation::formatDate(new ilDateTime($lock["edit_lock_until"],IL_CAL_UNIX)), $info);
//$info.= "</br>".$lng->txt("content_until").": ".
// ilDatePresentation::formatDate(new ilDateTime($lock["edit_lock_until"],IL_CAL_UNIX));
//$info.= "</br>".$lng->txt("obj_usr").": ".
// ilUserUtil::getNamePresentation($lock["edit_lock_user"]);
include_once("./Services/UIComponent/Button/classes/class.ilLinkButton.php");
$but->setCaption("cont_finish_editing");
$but->setUrl($ilCtrl->getLinkTarget($this, "releasePageLock"));
$info = str_replace("%2", $but->render(), $info);
}
}
$html = $this->showPage();
if ($this->isEnabledNotes())
{
$html.= "<br /><br />".$this->getNotesHTML();
}
return $html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::editActivation ( )

Edit activation (only, if scheduled page activation is activated in administration)

Definition at line 3346 of file class.ilPageObjectGUI.php.

References $ilCtrl, $lng, $tpl, getActivationFormValues(), and initActivationForm().

{
global $ilCtrl, $lng, $tpl;
$atpl = new ilTemplate("tpl.page_activation.php", true, true, "Services/COPage");
$atpl->setVariable("FORM", $this->form->getHTML());
$atpl->setCurrentBlock("updater");
$atpl->setVariable("UPDATER_FRAME", $this->exp_frame);
$atpl->setVariable("EXP_ID_UPDATER", $this->exp_id);
$atpl->setVariable("HREF_UPDATER", $this->exp_target_script);
$atpl->parseCurrentBlock();
$tpl->setContent($atpl->get());
}

+ Here is the call graph for this function:

ilPageObjectGUI::editMasterLanguage ( )

Edit master language.

Definition at line 3677 of file class.ilPageObjectGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->setParameter($this, "transl", "");
$ilCtrl->redirect($this, "edit");
}
ilPageObjectGUI::enableChangeComments (   $a_enabled)

Definition at line 489 of file class.ilPageObjectGUI.php.

{
$this->change_comments = $a_enabled;
}
ilPageObjectGUI::enableCitation (   $a_enabled)

Definition at line 437 of file class.ilPageObjectGUI.php.

{
$this->citation = $a_enabled;
}
ilPageObjectGUI::enableNotes (   $a_enabled,
  $a_parent_id 
)

Definition at line 499 of file class.ilPageObjectGUI.php.

Referenced by ilSCORM2004PageGUI\__construct().

{
$this->notes_enabled = $a_enabled;
$this->notes_parent_id = $a_parent_id;
}

+ Here is the caller graph for this function:

& ilPageObjectGUI::executeCommand ( )

execute command

Reimplemented in ilDataCollectionRecordViewViewdefinitionGUI, ilBlogPostingGUI, ilSCORM2004PageGUI, ilTestExpressPageObjectGUI, ilWikiPageGUI, ilPortfolioPageGUI, ilPageLayoutGUI, ilImprintGUI, and ilMediaPoolPageGUI.

Definition at line 911 of file class.ilPageObjectGUI.php.

References $_GET, $cmd, $ilCtrl, $lng, $ret, $tpl, assQuestionGUI\_getQuestionGUI(), assQuestion\_getQuestionType(), edit(), getEnableEditing(), getHeader(), getPageConfig(), getPageObject(), getTabs(), initOpenedContentForm(), onFeedbackEditingForwarding(), ilUtil\sendFailure(), and setQEditTabs().

{
global $ilCtrl, $ilTabs, $lng, $ilAccess, $tpl;
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
//$this->ctrl->addTab("clipboard", $this->ctrl->getLinkTargetByClass("ilEditClipboardGUI", "view")
// , "view", "ilEditClipboardGUI");
$this->getTabs();
$ilCtrl->setReturn($this, "edit");
//echo "-".$next_class."-";
switch($next_class)
{
case 'ilmdeditorgui':
//$this->setTabs();
$ilTabs->setTabActive("meta_data");
include_once 'Services/MetaData/classes/class.ilMDEditorGUI.php';
$md_gui =& new ilMDEditorGUI($this->meta_data_rep_obj_id,
$this->meta_data_sub_obj_id, $this->meta_data_type);
if (is_object($this->meta_data_observer_obj))
{
$md_gui->addObserver($this->meta_data_observer_obj,
$this->meta_data_observer_func, "General");
}
$this->ctrl->forwardCommand($md_gui);
break;
case "ileditclipboardgui":
//$this->tabs_gui->clearTargets();
//$this->ctrl->setReturn($this, "view");
$clip_gui = new ilEditClipboardGUI();
$clip_gui->setPageBackTitle($this->page_back_title);
//$ret =& $clip_gui->executeCommand();
$ret =& $this->ctrl->forwardCommand($clip_gui);
break;
// notes
case "ilnotegui":
switch($_GET["notes_mode"])
{
default:
$html = $this->edit();
$ilTabs->setTabActive("edit");
return $html;
}
break;
case 'ilpublicuserprofilegui':
require_once './Services/User/classes/class.ilPublicUserProfileGUI.php';
$profile_gui = new ilPublicUserProfileGUI($_GET["user"]);
$ret = $this->ctrl->forwardCommand($profile_gui);
break;
case "ilpageeditorgui":
if (!$this->getEnableEditing())
{
ilUtil::sendFailure($lng->txt("permission_denied"), true);
$ilCtrl->redirect($this, "preview");
}
$page_editor = new ilPageEditorGUI($this->getPageObject(), $this);
$page_editor->setLocator($this->locator);
$page_editor->setHeader($this->getHeader());
$page_editor->setPageBackTitle($this->page_back_title);
$page_editor->setIntLinkReturn($this->int_link_return);
//$page_editor->executeCommand();
$ret =& $this->ctrl->forwardCommand($page_editor);
break;
case 'ilnewsitemgui':
include_once("./Services/News/classes/class.ilNewsItemGUI.php");
$news_item_gui = new ilNewsItemGUI();
$news_item_gui->setEnableEdit(true);
$news_item_gui->setContextObjId($this->news_obj_id);
$news_item_gui->setContextObjType($this->news_obj_type);
$news_item_gui->setContextSubObjId($this->obj->getId());
$news_item_gui->setContextSubObjType("pg");
$ret = $ilCtrl->forwardCommand($news_item_gui);
break;
$profile_gui = new ilPublicUserProfileGUI($_GET["user"]);
$ret = $this->ctrl->forwardCommand($profile_gui);
break;
case "ilpropertyformgui":
include_once './Services/Form/classes/class.ilPropertyFormGUI.php';
$form = $this->initOpenedContentForm();
$this->ctrl->forwardCommand($form);
break;
case "ilinternallinkgui":
$this->lng->loadLanguageModule("content");
require_once("./Services/Link/classes/class.ilInternalLinkGUI.php");
$link_gui = new ilInternalLinkGUI("Media_Media", 0);
//$link_gui->filterLinkType("RepositoryItem");
$link_gui->filterLinkType("PageObject_FAQ");
$link_gui->filterLinkType("GlossaryItem");
$link_gui->filterLinkType("Media_Media");
$link_gui->filterLinkType("Media_FAQ");
$link_gui->setFilterWhiteList(true);
$link_gui->setMode("asynch");
$ilCtrl->forwardCommand($link_gui);
break;
case "ilquestioneditgui":
$this->setQEditTabs("question");
include_once("./Modules/TestQuestionPool/classes/class.ilQuestionEditGUI.php");
$edit_gui = new ilQuestionEditGUI();
$edit_gui->setPageConfig($this->getPageConfig());
// $edit_gui->addNewIdListener($this, "setNewQuestionId");
$edit_gui->setSelfAssessmentEditingMode(true);
$ret = $ilCtrl->forwardCommand($edit_gui);
$this->tpl->setContent($ret);
break;
case 'ilassquestionfeedbackeditinggui':
// set tabs
$this->setQEditTabs("feedback");
// load required lang mods
$lng->loadLanguageModule("assessment");
// set context tabs
require_once 'Modules/TestQuestionPool/classes/class.assQuestionGUI.php';
require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
$questionGUI = assQuestionGUI::_getQuestionGUI(assQuestion::_getQuestionType((int) $_GET['q_id']), (int) $_GET['q_id']);
$questionGUI->object->setObjId(0);
$questionGUI->object->setSelfAssessmentEditingMode(true);
$questionGUI->object->setPreventRteUsage($this->getPageConfig()->getPreventRteUsage());
// forward to ilAssQuestionFeedbackGUI
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
$gui = new ilAssQuestionFeedbackEditingGUI($questionGUI, $ilCtrl, $ilAccess, $tpl, $ilTabs, $lng);
$ilCtrl->forwardCommand($gui);
break;
/* case "ilpagemultilanggui":
$ilCtrl->setReturn($this, "edit");
include_once("./Services/COPage/classes/class.ilPageMultiLangGUI.php");
$ml_gui = new ilPageMultiLangGUI($this->getPageObject()->getParentType(), $this->getPageObject()->getParentId(),
$this->getPageConfig()->getSinglePageMode());
//$this->setTabs("settings");
//$this->setSubTabs("cont_multilinguality");
$ret = $this->ctrl->forwardCommand($ml_gui);
break;*/
default:
$cmd = $this->ctrl->getCmd("preview");
$ret = $this->$cmd();
break;
}
//echo "+$ret+";
return $ret;
}

+ Here is the call graph for this function:

ilPageObjectGUI::getAbstractOnly ( )

Get abstract only.

Returns
boolean get only abstract (first text paragraph)

Definition at line 781 of file class.ilPageObjectGUI.php.

References $abstract_only.

Referenced by insertAdvTrigger(), ilBlogPostingGUI\postOutputProcessing(), ilBlogPostingGUI\showPage(), ilWikiPageGUI\showPage(), and showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getActivationCaptions ( )
protected

Get captions for activation action menu entries.

Reimplemented in ilBlogPostingGUI.

Definition at line 1913 of file class.ilPageObjectGUI.php.

References $lng.

Referenced by addActionsMenu().

{
global $lng;
return array("deactivatePage" => $lng->txt("cont_deactivate_page"),
"activatePage" => $lng->txt("cont_activate_page"));
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getActivationFormValues ( )

Get values for activation form.

Definition at line 3406 of file class.ilPageObjectGUI.php.

References getPageObject(), and IL_CAL_DATETIME.

Referenced by editActivation().

{
$values = array();
$values["activation"] = "deactivated";
if ($this->getPageObject()->getActive())
{
$values["activation"] = "activated";
}
$dt_prop = $this->form->getItemByPostVar("start");
if ($this->getPageObject()->getActivationStart() != "")
{
$values["activation"] = "scheduled";
$dt_prop->setDate(new ilDateTime($this->getPageObject()->getActivationStart(),
}
$dt_prop = $this->form->getItemByPostVar("end");
if ($this->getPageObject()->getActivationEnd() != "")
{
$values["activation"] = "scheduled";
$dt_prop->setDate(new ilDateTime($this->getPageObject()->getActivationEnd(),
}
$values["show_activation_info"] = $this->getPageObject()->getShowActivationInfo();
$this->form->setValuesByArray($values);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getBibId ( )

Get Bib Id.

Definition at line 287 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->bib_id ? $this->bib_id : 0;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getCompareMode ( )

Get compare mode.

Returns
boolean compare_mode

Definition at line 761 of file class.ilPageObjectGUI.php.

References $compare_mode.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getComponentPluginsXML ( )

Put information about activated plugins into XML.

Definition at line 880 of file class.ilPageObjectGUI.php.

References getOutputMode(), IL_COMP_SERVICE, and ilPageComponentPlugin\TXT_CMD_INSERT.

{
$xml = "";
if($this->getOutputMode() == "edit")
{
global $ilPluginAdmin;
$pl_names = $ilPluginAdmin->getActivePluginsForSlot(IL_COMP_SERVICE,
"COPage", "pgcp");
foreach ($pl_names as $pl_name)
{
$plugin = $ilPluginAdmin->getPluginObject(IL_COMP_SERVICE,
"COPage", "pgcp", $pl_name);
if ($plugin->isValidParentType($this->getPageObject()->getParentType()))
{
$xml.= '<ComponentPlugin Name="'.$plugin->getPluginName().
'" InsertText="'.$plugin->txt(ilPageComponentPlugin::TXT_CMD_INSERT).'" />';
}
}
}
if ($xml != "")
{
$xml = "<ComponentPlugins>".$xml."</ComponentPlugins>";
}
return $xml;
}

+ Here is the call graph for this function:

ilPageObjectGUI::getEditPreview ( )

Get Display first Edit tab, then Preview tab, instead of Page and Edit.

Returns
boolean Edit/Preview mode

Definition at line 608 of file class.ilPageObjectGUI.php.

References $editpreview.

Referenced by getTabs().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledNews ( )

Get enabled news.

Returns
boolean enabled news

Definition at line 580 of file class.ilPageObjectGUI.php.

Referenced by getTabs().

{
return $this->enabled_news;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledPageFocus ( )

Get Enable page focus.

Returns
boolean Enable page focus

Definition at line 648 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->enabledpagefocus;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledTabs ( )

Get Output tabs.

Returns
boolean Output tabs

Definition at line 628 of file class.ilPageObjectGUI.php.

References $tabs_enabled.

Referenced by getTabs().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnableEditing ( )

Get Enable Editing.

Returns
boolean Enable Editing

Definition at line 701 of file class.ilPageObjectGUI.php.

References $enableediting.

Referenced by compareVersion(), edit(), ilTestExpressPageObjectGUI\executeCommand(), executeCommand(), getTabs(), history(), rollback(), and rollbackConfirmation().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnablePCType (   $a_pc_type)

Get enable pc type.

Returns
boolean enable pc type true/false

Definition at line 250 of file class.ilPageObjectGUI.php.

References getPageConfig().

Referenced by insertResources(), and showPage().

{
return $this->getPageConfig()->getEnablePCType($a_pc_type);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getFileDownloadLink ( )

Definition at line 468 of file class.ilPageObjectGUI.php.

Referenced by determineFileDownloadLink().

{
return $this->file_download_link;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getFullscreenLink ( )

Definition at line 479 of file class.ilPageObjectGUI.php.

Referenced by determineFullscreenLink().

{
return $this->fullscreen_link;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getHeader ( )

Definition at line 352 of file class.ilPageObjectGUI.php.

Referenced by ilTestExpressPageObjectGUI\executeCommand(), and executeCommand().

{
return $this->header;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getHTML ( )

Definition at line 2999 of file class.ilPageObjectGUI.php.

References getTabs(), and showPage().

{
$this->getTabs("preview");
return $this->showPage();
}

+ Here is the call graph for this function:

ilPageObjectGUI::getLanguage ( )

Get language.

Returns
string language

Definition at line 225 of file class.ilPageObjectGUI.php.

Referenced by addMultiLangActionsAndInfo(), and initPageObject().

{
if ($this->language == "")
{
return "-";
}
return $this->language;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getLinkFrame ( )

Definition at line 372 of file class.ilPageObjectGUI.php.

{
return $this->link_frame;
}
ilPageObjectGUI::getLinkParams ( )

Definition at line 362 of file class.ilPageObjectGUI.php.

References $link_params.

{
}
ilPageObjectGUI::getLinkXML ( )

Definition at line 383 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->link_xml;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getNotesHTML (   $a_content_object = null,
  $a_enable_private_notes = true,
  $a_enable_public_notes = false,
  $a_enable_notes_deletion = false,
  $a_callback = null 
)

Get html for public and/or private notes.

Parameters
bool$a_content_object
bool$a_enable_private_notes
bool$a_enable_public_notes
bool$a_enable_notes_deletion
Returns
string

Definition at line 3479 of file class.ilPageObjectGUI.php.

References $ilCtrl, and ilNoteGUI\enablePrivateNotes().

Referenced by ilBlogPostingGUI\preview(), and ilWikiPageGUI\preview().

{
global $ilCtrl;
include_once("Services/Notes/classes/class.ilNoteGUI.php");
// scorm 2004 page gui
if(!$a_content_object)
{
$notes_gui = new ilNoteGUI($this->notes_parent_id,
(int)$this->obj->getId(), "pg");
$a_enable_private_notes = true;
$a_enable_public_notes = true;
$a_enable_notes_deletion = false;
}
// wiki page gui, blog posting gui
else
{
$notes_gui = new ilNoteGUI($a_content_object->getParentId(),
$a_content_object->getId(), $a_content_object->getParentType());
}
if($a_enable_private_notes)
{
$notes_gui->enablePrivateNotes();
}
if ($a_enable_public_notes)
{
$notes_gui->enablePublicNotes();
if ((bool)$a_enable_notes_deletion)
{
$notes_gui->enablePublicNotesDeletion(true);
}
}
if($a_callback)
{
$notes_gui->addObserver($a_callback);
}
$next_class = $this->ctrl->getNextClass($this);
if ($next_class == "ilnotegui")
{
$html = $this->ctrl->forwardCommand($notes_gui);
}
else
{
$html = $notes_gui->getNotesHTML();
}
return $html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getOfflineDirectory ( )

get offline directory

Returns
directory where to store offline files

Definition at line 524 of file class.ilPageObjectGUI.php.

{
return $this->offline_directory;
}
ilPageObjectGUI::getOldNr ( )

Get old nr (historic page)

Returns
int old nr

Definition at line 205 of file class.ilPageObjectGUI.php.

Referenced by initPageObject().

{
return $this->old_nr;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPageConfig ( )

Get page config object.

Returns
object config object

Definition at line 270 of file class.ilPageObjectGUI.php.

References $page_config.

Referenced by ilLMPageGUI\__construct(), addActionsMenu(), addMultiLangActionsAndInfo(), compareVersion(), executeCommand(), getEnablePCType(), getQuestionHTML(), getTabs(), ilPageObjectGUI(), setEnablePCType(), setQuestionHTML(), and showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPageObject ( )

Get Page Object.

Returns
object Page Object

Definition at line 307 of file class.ilPageObjectGUI.php.

References $obj.

Referenced by ilLMPageGUI\__construct(), ilWikiPageGUI\__construct(), ilPortfolioPageGUI\__construct(), ilSCORM2004PageGUI\__construct(), ilDataCollectionRecordViewViewdefinitionGUI\activate(), activatePage(), ilWikiPageGUI\activateWikiPageRating(), addActionsMenu(), ilWikiPageGUI\addHeaderAction(), addMultiLangActionsAndInfo(), ilWikiPageGUI\blockWikiPage(), ilWikiPageGUI\confirmWikiPageDeletion(), createPageTranslation(), ilDataCollectionRecordViewViewdefinitionGUI\deactivate(), deactivatePage(), ilWikiPageGUI\deactivateWikiPageRating(), ilWikiPageGUI\deleteWikiPageConfirmationScreen(), displayMedia(), ilPortfolioPageGUI\dlcrsv(), ilPortfolioPageGUI\dlexcv(), ilPortfolioPageGUI\dlscov(), ilPortfolioPageGUI\dltstv(), download_paragraph(), edit(), ilTermDefinitionEditorGUI\executeCommand(), ilPortfolioPageGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilDataCollectionRecordViewViewdefinitionGUI\executeCommand(), executeCommand(), getActivationFormValues(), ilBlogPostingGUI\getBlogPosting(), ilMediaPoolPageGUI\getMediaPoolPage(), ilSCORM2004PageGUI\getQuestionHtmlOfPage(), ilSCORM2004PageGUI\getSCORM2004Page(), ilWikiPageGUI\getTabs(), ilWikiPageGUI\getWikiPage(), ilWikiPageGUI\hideAdvancedMetaData(), history(), ilPageObjectGUI(), ilBlogPostingGUI\initDateForm(), ilWikiPageGUI\initRenameForm(), ilBlogPostingGUI\initTitleForm(), ilWikiPageGUI\insertWikiLinkAC(), ilLMPageGUI\onFeedbackEditingForwarding(), ilImprintGUI\postOutputProcessing(), ilSCORM2004PageGUI\postOutputProcessing(), ilWikiPageGUI\preview(), ilWikiPageGUI\printViewOrderList(), releasePageLock(), ilWikiPageGUI\renamePage(), ilWikiPageGUI\renameWikiPage(), saveActivation(), ilWikiPageGUI\searchWikiLinkAC(), ilSCORM2004PageGUI\setDefaultLinkXml(), setDefaultLinkXml(), ilPortfolioTemplatePageGUI\showPage(), ilPortfolioPageGUI\showPage(), showPage(), switchToLanguage(), ilWikiPageGUI\unblockWikiPage(), ilWikiPageGUI\unhideAdvancedMetaData(), ilBlogPostingGUI\updateDate(), ilWikiPageGUI\updateStatsRating(), and ilBlogPostingGUI\updateTitle().

{
return $this->obj;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getParentType ( )

Get parent type.

Returns
string parent type

Reimplemented in ilPortfolioPageGUI, and ilPortfolioTemplatePageGUI.

Definition at line 165 of file class.ilPageObjectGUI.php.

References $parent_type.

Referenced by addMultiLangActionsAndInfo(), edit(), history(), initPageObject(), and showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPrependingHtml ( )

Get Prepending HTML.

Returns
string Prepending HTML

Definition at line 681 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->prependinghtml;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPresentationTitle ( )

Definition at line 342 of file class.ilPageObjectGUI.php.

References $presentation_title.

Referenced by compareVersion(), and showPage().

+ Here is the caller graph for this function:

ilPageObjectGUI::getQuestionHTML ( )

Definition at line 403 of file class.ilPageObjectGUI.php.

References getPageConfig().

{
return $this->getPageConfig()->getQuestionHTML();
}

+ Here is the call graph for this function:

ilPageObjectGUI::getQuestionXML ( )

Definition at line 398 of file class.ilPageObjectGUI.php.

{
return $this->question_xml;
}
ilPageObjectGUI::getRawPageContent ( )

Get Get raw page content only.

Returns
boolean Get raw page content only

Definition at line 721 of file class.ilPageObjectGUI.php.

References $rawpagecontent.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getRenderPageContainer ( )

Get render page container.

Returns
bool render page container

Definition at line 801 of file class.ilPageObjectGUI.php.

References $render_page_container.

Referenced by ilAssQuestionPageGUI\isPageContainerToBeRendered(), and isPageContainerToBeRendered().

+ Here is the caller graph for this function:

ilPageObjectGUI::getSourcecodeDownloadScript ( )
ilPageObjectGUI::getStyleId ( )

Get Style Id.

Returns
int Style Id

Definition at line 741 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->styleid;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getTabs (   $a_activate = "")

adds tabs to tab gui object

Parameters
object$tabs_guiilTabsGUI object

Reimplemented in ilWikiPageGUI, ilBlogPostingGUI, ilPortfolioPageGUI, and ilMediaPoolPageGUI.

Definition at line 3187 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, $ilUser, $lm_set, getEditPreview(), getEnabledNews(), getEnabledTabs(), getEnableEditing(), getPageConfig(), and setScreenIdComponent().

Referenced by executeCommand(), and getHTML().

{
global $ilTabs, $ilCtrl, $ilUser;
if (!$this->getEnabledTabs())
{
return;
}
//echo "-".$ilCtrl->getNextClass()."-".$ilCtrl->getCmd()."-";
// back to upper context
if (!$this->getEditPreview())
{
$ilTabs->addTarget("pg", $ilCtrl->getLinkTarget($this, "preview")
, array("", "preview"));
if ($this->getEnableEditing())
{
$ilTabs->addTarget("edit", $ilCtrl->getLinkTarget($this, "edit")
, array("", "edit"));
}
}
else
{
if ($this->getEnableEditing())
{
$ilTabs->addTarget("edit", $ilCtrl->getLinkTarget($this, "edit")
, array("", "edit"));
}
$ilTabs->addTarget("cont_preview", $ilCtrl->getLinkTarget($this, "preview")
, array("", "preview"));
}
//$tabs_gui->addTarget("properties", $this->ctrl->getLinkTarget($this, "properties")
// , "properties", get_class($this));
if ($this->use_meta_data)
{
$ilTabs->addTarget("meta_data",
$this->ctrl->getLinkTargetByClass('ilmdeditorgui',''),
"", "ilmdeditorgui");
}
$lm_set = new ilSetting("lm");
if ($this->getEnableEditing() && $lm_set->get("page_history", 1))
{
$ilTabs->addTarget("history", $this->ctrl->getLinkTarget($this, "history")
, "history", get_class($this));
if ($_GET["history_mode"] == "1" || $this->ctrl->getCmd() == "compareVersion")
{
$ilTabs->activateTab("history");
}
}
/* $tabs = $this->ctrl->getTabs();
foreach ($tabs as $tab)
{
$tabs_gui->addTarget($tab["lang_var"], $tab["link"]
, $tab["cmd"], $tab["class"]);
}
*/
if ($this->getEnableEditing() && $ilUser->getId() != ANONYMOUS_USER_ID)
{
$ilTabs->addTarget("clipboard", $this->ctrl->getLinkTargetByClass("ilEditClipboardGUI", "view")
, "view", "ilEditClipboardGUI");
}
if ($this->getPageConfig()->getEnableScheduledActivation())
{
$ilTabs->addTarget("cont_activation", $this->ctrl->getLinkTarget($this, "editActivation"),
"editActivation", get_class($this));
}
if ($this->getEnabledNews())
{
$ilTabs->addTarget("news",
$this->ctrl->getLinkTargetByClass("ilnewsitemgui", "editNews"),
"", "ilnewsitemgui");
}
// external hook to add tabs
if (is_array($this->tab_hook))
{
$func = $this->tab_hook["func"];
$this->tab_hook["obj"]->$func();
}
//$ilTabs->setTabActive("pg");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getTemplateOutputVar ( )

Definition at line 423 of file class.ilPageObjectGUI.php.

References $template_output_var.

Referenced by showPage().

+ Here is the caller graph for this function:

ilPageObjectGUI::getTemplateTargetVar ( )

Definition at line 413 of file class.ilPageObjectGUI.php.

References $target_var.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

static ilPageObjectGUI::getTinyMenu (   $a_par_type,
  $a_int_links = false,
  $a_wiki_links = false,
  $a_keywords = false,
  $a_style_id = 0,
  $a_paragraph_styles = true,
  $a_save_return = true,
  $a_anchors = false,
  $a_save_new = true 
)
static

Get Tiny Menu.

Definition at line 2155 of file class.ilPageObjectGUI.php.

References $ilCtrl, $lng, $mathJaxSetting, ilPCParagraphGUI\_getCharacteristics(), ilPageContentGUI\_getCommonBBButtons(), ilTooltipGUI\addTooltip(), ilPCParagraphGUI\getCharStyleSelector(), ilPCParagraphGUI\getStyleSelector(), and ilPageEditorSettings\lookupSettingByParentType().

Referenced by ilPCDataTableGUI\editData().

{
global $lng, $ilCtrl;
$mathJaxSetting = new ilSetting("MathJax");
include_once("./Services/COPage/classes/class.ilPageEditorSettings.php");
include_once("./Services/UIComponent/Tooltip/classes/class.ilTooltipGUI.php");
$btpl = new ilTemplate("tpl.tiny_menu.html", true, true, "Services/COPage");
// debug ghost element
if (DEVMODE == 1)
{
$btpl->touchBlock("debug_ghost");
}
// bullet list
$btpl->touchBlock("blist_button");
ilTooltipGUI::addTooltip("il_edm_blist",
$lng->txt("cont_blist"),
"iltinymenu_bd");
// numbered list
$btpl->touchBlock("nlist_button");
ilTooltipGUI::addTooltip("il_edm_nlist",
$lng->txt("cont_nlist"),
"iltinymenu_bd");
// list indent
$btpl->touchBlock("list_indent");
ilTooltipGUI::addTooltip("ilIndentBut",
$lng->txt("cont_list_indent"),
"iltinymenu_bd");
// list outdent
$btpl->touchBlock("list_outdent");
ilTooltipGUI::addTooltip("ilOutdentBut",
$lng->txt("cont_list_outdent"),
"iltinymenu_bd");
if ($a_int_links)
{
$btpl->touchBlock("bb_ilink_button");
ilTooltipGUI::addTooltip("iosEditInternalLinkTrigger", $lng->txt("cont_link_to_internal"),
"iltinymenu_bd");
}
ilTooltipGUI::addTooltip("il_edm_xlink", $lng->txt("cont_link_to_external"),
"iltinymenu_bd");
// remove format
$btpl->touchBlock("rformat_button");
ilTooltipGUI::addTooltip("il_edm_rformat", $lng->txt("cont_remove_format"),
"iltinymenu_bd");
if ($a_paragraph_styles)
{
// new paragraph
$btpl->setCurrentBlock("new_par");
$btpl->setVariable("IMG_NEWPAR", "+");
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_newpar", $lng->txt("cont_insert_new_paragraph"),
"iltinymenu_bd");
$btpl->setCurrentBlock("par_edit");
$btpl->setVariable("TXT_PAR_FORMAT", $lng->txt("cont_par_format"));
include_once("./Services/COPage/classes/class.ilPCParagraphGUI.php");
$btpl->setVariable("STYLE_SELECTOR", ilPCParagraphGUI::getStyleSelector($a_selected,
ilTooltipGUI::addTooltip("ilAdvSelListAnchorText_style_selection",
$lng->txt("cont_paragraph_styles"), "iltinymenu_bd");
$btpl->parseCurrentBlock();
}
if ($a_keywords)
{
$btpl->setCurrentBlock("bb_kw_button");
$btpl->setVariable("CC_KW", "kw");
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_kw", $lng->txt("cont_text_keyword"),
"iltinymenu_bd");
}
if ($a_wiki_links)
{
$btpl->setCurrentBlock("bb_wikilink_button2");
$btpl->setVariable("TXT_WIKI_BUTTON2", $lng->txt("obj_wiki"));
$btpl->setVariable("WIKI_BUTTON2_URL", $ilCtrl->getLinkTargetByClass("ilwikipagegui", ""));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_wlinkd", $lng->txt("cont_wiki_link_dialog"),
"iltinymenu_bd");
$btpl->setCurrentBlock("bb_wikilink_button");
$btpl->setVariable("TXT_WLN2", $lng->txt("obj_wiki"));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_wlink", $lng->txt("cont_link_to_wiki"),
"iltinymenu_bd");
}
$aset = new ilSetting("adve");
include_once("./Services/COPage/classes/class.ilPageContentGUI.php");
foreach (ilPageContentGUI::_getCommonBBButtons() as $c => $st)
{
// these are handled via drop down now...
if (in_array($c, array("com", "quot", "acc", "code")))
{
continue;
}
$a_par_type, "active_".$c, true))
{
$cc_code = $c;
if ($aset->get("use_physical"))
{
$cc_code = str_replace(array("str", "emp", "imp"), array("B", "I", "U"), $cc_code);
}
if ($c != "tex" || $mathJaxSetting->get("enable") || defined("URL_TO_LATEX"))
{
$btpl->setCurrentBlock("bb_".$c."_button");
$btpl->setVariable("CC_".strtoupper($c), $cc_code);
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_cc_".$c,
$lng->txt("cont_cc_".$c),
"iltinymenu_bd");
// $btpl->setVariable("TXT_".strtoupper($c), $this->lng->txt("cont_text_".$c));
}
}
}
if ($mathJaxSetting->get("enable") || defined("URL_TO_LATEX"))
{
ilTooltipGUI::addTooltip("il_edm_tex", $lng->txt("cont_tex"),
"iltinymenu_bd");
}
ilTooltipGUI::addTooltip("il_edm_fn", $lng->txt("cont_fn"),
"iltinymenu_bd");
include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
$sdd->setPullRight(false);
$sdd->setListTitle($lng->txt("save")."...");
if ($a_save_return)
{
$btpl->setCurrentBlock("save_return");
$btpl->setVariable("TXT_SAVE_RETURN", $lng->txt("save_return"));
$btpl->parseCurrentBlock();
$sdd->addItem($lng->txt("save_return"), "", "#", "", "", "", "", "", "ilCOPage.cmdSaveReturn(false); return false;");
}
if ($a_save_new)
{
$btpl->setCurrentBlock("save_new");
$btpl->setVariable("TXT_SAVE_NEW", $lng->txt("save_new"));
$btpl->parseCurrentBlock();
$sdd->addItem($lng->txt("save_new"), "", "#", "", "", "", "", "", "ilCOPage.cmdSaveReturn(true); return false;");
}
$sdd->addItem($lng->txt("save"), "", "#", "", "", "", "", "", "ilCOPage.cmdSave(null); return false;");
$sdd->addItem($lng->txt("cancel"), "", "#", "", "", "", "", "", "ilCOPage.cmdCancel(); return false;");
if ($a_anchors)
{
$btpl->setCurrentBlock("bb_anc_button");
$btpl->setVariable("CC_ANC", "anc");
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_anc", $lng->txt("cont_anchor"),
"iltinymenu_bd");
}
$btpl->setVariable("SAVE_DROPDOWN", $sdd->getHTML());
/* // footnote
$btpl->setVariable("TXT_ILN", $this->lng->txt("cont_text_iln"));
$btpl->setVariable("TXT_BB_TIP", $this->lng->txt("cont_bb_tip"));
$btpl->setVariable("TXT_WLN", $lng->txt("wiki_wiki_page"));
*/
// $btpl->setVariable("PAR_TA_NAME", $a_ta_name);
$btpl->setVariable("TXT_SAVE", $lng->txt("save"));
$btpl->setVariable("TXT_CANCEL", $lng->txt("cancel"));
$btpl->setVariable("TXT_CHAR_FORMAT", $lng->txt("cont_char_format"));
$btpl->setVariable("TXT_LISTS", $lng->txt("cont_lists"));
$btpl->setVariable("TXT_LINKS", $lng->txt("cont_links"));
$btpl->setVariable("TXT_MORE_FUNCTIONS", $lng->txt("cont_more_functions"));
$btpl->setVariable("TXT_SAVING", $lng->txt("cont_saving"));
include_once("./Services/COPage/classes/class.ilPCParagraphGUI.php");
$btpl->setVariable("CHAR_STYLE_SELECTOR", ilPCParagraphGUI::getCharStyleSelector($a_par_type));
ilTooltipGUI::addTooltip("ilAdvSelListAnchorElement_char_style_selection",
$lng->txt("cont_more_character_styles"), "iltinymenu_bd");
return $btpl->get();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getViewPageLink ( )

get view page link

Definition at line 544 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->view_page_link;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getViewPageTarget ( )

get view page target frame

Definition at line 552 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->view_page_target;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::history ( )

Get history table as HTML.

Definition at line 3087 of file class.ilPageObjectGUI.php.

References $lng, $tpl, getEnableEditing(), getId(), getPageObject(), and getParentType().

{
global $tpl, $lng, $ilAccess;
if (!$this->getEnableEditing())
{
return;
}
$tpl->addJavaScript("./Services/COPage/js/page_history.js");
include_once("./Services/COPage/classes/class.ilPageHistoryTableGUI.php");
$table_gui = new ilPageHistoryTableGUI($this, "history");
$table_gui->setId("hist_table");
$entries = $this->getPageObject()->getHistoryEntries();
$entries[] = array('page_id' => $this->getPageObject()->getId(),
'parent_type' => $this->getPageObject()->getParentType(),
'hdate' => $this->getPageObject()->getLastChange(),
'parent_id' => $this->getPageObject()->getParentId(),
'nr' => 0,
'sortkey' => 999999,
'user' => $this->getPageObject()->last_change_user);
$table_gui->setData($entries);
return $table_gui->getHTML();
}

+ Here is the call graph for this function:

ilPageObjectGUI::ilPageObjectGUI (   $a_parent_type,
  $a_id,
  $a_old_nr = 0,
  $a_prevent_get_id = false,
  $a_lang = "" 
)

Constructor.

Parameters
string$a_parent_typetype of parent object
int$a_idpage id
int$a_old_nrhistory number (current version 0)
bool$a_prevent_get_idprevent getting id automatically from $_GET (e.g. set when concentInclude are included)
string$a_langlanguage ("" reads also $_GET["transl"], "-" forces master lang)

Definition at line 78 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, afterConstructor(), getPageConfig(), getPageObject(), IL_PAGE_PRESENTATION, initPageObject(), setEnabledPageFocus(), setId(), setLanguage(), setOldNr(), setOutputMode(), setPageConfig(), setParentType(), and setTemplateOutput().

{
global $tpl, $lng, $ilCtrl,$ilTabs;
$this->setParentType($a_parent_type);
$this->setId($a_id);
if ($a_old_nr == 0 && !$a_prevent_get_id && $_GET["old_nr"] > 0)
{
$a_old_nr = $_GET["old_nr"];
}
$this->setOldNr($a_old_nr);
if ($a_lang == "" && $_GET["transl"] != "")
{
$this->setLanguage($_GET["transl"]);
}
else
{
if ($a_lang == "")
{
$a_lang = "-";
}
$this->setLanguage($a_lang);
}
$this->tpl = $tpl;
$this->ctrl = $ilCtrl;
$this->lng = $lng;
$this->setEnabledPageFocus(true);
$this->initPageObject();
$this->output2template = true;
$this->question_xml = "";
$this->question_html = "";
$this->tabs_gui =& $ilTabs;
$this->template_output_var = "PAGE_CONTENT";
$this->citation = false;
$this->change_comments = false;
$this->page_back_title = $this->lng->txt("page");
$lng->loadLanguageModule("content");
$this->setTemplateOutput(false);
$ilCtrl->saveParameter($this, "transl");
$this->afterConstructor();
}

+ Here is the call graph for this function:

ilPageObjectGUI::initActivationForm ( )

Init activation form.

Definition at line 3365 of file class.ilPageObjectGUI.php.

References $ilCtrl, $lng, ilRadioOption\addSubItem(), ilFormPropertyGUI\setInfo(), and ilDateTimeInputGUI\setShowTime().

Referenced by editActivation(), and saveActivation().

{
global $ilCtrl, $lng;
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
$this->form->setFormAction($ilCtrl->getFormAction($this));
$this->form->setTitle($lng->txt("cont_page_activation"));
// activation type radio
$rad = new ilRadioGroupInputGUI($lng->txt("cont_activation"), "activation");
$rad_op1 = new ilRadioOption($lng->txt("cont_activated"), "activated");
$rad->addOption($rad_op1);
$rad_op2 = new ilRadioOption($lng->txt("cont_deactivated"), "deactivated");
$rad->addOption($rad_op2);
$rad_op3 = new ilRadioOption($lng->txt("cont_scheduled_activation"), "scheduled");
$dt_prop = new ilDateTimeInputGUI($lng->txt("cont_start"), "start");
$dt_prop->setShowTime(true);
$rad_op3->addSubItem($dt_prop);
$dt_prop2 = new ilDateTimeInputGUI($lng->txt("cont_end"), "end");
$dt_prop2->setShowTime(true);
$rad_op3->addSubItem($dt_prop2);
// show activation information
$cb = new ilCheckboxInputGUI($this->lng->txt("cont_show_activation_info"), "show_activation_info");
$cb->setInfo($this->lng->txt("cont_show_activation_info_info"));
$rad_op3->addSubItem($cb);
$rad->addOption($rad_op3);
$this->form->addCommandButton("saveActivation", $lng->txt("save"));
$this->form->addItem($rad);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::initialOpenedContent ( )

Initially opened content.

Parameters
@return

Definition at line 3565 of file class.ilPageObjectGUI.php.

References $ilCtrl, and initOpenedContentForm().

{
global $ilTabs, $ilCtrl;
$ilTabs->activateTab("edit");
$form = $this->initOpenedContentForm();
$this->tpl->setContent($form->getHTML());
}

+ Here is the call graph for this function:

ilPageObjectGUI::initOpenedContentForm ( )

Init form for initially opened content.

Parameters
@return

Definition at line 3581 of file class.ilPageObjectGUI.php.

References $ilCtrl, ilLinkInputGUI\INT, and ilLinkInputGUI\setAllowedLinkTypes().

Referenced by executeCommand(), and initialOpenedContent().

{
global $ilCtrl;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
// link input
include_once 'Services/Form/classes/class.ilLinkInputGUI.php';
$ac = new ilLinkInputGUI($this->lng->txt('cont_resource'), 'opened_content');
$ac->setInternalLinkDefault("Media_Media", 0);
$ac->setInternalLinkFilterTypes(array("PageObject_FAQ", "GlossaryItem", "Media_Media", "Media_FAQ"));
$val = $this->obj->getInitialOpenedContent();
if ($val["id"] != "" && $val["type"] != "")
{
$ac->setValue($val["type"]."|".$val["id"]."|".$val["target"]);
}
$form->addItem($ac);
$form->addCommandButton("saveInitialOpenedContent", $this->lng->txt("save"));
$form->addCommandButton("edit", $this->lng->txt("cancel"));
$form->setTitle($this->lng->txt("cont_initial_attached_content"));
$form->setFormAction($ilCtrl->getFormAction($this));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::initPageObject ( )
finalprotected

Init page object.

Definition at line 142 of file class.ilPageObjectGUI.php.

References getId(), ilPageObjectFactory\getInstance(), getLanguage(), getOldNr(), getParentType(), and setPageObject().

Referenced by ilPageObjectGUI().

{
include_once("./Services/COPage/classes/class.ilPageObjectFactory.php");
$page = ilPageObjectFactory::getInstance($this->getParentType(), $this->getId(), $this->getOldNr(),
$this->getLanguage());
$this->setPageObject($page);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::insertAdvTrigger (   $a_output)

Insert adv content trigger.

Parameters
string$a_outputoutput
Returns
string modified output

Definition at line 2776 of file class.ilPageObjectGUI.php.

References $lng, and getAbstractOnly().

Referenced by showPage().

{
global $lng;
if (!$this->getAbstractOnly())
{
$a_output = str_replace("{{{{{LV_show_adv}}}}}",
$lng->txt("cont_show_adv"), $a_output);
$a_output = str_replace("{{{{{LV_hide_adv}}}}}",
$lng->txt("cont_hide_adv"), $a_output);
}
else
{
$a_output = str_replace("{{{{{LV_show_adv}}}}}",
"", $a_output);
$a_output = str_replace("{{{{{LV_hide_adv}}}}}",
"", $a_output);
}
return $a_output;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::insertContentIncludes (   $a_html)

Insert content includes.

Definition at line 2573 of file class.ilPageObjectGUI.php.

References $ilCtrl, $lng, ilMediaPoolPage\_exists(), determineFileDownloadLink(), determineFullscreenLink(), determineSourcecodeDownloadScript(), getOutputMode(), and IL_PAGE_OFFLINE.

Referenced by showPage().

{
global $ilCtrl, $lng;
$c_pos = 0;
$start = strpos($a_html, "{{{{{ContentInclude;");
if (is_int($start))
{
$end = strpos($a_html, "}}}}}", $start);
}
$i = 1;
while ($end > 0)
{
$param = substr($a_html, $start + 20, $end - $start - 20);
$param = explode(";", $param);
if ($param[0] == "mep" && is_numeric($param[1]) && $param[2] <= 0)
{
include_once("./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php");
if (ilMediaPoolPage::_exists($param[1]))
{
$page_gui = new ilMediaPoolPageGUI($param[1], 0, true, "-");
if ($this->getOutputMode() != "offline")
{
$page_gui->setFileDownloadLink($this->determineFileDownloadLink());
$page_gui->setFullscreenLink($this->determineFullscreenLink());
$page_gui->setSourceCodeDownloadScript($this->determineSourcecodeDownloadScript());
}
else
{
$page_gui->setOutputMode(IL_PAGE_OFFLINE);
}
$html = $page_gui->getRawContent();
}
else
{
if ($this->getOutputMode() == "edit")
{
$html = "// ".$lng->txt("cont_missing_snippet")." //";
}
}
$h2 = substr($a_html, 0, $start).
$html.
substr($a_html, $end + 5);
$a_html = $h2;
$i++;
}
$start = strpos($a_html, "{{{{{ContentInclude;", $start + 5);
$end = 0;
if (is_int($start))
{
$end = strpos($a_html, "}}}}}", $start);
}
}
return $a_html;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::insertHelp (   $a_tpl)

Insert help texts.

Definition at line 2811 of file class.ilPageObjectGUI.php.

References $lng, ilGlyphGUI\ADD, ilGlyphGUI\DRAG, and ilGlyphGUI\get().

Referenced by showPage().

{
global $lng;
$a_tpl->setCurrentBlock("help");
$a_tpl->setVariable("TXT_ADD_EL", $lng->txt("cont_add_elements"));
include_once("./Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php");
$a_tpl->setVariable("PLUS", ilGlyphGUI::get(ilGlyphGUI::ADD));
$a_tpl->setVariable("DRAG_ARROW", ilGlyphGUI::get(ilGlyphGUI::DRAG));
$a_tpl->setVariable("TXT_DRAG", $lng->txt("cont_drag_and_drop_elements"));
$a_tpl->setVariable("TXT_SEL", $lng->txt("cont_double_click_to_delete"));
$a_tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::insertJSAtPlaceholder ( )

InsertJS at placeholder.

Parameters
@return

Definition at line 2946 of file class.ilPageObjectGUI.php.

References $_GET, $tpl, and edit().

{
global $tpl;
// 'pl_hier_id' => string '2_1_1_1' (length=7)
// 'pl_pc_id' => string '1f77eb1d8a478497d69b99d938fda8f' (length=31)
$html = $this->edit();
$tpl->addOnLoadCode("ilCOPage.insertJSAtPlaceholder('".
$_GET["pl_hier_id"].":".$_GET["pl_pc_id"].
"');", 3);
return $html;
}

+ Here is the call graph for this function:

ilPageObjectGUI::insertPageToc (   $a_output)

Insert page toc.

Parameters
stringoutput
Returns
string output

Definition at line 2638 of file class.ilPageObjectGUI.php.

References $lng, $n, $tpl, ilStr\replaceFirsOccurence(), and ilStr\strPosAll().

Referenced by showPage().

{
global $lng;
include_once("./Services/Utilities/classes/class.ilStr.php");
// extract all headings
$offsets = ilStr::strPosAll($a_output, "ilPageTocH");
$page_heads = array();
foreach ($offsets as $os)
{
$level = (int) substr($a_output, $os + 10, 1);
if (in_array($level, array(1,2,3)))
{
$anchor = str_replace("TocH", "TocA",
substr($a_output, $os, strpos($a_output, "<", $os) - $os - 3)
);
// get heading
$tag_start = stripos($a_output, "<h".$level." ", $os);
$tag_end = stripos($a_output, "</h".$level.">", $tag_start);
$head = substr($a_output, $tag_start, $tag_end - $tag_start);
// get headings text
$text_start = stripos($head, ">") + 1;
$text_end = strripos($head, "<!--", $text_start);
$text = substr($head, $text_start, $text_end - $text_start);
$page_heads[] = array("level" => $level, "text" => $text,
"anchor" => $anchor);
}
}
if (count($page_heads) > 1)
{
include_once("./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
$list = new ilNestedList();
$list->setAutoNumbering(true);
$list->setListClass("ilc_page_toc_PageTOCList");
$list->setItemClass("ilc_page_toc_PageTOCItem");
$i = 0;
$c_depth = 1;
$c_par[1] = 0;
$c_par[2] = 0;
$nr[1] = 1;
$nr[2] = 1;
$nr[3] = 1;
foreach ($page_heads as $ind => $h)
{
$i++;
$par = 0;
// check if we have a parent for one level up
$par = 0;
if ($h["level"] == 2 && $c_par[1] > 0)
{
$par = $c_par[1];
}
if ($h["level"] == 3 && $c_par[2] > 0)
{
$par = $c_par[2];
}
$h["text"] = str_replace("<!--PageTocPH-->", "", $h["text"]);
// add the list node
$list->addListNode(
"<a href='#".$h["anchor"]."' class='ilc_page_toc_PageTOCLink'>".$h["text"]."</a>",
$i, $par);
// set the node as current parent of the level
if ($h["level"] == 1)
{
$c_par[1] = $i;
$c_par[2] = 0;
}
if ($h["level"] == 2)
{
$c_par[2] = $i;
}
}
$tpl = new ilTemplate("tpl.page_toc.html", true, true,
"Services/COPage");
$tpl->setVariable("PAGE_TOC", $list->getHTML());
$tpl->setVariable("TXT_PAGE_TOC", $lng->txt("cont_page_toc"));
$tpl->setVariable("TXT_HIDE", $lng->txt("hide"));
$tpl->setVariable("TXT_SHOW", $lng->txt("show"));
$a_output = str_replace("{{{{{PageTOC}}}}}",
$tpl->get(), $a_output);
$numbers = $list->getNumbers();
if (count($numbers) > 0)
{
include_once("./Services/Utilities/classes/class.ilStr.php");
foreach ($numbers as $n)
{
$a_output =
ilStr::replaceFirsOccurence("<!--PageTocPH-->", $n." ", $a_output);
}
}
}
else
{
$a_output = str_replace("{{{{{PageTOC}}}}}",
"", $a_output);
}
return $a_output;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::insertResources (   $a_output)

Insert resources.

Parameters
@return

Definition at line 2755 of file class.ilPageObjectGUI.php.

References getEnablePCType(), getOutputMode(), and ilPCResourcesGUI\insertResourcesIntoPageContent().

Referenced by showPage().

{
// this is edit mode only
if ($this->getEnablePCType("Resources") &&
($this->getOutputMode() == "edit" || $this->getOutputMode() == "preview"))
{
include_once("./Services/COPage/classes/class.ilPCResourcesGUI.php");
}
return $a_output;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::isEnabledChangeComments ( )

Definition at line 494 of file class.ilPageObjectGUI.php.

References $change_comments.

Referenced by showPage().

+ Here is the caller graph for this function:

ilPageObjectGUI::isEnabledCitation ( )

Definition at line 442 of file class.ilPageObjectGUI.php.

References $citation.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::isEnabledNotes ( )

Definition at line 505 of file class.ilPageObjectGUI.php.

Referenced by edit().

{
return $this->notes_enabled;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::isPageContainerToBeRendered ( )
protected

Reimplemented in ilAssQuestionPageGUI.

Definition at line 3710 of file class.ilPageObjectGUI.php.

References getOutputMode(), getRenderPageContainer(), and IL_PAGE_PREVIEW.

Referenced by showPage().

{
return (
);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::onFeedbackEditingForwarding ( )

On feedback editing forwarding.

Reimplemented in ilLMPageGUI.

Definition at line 1104 of file class.ilPageObjectGUI.php.

Referenced by executeCommand().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::outputToTemplate ( )

Definition at line 332 of file class.ilPageObjectGUI.php.

References $output2template.

Referenced by showPage().

+ Here is the caller graph for this function:

ilPageObjectGUI::postOutputProcessing (   $a_output)

Finalizing output processing.

Maybe overwritten in derived classes, e.g. in wiki module.

Reimplemented in ilWikiPageGUI, ilBlogPostingGUI, ilSCORM2004PageGUI, ilDataCollectionRecordViewViewdefinitionGUI, ilPortfolioPageGUI, and ilImprintGUI.

Definition at line 2803 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $a_output;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::presentation (   $a_mode = IL_PAGE_PRESENTATION)

Definition at line 2991 of file class.ilPageObjectGUI.php.

References setOutputMode(), and showPage().

{
global $tree;
$this->setOutputMode($a_mode);
return $this->showPage();
}

+ Here is the call graph for this function:

ilPageObjectGUI::preview ( )

preview

Reimplemented in ilWikiPageGUI, and ilMediaPoolPageGUI.

Definition at line 2836 of file class.ilPageObjectGUI.php.

References IL_PAGE_PREVIEW, setOutputMode(), and showPage().

Referenced by ilBlogPostingGUI\previewEmbedded(), ilBlogPostingGUI\previewFullscreen(), and previewHistory().

{
global $tree;
return $this->showPage();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::previewHistory ( )

Preview history.

Definition at line 2828 of file class.ilPageObjectGUI.php.

References preview().

{
$this->preview();
}

+ Here is the call graph for this function:

ilPageObjectGUI::processAnswer ( )

Process answer.

Reimplemented in ilLMPageGUI.

Definition at line 3535 of file class.ilPageObjectGUI.php.

References $_POST, $ilLog, ilPageQuestionProcessor\saveQuestionAnswer(), and ilUtil\stripSlashes().

{
global $ilLog;
/*$ilLog->write($_POST);
$ilLog->write($_POST["id"]);
$ilLog->write($_POST["type"]);
$ilLog->write($_POST["answer"]);
$ilLog->write($_GET);*/
include_once("./Services/COPage/classes/class.ilPageQuestionProcessor.php");
}

+ Here is the call graph for this function:

ilPageObjectGUI::releasePageLock ( )

Release page lock.

Definition at line 3701 of file class.ilPageObjectGUI.php.

References $ilCtrl, $lng, getPageObject(), and ilUtil\sendSuccess().

{
global $ilCtrl, $lng;
$this->getPageObject()->releasePageLock();
ilUtil::sendSuccess($lng->txt("cont_page_lock_released"), true);
$ilCtrl->redirect($this, "preview");
}

+ Here is the call graph for this function:

ilPageObjectGUI::replaceCurlyBrackets (   $output)

Replace curly brackets.

Parameters
@return

Definition at line 1891 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
//echo "<br><br>".htmlentities($output);
while (is_int($start = strpos($output, "<!--ParStart-->")) &&
is_int($end = strpos($output, "<!--ParEnd-->", $start)))
{
$output = substr($output, 0, $start).
str_replace(array("{","}"), array("&#123;","&#125;"),
substr($output, $start + 15, $end - ($start + 15))).
substr($output, $end + 13);
}
// $output = str_replace("{", "&#123;", $output);
// $output = str_replace("}", "&#125;", $output);
//echo "<br><br>".htmlentities($output);
return $output;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::replaceDiffTags (   $a_html)

Definition at line 3333 of file class.ilPageObjectGUI.php.

Referenced by compareVersion().

{
$a_html = str_replace("[ilDiffInsStart]", '<span class="ilDiffIns">', $a_html);
$a_html = str_replace("[ilDiffDelStart]", '<span class="ilDiffDel">', $a_html);
$a_html = str_replace("[ilDiffInsEnd]", '</span>', $a_html);
$a_html = str_replace("[ilDiffDelEnd]", '</span>', $a_html);
return $a_html;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::rollback ( )

Rollback to a previous version.

Definition at line 3146 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, and getEnableEditing().

{
global $ilCtrl;
if (!$this->getEnableEditing())
{
return;
}
$hentry = $this->obj->getHistoryEntry($_GET["rollback_nr"]);
if ($hentry["content"] != "")
{
$this->obj->setXMLContent($hentry["content"]);
$this->obj->buildDom(true);
if ($this->obj->update())
{
$ilCtrl->redirect($this, "history");
}
}
$ilCtrl->redirect($this, "history");
}

+ Here is the call graph for this function:

ilPageObjectGUI::rollbackConfirmation ( )

Rollback confirmation.

Definition at line 3116 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, ilDatePresentation\formatDate(), getEnableEditing(), and IL_CAL_DATETIME.

{
global $tpl, $lng, $ilAccess, $ilCtrl;
if (!$this->getEnableEditing())
{
return;
}
include_once("Services/Utilities/classes/class.ilConfirmationGUI.php");
$c_gui = new ilConfirmationGUI();
// set confirm/cancel commands
$ilCtrl->setParameter($this, "rollback_nr", $_GET["old_nr"]);
$c_gui->setFormAction($ilCtrl->getFormAction($this, "rollback"));
$c_gui->setHeaderText($lng->txt("cont_rollback_confirmation"));
$c_gui->setCancel($lng->txt("cancel"), "history");
$c_gui->setConfirm($lng->txt("confirm"), "rollback");
$hentry = $this->obj->getHistoryEntry($_GET["old_nr"]);
$c_gui->addItem("id[]", $_GET["old_nr"],
$tpl->setContent($c_gui->getHTML());
}

+ Here is the call graph for this function:

ilPageObjectGUI::saveActivation ( )

Save Activation.

Definition at line 3438 of file class.ilPageObjectGUI.php.

References $_POST, $ilCtrl, $lng, $tpl, getPageObject(), IL_CAL_DATETIME, initActivationForm(), and ilUtil\sendSuccess().

{
global $tpl, $lng, $ilCtrl;
if ($this->form->checkInput())
{
$this->getPageObject()->setActive(true);
$this->getPageObject()->setActivationStart(null);
$this->getPageObject()->setActivationEnd(null);
$this->getPageObject()->setShowActivationInfo($_POST["show_activation_info"]);
if ($_POST["activation"] == "deactivated")
{
$this->getPageObject()->setActive(false);
}
if ($_POST["activation"] == "scheduled")
{
$this->getPageObject()->setActive(false);
$this->getPageObject()->setActivationStart(
$this->form->getItemByPostVar("start")->getDate()->get(IL_CAL_DATETIME));
$this->getPageObject()->setActivationEnd(
$this->form->getItemByPostVar("end")->getDate()->get(IL_CAL_DATETIME));
}
$this->getPageObject()->update();
ilUtil::sendSuccess($lng->txt("msg_obj_modified"), true);
$ilCtrl->redirect($this, "editActivation");
}
$this->form->getValuesByPost();
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilPageObjectGUI::saveInitialOpenedContent ( )

Save initial opened content.

Parameters
@return

Definition at line 3616 of file class.ilPageObjectGUI.php.

References $_POST, $ilCtrl, ilUtil\sendSuccess(), and ilUtil\stripSlashes().

{
global $ilCtrl;
$this->obj->saveInitialOpenedContent(
ilUtil::stripSlashes($_POST["opened_content_ajax_type"]),
ilUtil::stripSlashes($_POST["opened_content_ajax_id"]),
ilUtil::stripSlashes($_POST["opened_content_ajax_target"])
);
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"));
$ilCtrl->redirect($this, "edit");
}

+ Here is the call graph for this function:

ilPageObjectGUI::setAbstractOnly (   $a_val)

Set abstract only.

Parameters
boolean$a_valget only abstract (first text paragraph)

Definition at line 771 of file class.ilPageObjectGUI.php.

{
$this->abstract_only = $a_val;
}
ilPageObjectGUI::setActivationListener ( $a_obj,
  $a_meth 
)

Definition at line 557 of file class.ilPageObjectGUI.php.

{
$this->act_obj =& $a_obj;
$this->act_meth = $a_meth;
}
ilPageObjectGUI::setBibId (   $a_id)

Set Bib Id.

Definition at line 278 of file class.ilPageObjectGUI.php.

{
// USED FOR SELECTION WHICH PAGE TURNS AND LATER PAGES SHOULD BE SHOWN
$this->bib_id = $a_id;
}
ilPageObjectGUI::setCompareMode (   $a_val)

Set compare mode.

Parameters
booleancompare_mode

Definition at line 751 of file class.ilPageObjectGUI.php.

Referenced by compareVersion().

{
$this->compare_mode = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setDefaultLinkXml ( )

Set standard link xml.

Reimplemented in ilSCORM2004PageGUI.

Definition at line 2364 of file class.ilPageObjectGUI.php.

References $ilCtrl, $target_arr, $target_id, ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilWikiPage\getGotoForWikiPageTarget(), getPageObject(), and setLinkXML().

Referenced by showPage().

{
global $ilCtrl;
$int_links = $this->getPageObject()->getInternalLinks();
//var_dump($int_links);
$link_info = "<IntLinkInfos>";
$targetframe = "None";
foreach ($int_links as $int_link)
{
$target = $int_link["Target"];
if (substr($target, 0, 4) == "il__")
{
$target_arr = explode("_", $target);
$type = $int_link["Type"];
$targetframe = ($int_link["TargetFrame"] != "")
? $int_link["TargetFrame"]
: "None";
$ltarget="_top";
if ($targetframe != "None")
{
$ltarget="_blank";
}
// anchor
$anc = $anc_add = "";
if ($int_link["Anchor"] != "")
{
$anc = $int_link["Anchor"];
$anc_add = "_".rawurlencode($int_link["Anchor"]);
}
$href = "";
switch($type)
{
case "PageObject":
case "StructureObject":
if ($type == "PageObject")
{
$href = "./goto.php?target=pg_".$target_id.$anc_add;
}
else
{
$href = "./goto.php?target=st_".$target_id;
}
break;
case "GlossaryItem":
if ($targetframe == "None")
{
$targetframe = "Glossary";
}
$href = "./goto.php?target=git_".$target_id;
break;
case "MediaObject":
$ilCtrl->setParameter($this, "mob_id", $target_id);
//$ilCtrl->setParameter($this, "pg_id", $this->obj->getId());
$href = $ilCtrl->getLinkTarget($this, "displayMedia");
$ilCtrl->setParameter($this, "mob_id", "");
break;
case "WikiPage":
include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
break;
case "RepositoryItem":
$obj_type = ilObject::_lookupType($target_id, true);
$href = "./goto.php?target=".$obj_type."_".$target_id;
break;
}
$anc_par = 'Anchor="'.$anc.'"';
$link_info.="<IntLinkInfo Target=\"$target\" Type=\"$type\" ".$anc_par." ".
"TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" />";
}
}
$link_info.= "</IntLinkInfos>";
$this->setLinkXML($link_info);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEditMode ( )

Set edit mode.

Definition at line 2110 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, and $ilUser.

{
global $ilCtrl, $ilUser;
if ($_GET["media_mode"] != "")
{
if ($_GET["media_mode"] == "disable")
{
$ilUser->writePref("ilPageEditor_MediaMode", "disable");
}
else
{
$ilUser->writePref("ilPageEditor_MediaMode", "");
}
}
if ($_GET["html_mode"] != "")
{
if ($_GET["html_mode"] == "disable")
{
$ilUser->writePref("ilPageEditor_HTMLMode", "disable");
}
else
{
$ilUser->writePref("ilPageEditor_HTMLMode", "");
}
}
if ($_GET["js_mode"] != "")
{
if ($_GET["js_mode"] == "disable")
{
$ilUser->writePref("ilPageEditor_JavaScript", "disable");
}
else
{
$ilUser->writePref("ilPageEditor_JavaScript", "");
}
}
$ilCtrl->redirect($this, "edit");
}
ilPageObjectGUI::setEditPreview (   $a_editpreview)

Set Display first Edit tab, then Preview tab, instead of Page and Edit.

Parameters
boolean$a_editpreviewEdit/preview mode

Definition at line 598 of file class.ilPageObjectGUI.php.

Referenced by ilMediaPoolPageGUI\__construct(), ilLMPageObjectGUI\editLayout(), ilSCORM2004PageNodeGUI\executeCommand(), ilTermDefinitionEditorGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), and ilAssQuestionPreviewGUI\populateSolutionOutput().

{
$this->editpreview = $a_editpreview;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledNews (   $a_enabled,
  $a_news_obj_id = 0,
  $a_news_obj_type = 0 
)

Set enabled news.

Parameters
booleanenabled news

Definition at line 568 of file class.ilPageObjectGUI.php.

{
$this->enabled_news = $a_enabled;
$this->news_obj_id = $a_news_obj_id;
$this->news_obj_type = $a_news_obj_type;
}
ilPageObjectGUI::setEnabledPageFocus (   $a_enabledpagefocus)

Set Enable page focus.

Parameters
boolean$a_enabledpagefocusEnable page focus

Definition at line 638 of file class.ilPageObjectGUI.php.

Referenced by ilAssQuestionPageGUI\__construct(), and ilPageObjectGUI().

{
$this->enabledpagefocus = $a_enabledpagefocus;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledTabs (   $a_enabledtabs)

Set Output tabs.

Parameters
boolean$a_enabledtabsOutput tabs

Definition at line 618 of file class.ilPageObjectGUI.php.

{
$this->tabs_enabled = $a_enabledtabs;
}
ilPageObjectGUI::setEnableEditing (   $a_enableediting)

Set Enable Editing.

Parameters
boolean$a_enableeditingEnable Editing

Definition at line 691 of file class.ilPageObjectGUI.php.

Referenced by ilBlogPostingGUI\__construct().

{
$this->enableediting = $a_enableediting;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnablePCType (   $a_pc_type,
  $a_val 
)

Set enable pc type.

Parameters
boolean$a_valenable pc type true/false

Definition at line 240 of file class.ilPageObjectGUI.php.

References getPageConfig().

{
$this->getPageConfig()->setEnablePCType($a_pc_type, $a_val);
}

+ Here is the call graph for this function:

ilPageObjectGUI::setExplorerUpdater (   $a_exp_frame,
  $a_exp_id,
  $a_exp_target_script 
)

Set Explorer Updater.

Parameters
object$a_treeTree Object

Definition at line 658 of file class.ilPageObjectGUI.php.

{
return;
$this->exp_frame = $a_exp_frame;
$this->exp_id = $a_exp_id;
$this->exp_target_script = $a_exp_target_script;
}
ilPageObjectGUI::setFileDownloadLink (   $a_download_link)

Definition at line 463 of file class.ilPageObjectGUI.php.

{
$this->file_download_link = $a_download_link;
}
ilPageObjectGUI::setFullscreenLink (   $a_fullscreen_link)

Definition at line 474 of file class.ilPageObjectGUI.php.

{
$this->fullscreen_link = $a_fullscreen_link;
}
ilPageObjectGUI::setHeader (   $a_title = "")

Definition at line 347 of file class.ilPageObjectGUI.php.

{
$this->header = $a_title;
}
ilPageObjectGUI::setId (   $a_val)

Set ID.

Parameters
integer$a_valid

Definition at line 175 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
$this->id = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setIntLinkReturn (   $a_return)

Definition at line 484 of file class.ilPageObjectGUI.php.

Referenced by ilSCORM2004PageGUI\__construct().

{
$this->int_link_return = $a_return;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setLanguage (   $a_val)

Set language.

Parameters
string$a_vallanguage

Definition at line 215 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
$this->language = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setLinkFrame (   $l_frame = "")

Definition at line 367 of file class.ilPageObjectGUI.php.

{
$this->link_frame = $l_frame;
}
ilPageObjectGUI::setLinkParams (   $l_params = "")

Definition at line 357 of file class.ilPageObjectGUI.php.

{
$this->link_params = $l_params;
}
ilPageObjectGUI::setLinkXML (   $link_xml)

Definition at line 377 of file class.ilPageObjectGUI.php.

Referenced by ilMediaPoolPageGUI\getRawContent(), ilSCORM2004PageGUI\setDefaultLinkXml(), and setDefaultLinkXml().

{
$this->link_xml = $link_xml;
$this->link_xml_set = true;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setLocator ( $a_locator)

Definition at line 447 of file class.ilPageObjectGUI.php.

{
$this->locator =& $a_locator;
}
ilPageObjectGUI::setOfflineDirectory (   $offdir)

set offline directory to offdir

Parameters
offdircontains diretory where to store files

Definition at line 515 of file class.ilPageObjectGUI.php.

{
$this->offline_directory = $offdir;
}
ilPageObjectGUI::setOldNr (   $a_val)

Set old nr (historic page)

Parameters
int$a_valold nr

Definition at line 195 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
$this->old_nr = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setOutputMode (   $a_mode = IL_PAGE_PRESENTATION)

Set Output Mode.

Parameters
stringMode IL_PAGE_PRESENTATION | IL_PAGE_EDIT | IL_PAGE_PREVIEW

Definition at line 317 of file class.ilPageObjectGUI.php.

Referenced by compareVersion(), edit(), ilTestExpressPageObjectGUI\executeCommand(), ilPortfolioHTMLExport\exportPageHTML(), ilPageObjectGUI(), ilPCIIMTriggerEditorGUI\outputPostProcessing(), presentation(), ilWikiPageGUI\preview(), and preview().

{
$this->output_mode = $a_mode;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setPageBackTitle (   $a_title)

Definition at line 457 of file class.ilPageObjectGUI.php.

{
$this->page_back_title = $a_title;
}
ilPageObjectGUI::setPageConfig (   $a_val)

Set page config object.

Parameters
objectconfig object

Definition at line 260 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
$this->page_config = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setPageObject (   $a_pg_obj)

Set Page Object.

Parameters
objectPage Object

Definition at line 297 of file class.ilPageObjectGUI.php.

Referenced by compareVersion(), initPageObject(), ilBlogPostingGUI\setBlogPosting(), ilMediaPoolPageGUI\setMediaPoolPage(), ilSCORM2004PageGUI\setSCORM2004Page(), and ilWikiPageGUI\setWikiPage().

{
$this->obj = $a_pg_obj;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setParentType (   $a_val)

Set parent type.

Parameters
string$a_valparent type

Definition at line 155 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
$this->parent_type = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setPrependingHtml (   $a_prependinghtml)

Set Prepending HTML.

Parameters
string$a_prependinghtmlPrepending HTML

Definition at line 671 of file class.ilPageObjectGUI.php.

{
$this->prependinghtml = $a_prependinghtml;
}
ilPageObjectGUI::setQEditTabs (   $a_active)

Set question editing tabs.

Parameters
@return

Definition at line 1079 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, $lng, and ilAssQuestionFeedbackEditingGUI\CMD_SHOW.

Referenced by executeCommand().

{
global $ilTabs, $ilCtrl, $lng;
include_once("./Modules/TestQuestionPool/classes/class.assQuestion.php");
$ilTabs->clearTargets();
$ilTabs->setBackTarget($lng->txt("back"),
$ilCtrl->getLinkTarget($this, "edit"));
$ilCtrl->setParameterByClass("ilquestioneditgui", "q_id", $_GET["q_id"]);
$ilTabs->addTab("question", $lng->txt("question"),
$ilCtrl->getLinkTargetByClass("ilquestioneditgui", "editQuestion"));
require_once 'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackEditingGUI.php';
$ilCtrl->setParameterByClass("ilAssQuestionFeedbackEditingGUI", "q_id", $_GET["q_id"]);
$ilTabs->addTab("feedback", $lng->txt("feedback"),
$ilCtrl->getLinkTargetByClass("ilAssQuestionFeedbackEditingGUI", ilAssQuestionFeedbackEditingGUI::CMD_SHOW));
$ilTabs->activateTab($a_active);
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setQuestionHTML (   $question_html)

Definition at line 393 of file class.ilPageObjectGUI.php.

References $question_html, and getPageConfig().

Referenced by assQuestionGUI\getILIASPage().

{
$this->getPageConfig()->setQuestionHTML($question_html);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setQuestionXML (   $question_xml)

Definition at line 388 of file class.ilPageObjectGUI.php.

{
$this->question_xml = $question_xml;
}
ilPageObjectGUI::setRawPageContent (   $a_rawpagecontent)

Set Get raw page content only.

Parameters
boolean$a_rawpagecontentGet raw page content only

Definition at line 711 of file class.ilPageObjectGUI.php.

Referenced by ilMediaPoolPageGUI\getRawContent(), ilImprintGUI\renderFullscreen(), and ilWikiUtil\sendNotification().

{
$this->rawpagecontent = $a_rawpagecontent;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setRenderPageContainer (   $a_val)

Set render page container.

Parameters
bool$a_valrender page container

Definition at line 791 of file class.ilPageObjectGUI.php.

Referenced by ilAssQuestionPreviewGUI\populateQuestionOutput(), and ilWikiPageGUI\preview().

{
$this->render_page_container = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setScreenIdComponent ( )

Set screen id component.

Parameters
@return

Reimplemented in ilWikiPageGUI.

Definition at line 3175 of file class.ilPageObjectGUI.php.

Referenced by getTabs().

{
global $ilHelp;
$ilHelp->setScreenIdComponent("copg");
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setSourcecodeDownloadScript (   $script_name)

Definition at line 429 of file class.ilPageObjectGUI.php.

{
$this->sourcecode_download_script = $script_name;
}
ilPageObjectGUI::setStyleId (   $a_styleid)

Set Style Id.

Parameters
int$a_styleidStyle Id

Definition at line 731 of file class.ilPageObjectGUI.php.

Referenced by ilMediaPoolPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilBlogPostingGUI\__construct(), and ilContainerGUI\initStylePropertiesForm().

{
$this->styleid = $a_styleid;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setTabHook (   $a_object,
  $a_function 
)

Set tab hook.

Definition at line 588 of file class.ilPageObjectGUI.php.

Referenced by ilContainerGUI\initStylePropertiesForm().

{
$this->tab_hook = array("obj" => $a_object, "func" => $a_function);
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setTabs (   $a_tabs)

Definition at line 452 of file class.ilPageObjectGUI.php.

{
$this->tabs_gui = $a_tabs;
}
ilPageObjectGUI::setTemplateOutputVar (   $a_value)

Definition at line 418 of file class.ilPageObjectGUI.php.

{
$this->template_output_var = $a_value;
}
ilPageObjectGUI::setTemplateTargetVar (   $a_variable)

Definition at line 408 of file class.ilPageObjectGUI.php.

Referenced by ilAssGenFeedbackPageGUI\__construct(), ilAssSpecFeedbackPageGUI\__construct(), ilAssHintPageGUI\__construct(), and assQuestionGUI\outQuestionPage().

{
$this->target_var = $a_variable;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setViewPageLink (   $a_link,
  $a_target = "" 
)

set link for "view page" button

Parameters
stringlink target
stringtarget frame

Definition at line 535 of file class.ilPageObjectGUI.php.

{
$this->view_page_link = $a_link;
$this->view_page_target = $a_target;
}
ilPageObjectGUI::showMediaFullscreen (   $a_style_id = 0)

show fullscreen view of media object

Definition at line 3008 of file class.ilPageObjectGUI.php.

References $_GET, ilObject\_lookupTitle(), ilPageObjectFactory\getInstance(), ilUtil\getStyleSheetLocation(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, xslt_create(), xslt_error(), and xslt_free().

{
$this->tpl = new ilTemplate("tpl.fullscreen.html", true, true, "Services/COPage");
$this->tpl->setCurrentBlock("ContentStyle");
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", 0);
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("PAGETITLE", " - ".ilObject::_lookupTitle($_GET["mob_id"]));
$this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$this->tpl->setCurrentBlock("ilMedia");
require_once("./Services/MediaObjects/classes/class.ilObjMediaObject.php");
$media_obj =& new ilObjMediaObject($_GET["mob_id"]);
if (!empty ($_GET["pg_id"]))
{
include_once("./Services/COPage/classes/class.ilPageObjectFactory.php");
$pg_obj = ilPageObjectFactory::getInstance($this->obj->getParentType(), $_GET["pg_id"]);
$pg_obj->buildDom();
$xml = "<dummy>";
// todo: we get always the first alias now (problem if mob is used multiple
// times in page)
$xml.= $pg_obj->getMediaAliasElement($_GET["mob_id"]);
$xml.= $media_obj->getXML(IL_MODE_OUTPUT);
$xml.="</dummy>";
}
else
{
$xml = "<dummy>";
$xml.= $media_obj->getXML(IL_MODE_ALIAS);
$xml.= $media_obj->getXML(IL_MODE_OUTPUT);
$xml.="</dummy>";
}
//echo htmlentities($xml); exit;
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
$args = array( '/_xml' => $xml, '/_xsl' => $xsl );
$xh = xslt_create();
//echo "<b>XML:</b>".htmlentities($xml);
// determine target frames for internal links
//$pg_frame = $_GET["frame"];
$wb_path = ilUtil::getWebspaceDir("output")."/";
$mode = "fullscreen";
$params = array ('mode' => $mode, 'webspace_path' => $wb_path);
$output = xslt_process($xh,"arg:/_xml","arg:/_xsl",NULL,$args, $params);
echo xslt_error($xh);
xslt_free($xh);
// unmask user html
$this->tpl->setVariable("MEDIA_CONTENT", $output);
}

+ Here is the call graph for this function:

ilPageObjectGUI::showPage ( )

display content of page

Reimplemented in ilWikiPageGUI, ilBlogPostingGUI, ilPortfolioPageGUI, and ilPortfolioTemplatePageGUI.

Definition at line 1131 of file class.ilPageObjectGUI.php.

References $_GET, $_SESSION, $GLOBALS, $ilCtrl, $ilSetting, $ilUser, $link_params, $lng, $sourcecode_download_script, $tpl, ilPageEditorGUI\_doJSEditing(), ilObject\_exists(), ilInternalLink\_getTargetsOfSource(), ilObject\_lookupTitle(), ilObject\_lookupType(), addActionsMenu(), ilAccordionGUI\addCss(), ilAccordionGUI\addJavaScript(), ilSession\clear(), ilPCContentInclude\collectContentIncludes(), determineFileDownloadLink(), determineFullscreenLink(), determineSourcecodeDownloadScript(), displayValidationError(), exit, ilDatePresentation\formatDate(), ilUtil\formSelect(), getAbstractOnly(), ilEditClipboard\getAction(), getBibId(), getCompareMode(), ilObjStyleSheet\getContentStylePath(), getEnabledPageFocus(), getEnablePCType(), ilPlayerUtil\getFlashVideoPlayerFilename(), ilUtil\getImagePath(), ilInternalLinkGUI\getInitHTML(), getLinkXML(), ilUserUtil\getNamePresentation(), getOutputMode(), getPageConfig(), getPageObject(), getParentType(), ilCOPagePCDef\getPCDefinitions(), getPrependingHtml(), getPresentationTitle(), getRawPageContent(), getStyleId(), ilUtil\getStyleSheetLocation(), getTemplateOutputVar(), getTemplateTargetVar(), getViewPageLink(), getViewPageTarget(), ilUtil\getWebspaceDir(), ilObjContentObject\hasSuccessorPage(), IL_CAL_DATETIME, IL_PAGE_OFFLINE, IL_PAGE_PRESENTATION, IL_PAGE_PREVIEW, IL_PAGE_PRINT, ILIAS_VERSION, ilObjMediaObjectGUI\includePresentationJS(), ilYuiUtil\initConnection(), ilYuiUtil\initDragDrop(), ilOverlayGUI\initJavascript(), iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), ilPlayerUtil\initMediaElementJs(), ilYuiUtil\initPanel(), insertAdvTrigger(), insertContentIncludes(), insertHelp(), ilUtil\insertLatexImages(), insertPageToc(), insertResources(), ilMapUtil\isActivated(), isEnabledChangeComments(), isEnabledCitation(), isPageContainerToBeRendered(), ilMediaPoolPage\lookupTitle(), outputToTemplate(), postOutputProcessing(), replaceCurlyBrackets(), ilCOPagePCDef\requirePCClassByName(), ilUtil\sendFailure(), setDefaultLinkXml(), xslt_create(), and xslt_free().

Referenced by compareVersion(), edit(), ilTestExpressPageObjectGUI\executeCommand(), getHTML(), ilMediaPoolPageGUI\getRawContent(), presentation(), preview(), ilImprintGUI\renderFullscreen(), ilMediaPoolPageGUI\showPage(), and ilSCORM2004PageGUI\showPage().

{
global $tree, $ilUser, $lng, $ilCtrl, $ilSetting, $ilTabs;
// jquery and jquery ui are always provided for components
include_once("./Services/jQuery/classes/class.iljQueryUtil.php");
// $this->initSelfAssessmentRendering();
include_once("./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
$GLOBALS["tpl"]->addJavaScript("./Services/COPage/js/ilCOPagePres.js");
// needed for overlays in iim
include_once("./Services/UIComponent/Overlay/classes/class.ilOverlayGUI.php");
include_once("./Services/MediaObjects/classes/class.ilPlayerUtil.php");
// init template
//if($this->outputToTemplate())
//{
if($this->getOutputMode() == "edit")
{
//echo ":".$this->getTemplateTargetVar().":";
$tpl = new ilTemplate("tpl.page_edit_wysiwyg.html", true, true, "Services/COPage");
//$this->tpl->addBlockFile($this->getTemplateTargetVar(), "adm_content", "tpl.page_edit_wysiwyg.html", "Services/COPage");
// to do: status dependent class
$tpl->setVariable("CLASS_PAGE_TD", "ilc_Page");
// user comment
{
$tpl->setCurrentBlock("change_comment");
$tpl->setVariable("TXT_ADD_COMMENT", $this->lng->txt("cont_add_change_comment"));
$tpl->parseCurrentBlock();
}
$tpl->setVariable("WYSIWYG_ACTION",
$ilCtrl->getFormActionByClass("ilpageeditorgui", "", "", true));
// determine media, html and javascript mode
$sel_media_mode = ($ilUser->getPref("ilPageEditor_MediaMode") == "disable")
? "disable"
: "enable";
$sel_html_mode = ($ilUser->getPref("ilPageEditor_HTMLMode") == "disable")
? "disable"
: "enable";
$sel_js_mode = "disable";
//if($ilSetting->get("enable_js_edit", 1))
//{
$sel_js_mode = (ilPageEditorGUI::_doJSEditing())
? "enable"
: "disable";
//}
// show prepending html
$tpl->setVariable("PREPENDING_HTML", $this->getPrependingHtml());
$tpl->setVariable("TXT_CONFIRM_DELETE", $lng->txt("cont_confirm_delete"));
// presentation view
if ($this->getViewPageLink() != "")
{
$ilTabs->addNonTabbedLink("pres_view", $this->lng->txt("cont_presentation_view"),
$this->getViewPageLink(), $this->getViewPageTarget());
}
// show actions drop down
$this->addActionsMenu($tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode);
// get js files for JS enabled editing
if ($sel_js_mode == "enable")
{
$this->insertHelp($tpl);
include_once("./Services/YUI/classes/class.ilYuiUtil.php");
$GLOBALS["tpl"]->addJavaScript("./Services/COPage/js/ilcopagecallback.js");
$GLOBALS["tpl"]->addJavascript("Services/COPage/js/page_editing.js");
include_once './Services/Style/classes/class.ilObjStyleSheet.php';
$GLOBALS["tpl"]->addOnloadCode("var preloader = new Image();
preloader.src = './templates/default/images/loader.svg';
ilCOPage.setContentCss('".
", ./Services/COPage/css/tiny_extra.css".
"')");
//$GLOBALS["tpl"]->addJavascript("Services/RTE/tiny_mce_3_3_9_2/il_tiny_mce_src.js");
$GLOBALS["tpl"]->addJavascript("Services/COPage/tiny/4_1_5/tinymce.js");
$tpl->touchBlock("init_dragging");
$cfg = $this->getPageConfig();
$tpl->setVariable("IL_TINY_MENU",
self::getTinyMenu(
$cfg->getEnableInternalLinks(),
$cfg->getEnableWikiLinks(),
$cfg->getEnableKeywords(),
$this->getStyleId(), true, true,
$cfg->getEnableAnchors()
));
// add int link parts
include_once("./Services/Link/classes/class.ilInternalLinkGUI.php");
$tpl->setCurrentBlock("int_link_prep");
$tpl->setVariable("INT_LINK_PREP", ilInternalLinkGUI::getInitHTML(
$ilCtrl->getLinkTargetByClass(array("ilpageeditorgui", "ilinternallinkgui"),
"", false, true, false)));
$tpl->parseCurrentBlock();
include_once("./Services/YUI/classes/class.ilYuiUtil.php");
$GLOBALS["tpl"]->addJavaScript("./Services/UIComponent/Explorer/js/ilExplorer.js");
}
// multiple actions
$cnt_pcs = $this->getPageObject()->countPageContents();
if ($cnt_pcs > 1 ||
($this->getPageObject()->getParentType() != "qpl" && $cnt_pcs > 0))
{
$tpl->setCurrentBlock("multi_actions");
if ($sel_js_mode == "enable")
{
$tpl->setVariable("ONCLICK_DE_ACTIVATE_SELECTED", 'onclick="return ilEditMultiAction(\'activateSelected\');"');
$tpl->setVariable("ONCLICK_DELETE_SELECTED", 'onclick="return ilEditMultiAction(\'deleteSelected\');"');
$tpl->setVariable("ONCLICK_ASSIGN_CHARACTERISTIC", 'onclick="return ilEditMultiAction(\'assignCharacteristicForm\');"');
$tpl->setVariable("ONCLICK_COPY_SELECTED", 'onclick="return ilEditMultiAction(\'copySelected\');"');
$tpl->setVariable("ONCLICK_CUT_SELECTED", 'onclick="return ilEditMultiAction(\'cutSelected\');"');
$tpl->setVariable("TXT_SELECT_ALL", $this->lng->txt("select_all"));
$tpl->setVariable("ONCLICK_SELECT_ALL", 'onclick="return ilEditMultiAction(\'selectAll\');"');
}
$tpl->setVariable("TXT_DE_ACTIVATE_SELECTED", $this->lng->txt("cont_ed_enable"));
$tpl->setVariable("TXT_ASSIGN_CHARACTERISTIC", $this->lng->txt("cont_assign_characteristic"));
$tpl->setVariable("TXT_DELETE_SELECTED", $this->lng->txt("cont_delete_selected"));
$tpl->setVariable("TXT_COPY_SELECTED", $this->lng->txt("copy"));
$tpl->setVariable("TXT_CUT_SELECTED", $this->lng->txt("cut"));
$tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
$tpl->parseCurrentBlock();
}
}
else
{
// presentation or preview here
$tpl = new ilTemplate("tpl.page.html", true, true, "Services/COPage");
if ($this->getEnabledPageFocus())
{
$tpl->touchBlock("page_focus");
}
include_once("./Services/User/classes/class.ilUserUtil.php");
// presentation
{
$tpl->touchBlock("page_container_1");
$tpl->touchBlock("page_container_2");
$tpl->touchBlock("page_container_3");
}
// history
$c_old_nr = $this->getPageObject()->old_nr;
if ($c_old_nr > 0 || $this->getCompareMode() || $_GET["history_mode"] == 1)
{
$hist_info =
$this->getPageObject()->getHistoryInfo($c_old_nr);
if (!$this->getCompareMode())
{
$ilCtrl->setParameter($this, "history_mode", "1");
// previous revision
if (is_array($hist_info["previous"]))
{
$tpl->setCurrentBlock("previous_rev");
$tpl->setVariable("TXT_PREV_REV", $lng->txt("cont_previous_rev"));
$ilCtrl->setParameter($this, "old_nr", $hist_info["previous"]["nr"]);
$tpl->setVariable("HREF_PREV",
$ilCtrl->getLinkTarget($this, "preview"));
$tpl->parseCurrentBlock();
}
else
{
$tpl->setCurrentBlock("previous_rev_disabled");
$tpl->setVariable("TXT_PREV_REV", $lng->txt("cont_previous_rev"));
$tpl->parseCurrentBlock();
}
// next revision
if ($c_old_nr > 0)
{
$tpl->setCurrentBlock("next_rev");
$tpl->setVariable("TXT_NEXT_REV", $lng->txt("cont_next_rev"));
$ilCtrl->setParameter($this, "old_nr", $hist_info["next"]["nr"]);
$tpl->setVariable("HREF_NEXT",
$ilCtrl->getLinkTarget($this, "preview"));
$tpl->parseCurrentBlock();
// latest revision
$tpl->setCurrentBlock("latest_rev");
$tpl->setVariable("TXT_LATEST_REV", $lng->txt("cont_latest_rev"));
$ilCtrl->setParameter($this, "old_nr", "");
$tpl->setVariable("HREF_LATEST",
$ilCtrl->getLinkTarget($this, "preview"));
$tpl->parseCurrentBlock();
}
$ilCtrl->setParameter($this, "history_mode", "");
// rollback
if ($c_old_nr > 0 && $ilUser->getId() != ANONYMOUS_USER_ID)
{
$tpl->setCurrentBlock("rollback");
$ilCtrl->setParameter($this, "old_nr", $c_old_nr);
$tpl->setVariable("HREF_ROLLBACK",
$ilCtrl->getLinkTarget($this, "rollbackConfirmation"));
$ilCtrl->setParameter($this, "old_nr", "");
$tpl->setVariable("TXT_ROLLBACK",
$lng->txt("cont_rollback"));
$tpl->parseCurrentBlock();
}
}
$tpl->setCurrentBlock("hist_nav");
$tpl->setVariable("TXT_REVISION", $lng->txt("cont_revision"));
$tpl->setVariable("VAL_REVISION_DATE",
ilDatePresentation::formatDate(new ilDateTime($hist_info["current"]["hdate"], IL_CAL_DATETIME)));
$tpl->setVariable("VAL_REV_USER",
ilUserUtil::getNamePresentation($hist_info["current"]["user_id"]));
$tpl->parseCurrentBlock();
}
}
{
$tpl->setVariable("FORMACTION", $this->ctrl->getFormActionByClass("ilpageeditorgui"));
}
// output media object edit list (of media links)
if($this->getOutputMode() == "edit")
{
$links = ilInternalLink::_getTargetsOfSource($this->obj->getParentType().":pg",
$this->obj->getId(), $this->obj->getLanguage());
$mob_links = array();
foreach($links as $link)
{
if ($link["type"] == "mob")
{
if (ilObject::_exists($link["id"]) && ilObject::_lookupType($link["id"]) == "mob")
{
$mob_links[$link["id"]] = ilObject::_lookupTitle($link["id"])." [".$link["id"]."]";
}
}
}
// linked media objects
if (count($mob_links) > 0)
{
$tpl->setCurrentBlock("med_link");
$tpl->setVariable("TXT_LINKED_MOBS", $this->lng->txt("cont_linked_mobs"));
$tpl->setVariable("SEL_MED_LINKS",
ilUtil::formSelect(0, "mob_id", $mob_links, false, true));
$tpl->setVariable("TXT_EDIT_MEDIA", $this->lng->txt("cont_edit_mob"));
$tpl->setVariable("TXT_COPY_TO_CLIPBOARD", $this->lng->txt("cont_copy_to_clipboard"));
//$this->tpl->setVariable("TXT_COPY_TO_POOL", $this->lng->txt("cont_copy_to_mediapool"));
$tpl->parseCurrentBlock();
}
// content snippets used
include_once("./Services/COPage/classes/class.ilPCContentInclude.php");
$this->getPageObject()->getDomDoc());
if (count($snippets) > 0)
{
foreach ($snippets as $s)
{
include_once("./Modules/MediaPool/classes/class.ilMediaPoolPage.php");
$sn_arr[$s["id"]] = ilMediaPoolPage::lookupTitle($s["id"]);
}
$tpl->setCurrentBlock("med_link");
$tpl->setVariable("TXT_CONTENT_SNIPPETS_USED", $this->lng->txt("cont_snippets_used"));
$tpl->setVariable("SEL_SNIPPETS",
ilUtil::formSelect(0, "ci_id", $sn_arr, false, true));
$tpl->setVariable("TXT_SHOW_INFO", $this->lng->txt("cont_show_info"));
$tpl->parseCurrentBlock();
}
// scheduled activation?
if (!$this->getPageObject()->getActive() &&
$this->getPageObject()->getActivationStart() != "" &&
$this->getPageConfig()->getEnableScheduledActivation())
{
$tpl->setCurrentBlock("activation_txt");
$tpl->setVariable("TXT_SCHEDULED_ACTIVATION", $lng->txt("cont_scheduled_activation"));
$tpl->setVariable("SA_FROM",
new ilDateTime($this->getPageObject()->getActivationStart(),
$tpl->setVariable("SA_TO",
new ilDateTime($this->getPageObject()->getActivationEnd(),
$tpl->parseCurrentBlock();
}
}
if ($_GET["reloadTree"] == "y")
{
$tpl->setCurrentBlock("reload_tree");
if ($this->obj->getParentType() == "dbk")
{
$tpl->setVariable("LINK_TREE",
$this->ctrl->getLinkTargetByClass("ilobjdlbookgui", "explorer", "", false, false));
}
else
{
$tpl->setVariable("LINK_TREE",
$this->ctrl->getLinkTargetByClass("ilobjlearningmodulegui", "explorer", "", false, false));
}
$tpl->parseCurrentBlock();
}
// }
// get content
$builded = $this->obj->buildDom();
// manage hierarchical ids
if($this->getOutputMode() == "edit")
{
// add pc ids, if necessary
if (!$this->obj->checkPCIds())
{
$this->obj->insertPCIds();
$this->obj->update(true, true);
}
$this->obj->addFileSizes();
$this->obj->addHierIDs();
$hids = $this->obj->getHierIds();
$row1_ids = $this->obj->getFirstRowIds();
$col1_ids = $this->obj->getFirstColumnIds();
$litem_ids = $this->obj->getListItemIds();
$fitem_ids = $this->obj->getFileItemIds();
// standard menues
$hids = $this->obj->getHierIds();
foreach($hids as $hid)
{
$tpl->setCurrentBlock("add_dhtml");
$tpl->setVariable("CONTEXTMENU", "contextmenu_".$hid);
$tpl->parseCurrentBlock();
}
// column menues for tables
foreach($col1_ids as $hid)
{
$tpl->setCurrentBlock("add_dhtml");
$tpl->setVariable("CONTEXTMENU", "contextmenu_r".$hid);
$tpl->parseCurrentBlock();
}
// row menues for tables
foreach($row1_ids as $hid)
{
$tpl->setCurrentBlock("add_dhtml");
$tpl->setVariable("CONTEXTMENU", "contextmenu_c".$hid);
$tpl->parseCurrentBlock();
}
// list item menues
foreach($litem_ids as $hid)
{
$tpl->setCurrentBlock("add_dhtml");
$tpl->setVariable("CONTEXTMENU", "contextmenu_i".$hid);
$tpl->parseCurrentBlock();
}
// file item menues
foreach($fitem_ids as $hid)
{
$tpl->setCurrentBlock("add_dhtml");
$tpl->setVariable("CONTEXTMENU", "contextmenu_i".$hid);
$tpl->parseCurrentBlock();
}
}
else
{
$this->obj->addFileSizes();
}
//echo "<br>-".htmlentities($this->obj->getXMLContent())."-<br><br>";
//echo "<br>-".htmlentities($this->getLinkXML())."-";
// set default link xml, if nothing was set yet
if (!$this->link_xml_set)
{
}
//$content = $this->obj->getXMLFromDom(false, true, true,
// $this->getLinkXML().$this->getQuestionXML().$this->getComponentPluginsXML());
$link_xml = $this->getLinkXML();
// disable/enable auto margins
if ($this->getStyleId() > 0)
{
if (ilObject::_lookupType($this->getStyleId()) == "sty")
{
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$style = new ilObjStyleSheet($this->getStyleId());
$template_xml = $style->getTemplateXML();
$disable_auto_margins = "n";
if ($style->lookupStyleSetting("disable_auto_margins"))
{
$disable_auto_margins = "y";
}
}
}
if ($this->getAbstractOnly())
{
$content = "<dummy><PageObject><PageContent><Paragraph>".
$this->obj->getFirstParagraphText().$link_xml.
"</Paragraph></PageContent></PageObject></dummy>";
}
else
{
$content = $this->obj->getXMLFromDom(false, true, true,
$link_xml.$this->getQuestionXML().$template_xml.$this->getComponentPluginsXML());
}
// check validation errors
if($builded !== true)
{
$this->displayValidationError($builded);
}
else
{
$this->displayValidationError($_SESSION["il_pg_error"]);
}
unset($_SESSION["il_pg_error"]);
if(isset($_SESSION["citation_error"]))
{
ilUtil::sendFailure($this->lng->txt("cont_citation_selection_not_valid"));
ilSession::clear("citation_error");
}
// get title
$pg_title = $this->getPresentationTitle();
$col_path = ilUtil::getImagePath("col.svg");
$row_path = ilUtil::getImagePath("row.svg");
$item_path = ilUtil::getImagePath("item.svg");
if ($this->getOutputMode() != "offline")
{
$enlarge_path = ilUtil::getImagePath("enlarge.svg");
$wb_path = ilUtil::getWebspaceDir("output")."/";
}
else
{
$enlarge_path = "images/enlarge.svg";
$wb_path = "";
}
$pg_title_class = ($this->getOutputMode() == "print")
? "ilc_PrintPageTitle"
: "";
// page splitting only for learning modules and
// digital books
$enable_split_new = ($this->obj->getParentType() == "lm" ||
$this->obj->getParentType() == "dbk")
? "y"
: "n";
// page splitting to next page only for learning modules and
// digital books if next page exists in tree
if (($this->obj->getParentType() == "lm" ||
$this->obj->getParentType() == "dbk") &&
ilObjContentObject::hasSuccessorPage($this->obj->getParentId(),
$this->obj->getId()))
{
$enable_split_next = "y";
}
else
{
$enable_split_next = "n";
}
$img_path = ilUtil::getImagePath("", false, $this->getOutputMode(), $this->getOutputMode() == "offline");
if ($this->getPageConfig()->getEnablePCType("Tabs"))
{
//include_once("./Services/YUI/classes/class.ilYuiUtil.php");
//ilYuiUtil::initTabView();
include_once("./Services/Accordion/classes/class.ilAccordionGUI.php");
}
$file_download_link = $this->determineFileDownloadLink();
$fullscreen_link = $this->determineFullscreenLink();
$this->sourcecode_download_script = $this->determineSourcecodeDownloadScript();
// default values for various parameters (should be used by
// all instances in the future)
$media_mode = ($this->getOutputMode() == "edit")
? $ilUser->getPref("ilPageEditor_MediaMode")
: "enable";
include_once("./Modules/LearningModule/classes/class.ilEditClipboard.php");
$paste = (ilEditClipboard::getAction() == "copy" &&
$this->getOutputMode() == "edit");
include_once("./Services/MediaObjects/classes/class.ilPlayerUtil.php");
$flv_video_player = ($this->getOutputMode() != "offline")
$cfg = $this->getPageConfig();
// added UTF-8 encoding otherwise umlaute are converted too
include_once("./Services/Maps/classes/class.ilMapUtil.php");
$params = array ('mode' => $this->getOutputMode(), 'pg_title' => htmlentities($pg_title,ENT_QUOTES,"UTF-8"),
'enable_placeholder' => $cfg->getEnablePCType("PlaceHolder") ? "y" : "n",
'pg_id' => $this->obj->getId(), 'pg_title_class' => $pg_title_class,
'webspace_path' => $wb_path, 'enlarge_path' => $enlarge_path,
'img_col' => $col_path,
'img_row' => $row_path,
'img_item' => $item_path,
'enable_split_new' => $enable_split_new,
'enable_split_next' => $enable_split_next,
'link_params' => $this->link_params,
'file_download_link' => $file_download_link,
'fullscreen_link' => $fullscreen_link,
'img_path' => $img_path,
'parent_id' => $this->obj->getParentId(),
'download_script' => $this->sourcecode_download_script,
'encoded_download_script' => urlencode($this->sourcecode_download_script),
// digilib
'bib_id' => $this->getBibId(),'citation' => (int) $this->isEnabledCitation(),
'pagebreak' => $this->lng->txt('dgl_pagebreak'),
'page' => $this->lng->txt('page'),
'citate_page' => $this->lng->txt('citate_page'),
'citate_from' => $this->lng->txt('citate_from'),
'citate_to' => $this->lng->txt('citate_to'),
'citate' => $this->lng->txt('citate'),
'enable_rep_objects' => $cfg->getEnablePCType("Resources") ? "y" : "n",
'enable_login_page' => $cfg->getEnablePCType("LoginPageElement") ? "y" : "n",
'enable_map' => ($cfg->getEnablePCType("Map") && ilMapUtil::isActivated()) ? "y" : "n",
'enable_tabs' => $cfg->getEnablePCType("Tabs") ? "y" : "n",
'enable_sa_qst' => $cfg->getEnableSelfAssessment() ? "y" : "n",
'enable_file_list' => $cfg->getEnablePCType("FileList") ? "y" : "n",
'enable_content_includes' => $cfg->getEnablePCType("ContentInclude") ? "y" : "n",
'enable_content_templates' => (count($this->getPageObject()->getContentTemplates()) > 0) ? "y" : "n",
'paste' => $paste ? "y" : "n",
'media_mode' => $media_mode,
'javascript' => $sel_js_mode,
'paragraph_plugins' => $paragraph_plugin_string,
'disable_auto_margins' => $disable_auto_margins,
'page_toc' => $cfg->getEnablePageToc() ? "y" : "n",
'enable_profile' => $cfg->getEnablePCType("Profile") ? "y" : "n",
'enable_verification' => $cfg->getEnablePCType("Verification") ? "y" : "n",
'enable_blog' => $cfg->getEnablePCType("Blog") ? "y" : "n",
'enable_skills' => $cfg->getEnablePCType("Skills") ? "y" : "n",
'enable_qover' => $cfg->getEnablePCType("QuestionOverview") ? "y" : "n",
'enable_consultation_hours' => $cfg->getEnablePCType("ConsultationHours") ? "y" : "n",
'enable_my_courses' => $cfg->getEnablePCType("MyCourses") ? "y" : "n",
'enable_amd_page_list' => $cfg->getEnablePCType("AMDPageList") ? "y" : "n",
'flv_video_player' => $flv_video_player
);
if($this->link_frame != "") // todo other link types
$params["pg_frame"] = $this->link_frame;
//$content = str_replace("&nbsp;", "", $content);
// this ensures that cache is emptied with every update
$params["version"] = ILIAS_VERSION;
// ensure no cache hit, if included files/media objects have been changed
$params["incl_elements_date"] = $this->obj->getLastUpdateOfIncludedElements();
// run xslt
$md5 = md5(serialize($params).$link_xml.$template_xml);
//$a = microtime();
// check cache (same parameters, non-edit mode and rendered time
// > last change
if (($this->getOutputMode() == "preview" || $this->getOutputMode() == "presentation") &&
!$this->getCompareMode() &&
!$this->getAbstractOnly() &&
$md5 == $this->obj->getRenderMd5() &&
($this->obj->getLastChange() < $this->obj->getRenderedTime()) &&
$this->obj->getRenderedTime() != "" &&
$this->obj->old_nr == 0)
{
// cache hit
$output = $this->obj->getRenderedContent();
}
else
{
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
$args = array( '/_xml' => $content, '/_xsl' => $xsl );
$xh = xslt_create();
// echo "<b>XSLT</b>:".htmlentities($xsl).":<br>";
// echo "mode:".$this->getOutputMode().":<br>";
$output = xslt_process($xh, "arg:/_xml","arg:/_xsl", NULL, $args, $params);
if (($this->getOutputMode() == "presentation" || $this->getOutputMode() == "preview")
&& !$this->getAbstractOnly()
&& $this->obj->old_nr == 0)
{
//echo "writerenderedcontent";
$this->obj->writeRenderedContent($output, $md5);
}
//echo xslt_error($xh);
xslt_free($xh);
}
//$b = microtime();
//echo "$a - $b";
//echo "<pre>".htmlentities($output)."</pre>";
// unmask user html
if (($this->getOutputMode() != "edit" ||
$ilUser->getPref("ilPageEditor_HTMLMode") != "disable")
&& !$this->getPageConfig()->getPreventHTMLUnmasking())
{
$output = str_replace("&lt;","<",$output);
$output = str_replace("&gt;",">",$output);
}
$output = str_replace("&amp;", "&", $output);
$output = ilUtil::insertLatexImages($output);
// insert page snippets
$output = $this->insertContentIncludes($output);
// insert resource blocks
$output = $this->insertResources($output);
// insert page toc
if ($this->getPageConfig()->getEnablePageToc())
{
$output = $this->insertPageToc($output);
}
// insert advanced output trigger
$output = $this->insertAdvTrigger($output);
// workaround for preventing template engine
// from hiding paragraph text that is enclosed
// in curly brackets (e.g. "{a}", see ilLMEditorGUI::executeCommand())
$output = $this->replaceCurlyBrackets($output);
// remove all newlines (important for code / pre output)
$output = str_replace("\n", "", $output);
//echo htmlentities($output);
$output = $this->postOutputProcessing($output);
//echo htmlentities($output);
if($this->getOutputMode() == "edit" &&
!$this->getPageObject()->getActive($this->getPageConfig()->getEnableScheduledActivation()))
{
$output = '<div class="il_editarea_disabled">'.$output.'</div>';
}
// for all page components...
include_once("./Services/COPage/classes/class.ilCOPagePCDef.php");
foreach ($defs as $def)
{
$pc_class = $def["pc_class"];
$pc_obj = new $pc_class($this->getPageObject());
// post xsl page content modification by pc elements
$output = $pc_obj->modifyPageContentPostXsl($output, $this->getOutputMode());
// javascript files
$js_files = $pc_obj->getJavascriptFiles($this->getOutputMode());
foreach ($js_files as $js)
{
$GLOBALS["tpl"]->addJavascript($js);
}
// css files
$css_files = $pc_obj->getCssFiles($this->getOutputMode());
foreach ($css_files as $css)
{
$GLOBALS["tpl"]->addCss($css);
}
// onload code
$onload_code = $pc_obj->getOnloadCode($this->getOutputMode());
foreach ($onload_code as $code)
{
$GLOBALS["tpl"]->addOnloadCode($code);
}
}
// $output = $this->selfAssessmentRendering($output);
// output
if ($ilCtrl->isAsynch() && !$this->getRawPageContent() &&
$this->getOutputMode() == "edit")
{
// e.g. ###3:110dad8bad6df8620071a0a693a2d328###
if ($_GET["updated_pc_id_str"] != "")
{
echo $_GET["updated_pc_id_str"];
}
$tpl->setVariable($this->getTemplateOutputVar(), $output);
$tpl->setCurrentBlock("edit_page");
$tpl->parseCurrentBlock();
echo $tpl->get("edit_page");
}
if ($this->outputToTemplate())
{
$tpl->setVariable($this->getTemplateOutputVar(), $output);
$this->tpl->setVariable($this->getTemplateTargetVar(), $tpl->get());
return $output;
}
else
{
if ($this->getRawPageContent()) // e.g. needed in glossaries
{
return $output;
}
else
{
$tpl->setVariable($this->getTemplateOutputVar(), $output);
return $tpl->get();
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::switchToLanguage ( )

Switch to language.

Definition at line 3638 of file class.ilPageObjectGUI.php.

References $_GET, $ilCtrl, ilPageObject\_exists(), confirmPageTranslationCreation(), getPageObject(), and ilUtil\stripSlashes().

{
global $ilCtrl;
$l = ilUtil::stripSlashes($_GET["totransl"]);
$p = $this->getPageObject();
if (!ilPageObject::_exists($p->getParentType(), $p->getId(), $l))
{
return;
}
$ilCtrl->setParameter($this, "transl", $_GET["totransl"]);
$ilCtrl->redirect($this, "edit");
}

+ Here is the call graph for this function:

Field Documentation

ilPageObjectGUI::$abstract_only = false
private

Definition at line 61 of file class.ilPageObjectGUI.php.

Referenced by getAbstractOnly().

ilPageObjectGUI::$activated = true

Definition at line 50 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$activation = false

Definition at line 49 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$bib_id

Definition at line 44 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$change_comments

Definition at line 47 of file class.ilPageObjectGUI.php.

Referenced by isEnabledChangeComments().

ilPageObjectGUI::$citation

Definition at line 45 of file class.ilPageObjectGUI.php.

Referenced by isEnabledCitation().

ilPageObjectGUI::$compare_mode = false

Definition at line 57 of file class.ilPageObjectGUI.php.

Referenced by getCompareMode().

ilPageObjectGUI::$ctrl

Definition at line 34 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$editpreview = false

Definition at line 51 of file class.ilPageObjectGUI.php.

Referenced by getEditPreview().

ilPageObjectGUI::$enabledcontentincludes = false

Definition at line 56 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$enableediting = true

Definition at line 54 of file class.ilPageObjectGUI.php.

Referenced by getEnableEditing().

ilPageObjectGUI::$link_params

Definition at line 43 of file class.ilPageObjectGUI.php.

Referenced by getLinkParams(), and showPage().

ilPageObjectGUI::$link_xml_set = false

Definition at line 53 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$lng

Definition at line 33 of file class.ilPageObjectGUI.php.

Referenced by ilBlogPostingGUI\__construct(), ilWikiPageGUI\activateWikiPageRating(), addActionsMenu(), addMultiLangActionsAndInfo(), ilTestExpressPageObjectGUI\addQuestion(), ilWikiPageGUI\blockWikiPage(), ilWikiPageGUI\cancelWikiPageDeletion(), compareVersion(), ilBlogPostingGUI\confirmBlogPostingDeletion(), ilDataCollectionRecordViewViewdefinitionGUI\confirmDelete(), confirmPageTranslationCreation(), ilWikiPageGUI\confirmWikiPageDeletion(), ilWikiPageGUI\deactivateWikiPageRating(), ilBlogPostingGUI\deleteBlogPostingConfirmationScreen(), ilDataCollectionRecordViewViewdefinitionGUI\deleteView(), ilWikiPageGUI\deleteWikiPageConfirmationScreen(), ilWikiPageGUI\edit(), edit(), editActivation(), ilWikiPageGUI\editAdvancedMetaData(), ilImprintGUI\executeCommand(), ilTestExpressPageObjectGUI\executeCommand(), ilDataCollectionRecordViewViewdefinitionGUI\executeCommand(), executeCommand(), ilBlogPostingGUI\getActivationCaptions(), getActivationCaptions(), getTinyMenu(), ilWikiPageGUI\hideAdvancedMetaData(), history(), ilPageObjectGUI(), initActivationForm(), ilWikiPageGUI\initAdvancedMetaDataForm(), ilBlogPostingGUI\initDateForm(), ilWikiPageGUI\initEditingJS(), ilPageLayoutGUI\initForm(), ilWikiPageGUI\initPrintViewSelectionForm(), ilWikiPageGUI\initRenameForm(), ilBlogPostingGUI\initTitleForm(), insertAdvTrigger(), insertContentIncludes(), insertHelp(), insertPageToc(), ilWikiPageGUI\insertWikiLink(), ilLMPageGUI\onFeedbackEditingForwarding(), ilImprintGUI\postOutputProcessing(), ilMediaPoolPageGUI\preview(), ilWikiPageGUI\preview(), ilWikiPageGUI\printViewSelection(), ilLMPageGUI\processAnswer(), releasePageLock(), ilWikiPageGUI\renamePage(), ilWikiPageGUI\renameWikiPage(), ilImprintGUI\renderFullscreen(), rollbackConfirmation(), saveActivation(), ilWikiPageGUI\searchWikiLinkAC(), setQEditTabs(), ilPageLayoutGUI\setTabs(), showPage(), ilWikiPageGUI\unblockWikiPage(), ilWikiPageGUI\unhideAdvancedMetaData(), ilWikiPageGUI\updateAdvancedMetaData(), ilBlogPostingGUI\updateDate(), ilPageLayoutGUI\updateProperties(), and ilBlogPostingGUI\updateTitle().

ilPageObjectGUI::$output2template

Definition at line 42 of file class.ilPageObjectGUI.php.

Referenced by outputToTemplate().

ilPageObjectGUI::$output_mode

Definition at line 36 of file class.ilPageObjectGUI.php.

Referenced by getOutputMode().

ilPageObjectGUI::$page_config = null

Definition at line 58 of file class.ilPageObjectGUI.php.

Referenced by getPageConfig().

ilPageObjectGUI::$parent_type = ""
protected

Definition at line 62 of file class.ilPageObjectGUI.php.

Referenced by getParentType().

ilPageObjectGUI::$pl_end = "}}}}}"

Definition at line 67 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$pl_start = "{{{{{"

Definition at line 66 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$presentation_title

Definition at line 37 of file class.ilPageObjectGUI.php.

Referenced by getPresentationTitle().

ilPageObjectGUI::$question_html

Definition at line 48 of file class.ilPageObjectGUI.php.

Referenced by setQuestionHTML().

ilPageObjectGUI::$rawpagecontent = false

Definition at line 55 of file class.ilPageObjectGUI.php.

Referenced by getRawPageContent().

ilPageObjectGUI::$render_page_container = false

Definition at line 60 of file class.ilPageObjectGUI.php.

Referenced by getRenderPageContainer().

ilPageObjectGUI::$return_location

Definition at line 39 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$sourcecode_download_script
ilPageObjectGUI::$tabs_enabled = true

Definition at line 59 of file class.ilPageObjectGUI.php.

Referenced by getEnabledTabs().

ilPageObjectGUI::$target_script

Definition at line 38 of file class.ilPageObjectGUI.php.

ilPageObjectGUI::$target_var

Definition at line 40 of file class.ilPageObjectGUI.php.

Referenced by getTemplateTargetVar().

ilPageObjectGUI::$template_output_var

Definition at line 41 of file class.ilPageObjectGUI.php.

Referenced by getTemplateOutputVar().

ilPageObjectGUI::$tpl

Definition at line 32 of file class.ilPageObjectGUI.php.

Referenced by ilImprintGUI\__construct(), ilAssSpecFeedbackPageGUI\__construct(), ilAssGenFeedbackPageGUI\__construct(), ilAssHintPageGUI\__construct(), ilLoginPageGUI\__construct(), ilContainerPageGUI\__construct(), ilGlossaryDefPageGUI\__construct(), ilMediaPoolPageGUI\__construct(), ilWikiPageGUI\__construct(), ilShopPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilPortfolioPageGUI\__construct(), ilSCORM2004PageGUI\__construct(), ilBlogPostingGUI\__construct(), ilTestExpressPageObjectGUI\addQuestion(), ilWikiPageGUI\blockWikiPage(), ilTestExpressPageObjectGUI\browseForQuestions(), compareVersion(), ilDataCollectionRecordViewViewdefinitionGUI\confirmDelete(), confirmPageTranslationCreation(), ilWikiPageGUI\confirmWikiPageDeletion(), ilBlogPostingGUI\deleteBlogPostingConfirmationScreen(), ilWikiPageGUI\deleteWikiPageConfirmationScreen(), displayMedia(), ilWikiPageGUI\edit(), editActivation(), ilWikiPageGUI\editAdvancedMetaData(), ilBlogPostingGUI\editDate(), ilBlogPostingGUI\editKeywords(), ilBlogPostingGUI\editTitle(), ilBlogPostingGUI\executeCommand(), executeCommand(), history(), ilPageObjectGUI(), insertJSAtPlaceholder(), insertPageToc(), ilSCORM2004PageGUI\postOutputProcessing(), ilBlogPostingGUI\preview(), ilWikiPageGUI\preview(), ilWikiPageGUI\printViewSelection(), ilWikiPageGUI\renamePage(), ilWikiPageGUI\renameWikiPage(), ilImprintGUI\renderFullscreen(), ilPortfolioPageGUI\renderMyCourses(), rollbackConfirmation(), saveActivation(), ilWikiPageGUI\searchWikiLinkAC(), ilPageLayoutGUI\setTabs(), ilMediaPoolPageGUI\showPage(), ilSCORM2004PageGUI\showPage(), ilWikiPageGUI\showPage(), showPage(), ilWikiPageGUI\unblockWikiPage(), and ilWikiPageGUI\whatLinksHere().

ilPageObjectGUI::$use_meta_data = false

Definition at line 52 of file class.ilPageObjectGUI.php.


The documentation for this class was generated from the following file: