ILIAS  Release_4_2_x_branch Revision 61807
 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=0, $a_old_nr=0, $a_prevent_get_id=false)
 Constructor public.
 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.
 initPageObject ($a_parent_type, $a_id, $a_old_nr)
 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 ()
 setOutputSubmode ($a_mode)
 getOutputSubmode ()
 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 ()
 setEnableKeywords ($a_val)
 Set enable keywords handling.
 getEnableKeywords ()
 Get enable keywords handling.
 setEnableAnchors ($a_val)
 Set enable anchors.
 getEnableAnchors ()
 Get enable anchors.
 setIntLinkHelpDefault ($a_type, $a_id)
 setIntLinkReturn ($a_return)
 enableChangeComments ($a_enabled)
 isEnabledChangeComments ()
 enableNotes ($a_enabled, $a_parent_id)
 isEnabledNotes ()
 enableContentIncludes ($a_enable)
 Enable content includes.
 isEnabledContentIncludes ()
 Are content includes enabled?
 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)
 setEnabledActivation ($a_act)
 getEnabledActivation ()
 setEnabledScheduledActivation ($a_act)
 getEnabledScheduledActivation ()
 setPageToc ($a_val)
 Set page toc.
 getPageToc ()
 Get page toc.
 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.
 setEnabledInternalLinks ($a_enabledinternallinks)
 Set Enable internal links.
 getEnabledInternalLinks ()
 Get Enable internal links.
 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.
 setPreventHTMLUnmasking ($a_preventhtmlunmasking)
 Set Prevent HTML Unmasking (true/false).
 getPreventHTMLUnmasking ()
 Get Prevent HTML Unmasking (true/false).
 setEnabledTabs ($a_enabledtabs)
 Set Output tabs.
 getEnabledTabs ()
 Get Output tabs.
 setEnabledRepositoryObjects ($a_enabledrepositoryobjects)
 Set Enable Repository Objects Content Component.
 getEnabledRepositoryObjects ()
 Get Enable Repository Objects Content Component.
 setEnabledLoginPage ($a_enablegloginpage)
 Set enable login page.
 getEnabledLoginPage ()
 Get enable login page.
 setEnabledMaps ($a_enabledmaps)
 Set Enable Maps Content Component.
 getEnabledMaps ()
 Get Enable Maps Content Component.
 setEnabledPCTabs ($a_enabledpctabs)
 Set Enable Tabs Content Component.
 getEnabledPCTabs ()
 Get Enable Tabs Content Component.
 setEnabledFileLists ($a_enabledfilelists)
 Set Enable File Lists Content Componente (Default is true).
 getEnabledFileLists ()
 Get Enable File Lists Content Componente (Default is true).
 setEnabledPageFocus ($a_enabledpagefocus)
 Set Enable page focus.
 getEnabledPageFocus ()
 Get Enable page focus.
 getEnabledProfile ()
 Get Enable Profile Content Component.
 setEnabledProfile ($a_enableprofile)
 Set Enable Profile Content Component.
 getEnabledVerification ()
 Get Enable Verification Content Component.
 setEnabledVerification ($a_enableverification)
 Set Enable Verification Content Component.
 getEnabledBlog ()
 Get Enable Blog Content Component.
 setEnabledBlog ($a_enableblog)
 Set Enable Blog Content Component.
 getEnabledSkills ()
 Get Enable Skills Content Component.
 setEnabledSkills ($a_enableskills)
 Set Enable Skills Content Component.
 setExplorerUpdater ($a_exp_frame, $a_exp_id, $a_exp_target_script)
 Set Explorer Updater.
 setPrependingHtml ($a_prependinghtml)
 Set Prepending HTML.
 getPrependingHtml ()
 Get Prepending HTML.
 setEnabledWikiLinks ($a_enablewikilinks)
 Set Enable Wiki Links.
 getEnabledWikiLinks ()
 Get Enable Wiki Links.
 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.
 setLayoutMode ($a_layout_mode)
 Set Layout Mode.
 getLayoutMode ()
 Get Layout Mode enabled/disabled.
 setStyleId ($a_styleid)
 Set Style Id.
 getStyleId ()
 Get Style Id.
 setEnabledSelfAssessment ($a_enabledselfassessment, $a_scorm=true)
 Set Enable Self Assessment Questions.
 getEnabledSelfAssessment ()
 Get Enable Self Assessment Questions.
 getEnabledSelfAssessmentScorm ()
 Is self assessment used in SCORM mode?
 setCompareMode ($a_val)
 Set compare mode.
 getCompareMode ()
 Get compare mode.
 setAbstractOnly ($a_val)
 Set abstract only.
 getAbstractOnly ()
 Get abstract only.
 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
 deactivatePage ()
 activatePage ()
 showPage ()
 replaceCurlyBrackets ($output)
 Replace curly brackets.
 addActionsMenu ($a_tpl, $sel_media_mode, $sel_html_mode, $sel_js_mode)
 Add actions 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
 insertMaps ($a_html)
 Insert Maps.
 insertContentIncludes ($a_html)
 Insert Maps.
 insertPageToc ($a_output)
 Insert page toc.
 postOutputProcessing ($a_output)
 Finalizing output processing.
 insertHelp ($a_tpl)
 Insert help texts.
 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.
 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.
 getQuestionJsOfPage ($a_no_interaction=false)
 Get question js.
 initSelfAssessmentRendering ($a_force_no_form=false)
 Init question handling.
 processAnswer ()
 Process answer.
 selfAssessmentRendering ($a_output)
 Self assessment question rendering.

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)
 Get Tiny Menu.
static addPreparationJavascript ($a_tpl, $a_lang)
 Add standard texts.
static getJSTextInitCode ($a_lang)
 Get js txt init code.

Data Fields

 $ilias
 $tpl
 $lng
 $ctrl
 $obj
 $output_mode
 $output_submode
 $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
 $enabledinternallinks = false
 $editpreview = false
 $use_meta_data = false
 $enabledpctabs = false
 $link_xml_set = false
 $enableediting = true
 $rawpagecontent = false
 $layoutmode = false
 $enabledcontentincludes = false
 $compare_mode = false
 $page_config = null
 $enable_keywords = false
 $enable_anchors = false
 $tabs_enabled = true
 $pl_start = "{{{{{"
 $pl_end = "}}}}}"
 $pc_types

Protected Member Functions

 getActivationCaptions ()
 Get captions for activation action menu entries.

Private Attributes

 $abstract_only = false
 $enabledloginpage = 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 1149 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 ( )

Reimplemented in ilBlogPostingGUI.

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

References getPageObject().

{
$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:

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

Add actions menu.

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

References $ilCtrl, $lng, getActivationCaptions(), getEnabledActivation(), getPageObject(), and getPreventHTMLUnmasking().

Referenced by showPage().

{
global $lng, $ilCtrl;
// actions
include_once("./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
// activate/deactivate
if ($this->getEnabledActivation())
{
$list->setListTitle($lng->txt("actions"));
$list->setId("copage_act");
$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());
}
$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->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:

static ilPageObjectGUI::addPreparationJavascript (   $a_tpl,
  $a_lang 
)
static

Add standard texts.

Parameters
@return

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

References $lng.

Referenced by initSelfAssessmentRendering(), and ilSCORM2004ScoGUI\sco_preview().

{
global $lng;
$a_tpl->addOnloadCode(self::getJSTextInitCode($a_lang).
'ilCOPagePres.updateQuestionOverviews();
');
}

+ Here is the caller graph for this function:

ilPageObjectGUI::compareVersion ( )

Compares two revisions of the page.

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

References $_POST, $lng, $tpl, getEnableEditing(), getPresentationTitle(), IL_PAGE_PREVIEW, ilPageObjectGUI(), and replaceDiffTags().

{
global $lng;
if (!$this->getEnableEditing())
{
return;
}
$tpl = new ilTemplate("tpl.page_compare.html", true, true, "Services/COPage");
$compare = $this->obj->compareVersion($_POST["left"], $_POST["right"]);
// left page
$lpage = $compare["l_page"];
$lpage_gui = new ilPageObjectGUI("wpg");
$lpage_gui->setOutputMode(IL_PAGE_PREVIEW);
$lpage_gui->setPageObject($lpage);
$lpage_gui->setPreventHTMLUnmasking(true);
$lpage_gui->setPresentationTitle($this->getPresentationTitle());
$lpage_gui->setCompareMode(true);
$lhtml = $lpage_gui->showPage();
$lhtml = $this->replaceDiffTags($lhtml);
$lhtml = str_replace("&lt;br /&gt;", "<br />", $lhtml);
$tpl->setVariable("LEFT", $lhtml);
// right page
$rpage = $compare["r_page"];
$rpage_gui = new ilPageObjectGUI("wpg");
$rpage_gui->setOutputMode(IL_PAGE_PREVIEW);
$rpage_gui->setPageObject($rpage);
$rpage_gui->setPreventHTMLUnmasking(true);
$rpage_gui->setPresentationTitle($this->getPresentationTitle());
$rpage_gui->setCompareMode(true);
$rhtml = $rpage_gui->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::deactivatePage ( )

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

References getPageObject().

{
$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:

ilPageObjectGUI::determineFileDownloadLink ( )

Determine file download link.

Returns
string file download link

Definition at line 1165 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 1182 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 1199 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 2612 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, xslt_create(), xslt_free(), and xslt_process().

Referenced by displayMediaFullscreen().

{
$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.gif");
$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);
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 2604 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 3093 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
if(is_array($a_error))
{
$error_str = "<b>Validation 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 2680 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 2582 of file class.ilPageObjectGUI.php.

References $_GET, $file, $files, and exit.

{
$this->obj->buildDom();
$files = $this->obj->collectFileItems();
$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();
}
ilPageObjectGUI::edit ( )

edit ("view" before)

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

References $ilCtrl, $lng, getEnableEditing(), IL_PAGE_EDIT, isEnabledNotes(), ilUtil\sendFailure(), setOutputMode(), and showPage().

Referenced by executeCommand(), and insertJSAtPlaceholder().

{
global $tree, $lng, $ilCtrl;
if (!$this->getEnableEditing())
{
ilUtil::sendFailure($lng->txt("permission_denied"), true);
$ilCtrl->redirect($this, "preview");
}
$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 3353 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::enableChangeComments (   $a_enabled)

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

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

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

{
$this->citation = $a_enabled;
}
ilPageObjectGUI::enableContentIncludes (   $a_enable)

Enable content includes.

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

References setEnablePCType().

{
$this->setEnablePCType("ContentInclude", (bool) $a_enable);
}

+ Here is the call graph for this function:

ilPageObjectGUI::enableNotes (   $a_enabled,
  $a_parent_id 
)

Definition at line 510 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 ilSCORM2004PageGUI, ilPortfolioPageGUI, ilBlogPostingGUI, ilWikiPageGUI, ilPageLayoutGUI, ilTestExpressPageObjectGUI, ilExtPublicProfilePageGUI, and ilMediaPoolPageGUI.

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

References $_GET, $cmd, $ilCtrl, $lng, $ret, edit(), getEnableAnchors(), getEnabledInternalLinks(), getEnableEditing(), getEnableKeywords(), getHeader(), getPageObject(), getTabs(), and ilUtil\sendFailure().

{
global $ilCtrl, $ilTabs, $lng;
$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->setEnableInternalLinks($this->getEnabledInternalLinks());
$page_editor->setEnableKeywords($this->getEnableKeywords());
$page_editor->setEnableAnchors($this->getEnableAnchors());
$page_editor->setIntLinkHelpDefault($this->int_link_def_type,
$this->int_link_def_id);
$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;
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 1135 of file class.ilPageObjectGUI.php.

References $abstract_only.

Referenced by ilBlogPostingGUI\postOutputProcessing(), ilBlogPostingGUI\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 2142 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 3407 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(),
}
$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 242 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 1115 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 1214 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->getUIText(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 696 of file class.ilPageObjectGUI.php.

References $editpreview.

Referenced by getTabs().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnableAnchors ( )

Get enable anchors.

Returns
boolean anchors

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

References $enable_anchors.

Referenced by executeCommand(), and showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledActivation ( )

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

References $activation.

Referenced by addActionsMenu().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledBlog ( )

Get Enable Blog Content Component.

Returns
boolean Enable Blog Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Blog");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledFileLists ( )

Get Enable File Lists Content Componente (Default is true).

Returns
boolean Enable File Lists Content Componente (Default is true)

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("FileList");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledInternalLinks ( )

Get Enable internal links.

Returns
boolean Enable internal links

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

References $enabledinternallinks.

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

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledLoginPage ( )

Get enable login page.

Returns
bool $enabledloginpage

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("LoginPageElement");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledMaps ( )

Get Enable Maps Content Component.

Returns
boolean Enable Maps Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Map");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledNews ( )

Get enabled news.

Returns
boolean enabled news

Definition at line 647 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 854 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->enabledpagefocus;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledPCTabs ( )

Get Enable Tabs Content Component.

Returns
boolean Enable Tabs Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Tabs");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledProfile ( )

Get Enable Profile Content Component.

Returns
boolean Enable Profile Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Profile");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledRepositoryObjects ( )

Get Enable Repository Objects Content Component.

Returns
boolean Enable Repository Objects Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Resources");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledScheduledActivation ( )

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

Referenced by getTabs(), and showPage().

{
return $this->scheduled_activation;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledSelfAssessment ( )

Get Enable Self Assessment Questions.

Returns
boolean Enable Self Assessment Questions

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

Referenced by initSelfAssessmentRendering(), selfAssessmentRendering(), and showPage().

{
return $this->enabledselfassessment;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledSelfAssessmentScorm ( )

Is self assessment used in SCORM mode?

Returns
boolean Enable Self Assessment Questions

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

Referenced by initSelfAssessmentRendering().

{
return $this->enabledselfassessment_scorm;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledSkills ( )

Get Enable Skills Content Component.

Returns
boolean Enable Skills Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Skills");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledTabs ( )

Get Output tabs.

Returns
boolean Output tabs

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

References $tabs_enabled.

Referenced by getTabs().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledVerification ( )

Get Enable Verification Content Component.

Returns
boolean Enable Profile Content Component

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("Verification");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getEnabledWikiLinks ( )

Get Enable Wiki Links.

Returns
boolean Enable Wiki Links

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

{
return $this->enablewikilinks;
}
ilPageObjectGUI::getEnableEditing ( )

Get Enable Editing.

Returns
boolean Enable Editing

Definition at line 1002 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::getEnableKeywords ( )

Get enable keywords handling.

Returns
boolean keywords handling

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

References $enable_keywords.

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

+ 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 199 of file class.ilPageObjectGUI.php.

Referenced by getEnabledBlog(), getEnabledFileLists(), getEnabledLoginPage(), getEnabledMaps(), getEnabledPCTabs(), getEnabledProfile(), getEnabledRepositoryObjects(), getEnabledSkills(), getEnabledVerification(), isEnabledContentIncludes(), and showPage().

{
return $this->pc_types[$a_pc_type]["enabled"];
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getFileDownloadLink ( )

Definition at line 434 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 444 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 307 of file class.ilPageObjectGUI.php.

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

{
return $this->header;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getHTML ( )

Reimplemented in ilSCORM2004PageGUI.

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

References getTabs(), and showPage().

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

+ Here is the call graph for this function:

static ilPageObjectGUI::getJSTextInitCode (   $a_lang)
static

Get js txt init code.

Parameters
@return

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

References $lng.

Referenced by ilSCORM2004Asset\exportHTMLPageObjects().

{
global $lng, $ilUser;
if ($a_lang == "")
{
$a_lang = $ilUser->getLanguage();
}
return
'
ilias.questions.txt.wrong_answers = "'.$lng->txtlng("content", "cont_wrong_answers", $a_lang).'";
ilias.questions.txt.wrong_answers_single = "'.$lng->txtlng("content", "cont_wrong_answers_single", $a_lang).'";
ilias.questions.txt.tries_remaining = "'.$lng->txtlng("content", "cont_tries_remaining", $a_lang).'";
ilias.questions.txt.please_try_again = "'.$lng->txtlng("content", "cont_please_try_again", $a_lang).'";
ilias.questions.txt.all_answers_correct = "'.$lng->txtlng("content", "cont_all_answers_correct", $a_lang).'";
ilias.questions.txt.nr_of_tries_exceeded = "'.$lng->txtlng("content", "cont_nr_of_tries_exceeded", $a_lang).'";
ilias.questions.txt.correct_answers_shown = "'.$lng->txtlng("content", "cont_correct_answers_shown", $a_lang).'";
ilias.questions.txt.correct_answers_also = "'.$lng->txtlng("content", "cont_correct_answers_also", $a_lang).'";
ilias.questions.txt.correct_answer_also = "'.$lng->txtlng("content", "cont_correct_answer_also", $a_lang).'";
ilias.questions.txt.ov_all_correct = "'.$lng->txtlng("content", "cont_ov_all_correct", $a_lang).'";
ilias.questions.txt.ov_some_correct = "'.$lng->txtlng("content", "cont_ov_some_correct", $a_lang).'";
ilias.questions.txt.ov_wrong_answered = "'.$lng->txtlng("content", "cont_ov_wrong_answered", $a_lang).'";
';
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getLayoutMode ( )

Get Layout Mode enabled/disabled.

Returns
boolean Get Layout Mode Setting

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

Referenced by showPage().

{
return $this->layout_mode;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getLinkFrame ( )

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

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

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

References $link_params.

{
}
ilPageObjectGUI::getLinkXML ( )

Definition at line 338 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 3477 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 551 of file class.ilPageObjectGUI.php.

Referenced by showPage().

{
return $this->offline_directory;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getOutputSubmode ( )

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

References $output_submode.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPageConfig ( )

Get page config object.

Returns
object config object

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

References $page_config.

Referenced by ilSCORM2004PageGUI\__construct(), and initSelfAssessmentRendering().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPageObject ( )
ilPageObjectGUI::getPageToc ( )

Get page toc.

Returns
boolean page toc

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

Referenced by showPage().

{
return $this->page_toc;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPrependingHtml ( )

Get Prepending HTML.

Returns
string Prepending HTML

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

Referenced by showPage().

{
return $this->prependinghtml;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getPresentationTitle ( )

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

References $presentation_title.

Referenced by compareVersion(), and showPage().

+ Here is the caller graph for this function:

ilPageObjectGUI::getPreventHTMLUnmasking ( )

Get Prevent HTML Unmasking (true/false).

Returns
boolean Prevent HTML Unmasking (true/false)

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

Referenced by addActionsMenu(), and showPage().

{
return $this->preventhtmlunmasking;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getQuestionHTML ( )

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

References $question_html.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::getQuestionJsOfPage (   $a_no_interaction = false)

Get question js.

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

References getPageObject().

Referenced by initSelfAssessmentRendering().

{
require_once './Modules/Scorm2004/classes/class.ilQuestionExporter.php';
$q_ids = $this->getPageObject()->getQuestionIds();
$js = array();
if (count($q_ids) > 0)
{
foreach ($q_ids as $q_id)
{
$q_exporter = new ilQuestionExporter($a_no_interaction);
$js[$q_id] = $q_exporter->exportQuestion($q_id);
}
}
return $js;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::getQuestionXML ( )

Definition at line 353 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 1022 of file class.ilPageObjectGUI.php.

References $rawpagecontent.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

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

Get Style Id.

Returns
int Style Id

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

Referenced by ilPageLayoutGUI\executeCommand(), and 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, ilMediaPoolPageGUI, and ilExtPublicProfilePageGUI.

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

References $ilCtrl, getEditPreview(), getEnabledNews(), getEnabledScheduledActivation(), getEnabledTabs(), and getEnableEditing().

Referenced by executeCommand(), and getHTML().

{
global $ilTabs, $ilCtrl;
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 && !$this->layout_mode)
{
$ilTabs->addTarget("meta_data",
$this->ctrl->getLinkTargetByClass('ilmdeditorgui',''),
"", "ilmdeditorgui");
}
$lm_set = new ilSetting("lm");
if ($this->getEnableEditing() && !$this->layout_mode &&
$lm_set->get("page_history", 1))
{
$ilTabs->addTarget("history", $this->ctrl->getLinkTarget($this, "history")
, "history", get_class($this));
}
/* $tabs = $this->ctrl->getTabs();
foreach ($tabs as $tab)
{
$tabs_gui->addTarget($tab["lang_var"], $tab["link"]
, $tab["cmd"], $tab["class"]);
}
*/
if ($this->getEnableEditing())
{
$ilTabs->addTarget("clipboard", $this->ctrl->getLinkTargetByClass("ilEditClipboardGUI", "view")
, "view", "ilEditClipboardGUI");
}
{
$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 379 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 368 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 
)
static

Get Tiny Menu.

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

References $lng, ilPCParagraphGUI\_getCharacteristics(), ilPageContentGUI\_getCommonBBButtons(), ilTooltipGUI\addTooltip(), ilPCParagraphGUI\getCharStyleSelector(), ilUtil\getImagePath(), ilPCParagraphGUI\getStyleSelector(), ilUtil\img(), and ilPageEditorSettings\lookupSettingByParentType().

Referenced by ilPCDataTableGUI\editData().

{
global $lng;
$jsMathSetting = new ilSetting("jsMath");
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");
}
// paste from word
$btpl->setCurrentBlock("pword_button");
$btpl->setVariable("IMG_PWORD", ilUtil::img(ilUtil::getImagePath("tn_pword.gif"),
"", 20, 20));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_pword",
$lng->txt("cont_pword"),
"iltinymenu_bd");
// bullet list
$btpl->setCurrentBlock("blist_button");
$btpl->setVariable("IMG_BLIST", ilUtil::img(ilUtil::getImagePath("tn_blist.gif"),
"", 20, 20));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_blist",
$lng->txt("cont_blist"),
"iltinymenu_bd");
// numbered list
$btpl->setCurrentBlock("nlist_button");
$btpl->setVariable("IMG_NLIST", ilUtil::img(ilUtil::getImagePath("tn_nlist.gif"),
"", 20, 20));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_nlist",
$lng->txt("cont_nlist"),
"iltinymenu_bd");
// list indent
$btpl->setCurrentBlock("list_indent");
$btpl->setVariable("IMG_LIST_INDENT", ilUtil::img(ilUtil::getImagePath("tn_indent.gif"),
"", 20, 20));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("ilIndentBut",
$lng->txt("cont_list_indent"),
"iltinymenu_bd");
// list outdent
$btpl->setCurrentBlock("list_outdent");
$btpl->setVariable("IMG_LIST_OUTDENT", ilUtil::img(ilUtil::getImagePath("tn_outdent.gif"),
"", 20, 20));
$btpl->parseCurrentBlock();
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->setCurrentBlock("rformat_button");
$btpl->setVariable("IMG_RFORMAT", ilUtil::img(ilUtil::getImagePath("tn_rformat.gif"),
"", 20, 20));
$btpl->parseCurrentBlock();
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_button");
$btpl->setVariable("TXT_WLN2", $lng->txt("obj_wiki"));
$btpl->parseCurrentBlock();
ilTooltipGUI::addTooltip("il_edm_wlink", $lng->txt("cont_link_to_wiki"),
"iltinymenu_bd");
}
// $jsMathSetting = new ilSetting("jsMath");
// $style = $this->getStyle();
$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" || $jsMathSetting->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 ($jsMathSetting->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");
if ($a_save_return)
{
$btpl->setCurrentBlock("save_return");
$btpl->setVariable("TXT_SAVE_RETURN", $lng->txt("save_return"));
$btpl->parseCurrentBlock();
}
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");
}
/* // 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 571 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 579 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 3113 of file class.ilPageObjectGUI.php.

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

{
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 = 0,
  $a_old_nr = 0,
  $a_prevent_get_id = false 
)

Constructor public.

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

References $_GET, $ilCtrl, $ilias, $lng, $tpl, IL_PAGE_PRESENTATION, initPageObject(), setEnabledFileLists(), setEnabledLoginPage(), setEnabledMaps(), setEnabledPageFocus(), setEnabledRepositoryObjects(), setEnabledSelfAssessment(), setEnabledWikiLinks(), setLayoutMode(), setOutputMode(), setPageConfig(), setPreventHTMLUnmasking(), and setTemplateOutput().

Referenced by compareVersion(), ilMediaPoolPageGUI\executeCommand(), ilExtPublicProfilePageGUI\executeCommand(), ilPageLayoutGUI\executeCommand(), ilWikiPageGUI\executeCommand(), ilBlogPostingGUI\executeCommand(), ilPortfolioPageGUI\executeCommand(), and ilSCORM2004PageGUI\executeCommand().

{
global $ilias, $tpl, $lng, $ilCtrl,$ilTabs;
$this->ctrl =& $ilCtrl;
if ($a_old_nr == 0 && !$a_prevent_get_id && $_GET["old_nr"] > 0)
{
$a_old_nr = $_GET["old_nr"];
}
$this->ilias =& $ilias;
$this->tpl =& $tpl;
$this->ctrl =& $ilCtrl;
$this->lng =& $lng;
// defaults (as in learning modules)
$this->setEnabledMaps(false);
$this->setEnabledFileLists(true);
$this->setEnabledLoginPage(false);
$this->setEnabledSelfAssessment(false);
$this->setEnabledPageFocus(true);
$this->setLayoutMode(false);
include_once("./Services/COPage/classes/class.ilPageConfig.php");
$this->setPageConfig(new ilPageConfig());
if ($a_id > 0)
{
$this->initPageObject($a_parent_type, $a_id, $a_old_nr);
}
$this->output2template = true;
$this->question_xml = "";
$this->question_html = "";
$this->tabs_gui =& $ilTabs;
// USED FOR TRANSLATIONS
$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->setPreventHTMLUnmasking(false);
$this->setEnabledWikiLinks(false);
$this->setTemplateOutput(false);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::initActivationForm ( )

Init activation form.

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

References $ilCtrl, $lng, ilRadioOption\addSubItem(), 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);
$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::initPageObject (   $a_parent_type,
  $a_id,
  $a_old_nr 
)

Reimplemented in ilPortfolioPageGUI, ilBlogPostingGUI, ilSCORM2004PageGUI, ilWikiPageGUI, ilExtPublicProfilePageGUI, and ilMediaPoolPageGUI.

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

References setPageObject().

Referenced by ilPageObjectGUI().

{
$page = new ilPageObject($a_parent_type, $a_id, $a_old_nr);
$this->setPageObject($page);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::initSelfAssessmentRendering (   $a_force_no_form = false)

Init question handling.

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

References $ilCtrl, $lng, $tpl, addPreparationJavascript(), getEnabledSelfAssessment(), getEnabledSelfAssessmentScorm(), getOutputMode(), getPageConfig(), getQuestionJsOfPage(), IL_PAGE_PREVIEW, iljQueryUtil\initjQuery(), iljQueryUtil\initjQueryUI(), and setQuestionHTML().

Referenced by showPage().

{
global $tpl, $ilCtrl, $lng;
{
$qhtml = $this->getQuestionJsOfPage(($this->getOutputMode()=="edit" || $a_force_no_form)
? true
: false);
// $qhtml = $this->getQuestionJsOfPage(true);
$this->setQuestionHTML($qhtml);
//include JQuery Libraries before Prototpye
// $tpl->addJavaScript("./Modules/Scorm2004/scripts/questions/jquery.js");
// $tpl->addJavaScript("./Modules/Scorm2004/scripts/questions/jquery-ui-min.js");
include_once("./Services/jQuery/classes/class.iljQueryUtil.php");
$tpl->addJavaScript("./Modules/Scorm2004/scripts/questions/pure.js");
$tpl->addJavaScript("./Modules/Scorm2004/scripts/questions/question_handling.js");
$tpl->addCss("./Modules/Scorm2004/templates/default/question_handling.css");
&& $this->getOutputMode() != "offline")
{
$tpl->addJavaScript("./Services/COPage/js/ilCOPageQuestionHandler.js");
$url = $ilCtrl->getLinkTarget($this, "processAnswer", "", true, false);
$tpl->addOnloadCode("ilCOPageQuestionHandler.initCallback('".$url."');");
}
$lk = $this->getPageConfig()->getLocalizationLanguage();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::insertContentIncludes (   $a_html)

Insert Maps.

Definition at line 2736 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 2924 of file class.ilPageObjectGUI.php.

References $lng, and ilUtil\getImagePath().

Referenced by showPage().

{
global $lng;
$a_tpl->setCurrentBlock("help_img");
$a_tpl->setVariable("IMG_HELP", ilUtil::getImagePath("streaked_area.gif"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_item");
$a_tpl->setVariable("TXT_HELP", $lng->txt("cont_add_elements"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_img");
$a_tpl->setVariable("IMG_HELP", ilUtil::getImagePath("icon_cont_el_s.gif"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_img");
$a_tpl->setVariable("IMG_HELP", ilUtil::getImagePath("drop_streaked_area.gif"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_item");
$a_tpl->setVariable("TXT_HELP", $lng->txt("cont_drag_and_drop_elements"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_img");
$a_tpl->setVariable("IMG_HELP", ilUtil::getImagePath("icon_cont_el_s.gif"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help_item");
$a_tpl->setVariable("TXT_HELP", $lng->txt("cont_double_click_to_delete"));
$a_tpl->parseCurrentBlock();
$a_tpl->setCurrentBlock("help");
$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 2997 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::insertMaps (   $a_html)

Insert Maps.

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

Referenced by showPage().

{
$c_pos = 0;
$start = strpos($a_html, "[[[[[Map;");
if (is_int($start))
{
$end = strpos($a_html, "]]]]]", $start);
}
$i = 1;
while ($end > 0)
{
$param = substr($a_html, $start + 9, $end - $start - 9);
$param = explode(";", $param);
if (is_numeric($param[0]) && is_numeric($param[1]) && is_numeric($param[2]))
{
include_once("./Services/GoogleMaps/classes/class.ilGoogleMapGUI.php");
$map_gui = new ilGoogleMapGUI();
$map_gui->setMapId("map_".$i);
$map_gui->setLatitude($param[0]);
$map_gui->setLongitude($param[1]);
$map_gui->setZoom($param[2]);
$map_gui->setWidth($param[3]."px");
$map_gui->setHeight($param[4]."px");
$map_gui->setEnableTypeControl(true);
$map_gui->setEnableNavigationControl(true);
$map_gui->setEnableCentralMarker(true);
$h2 = substr($a_html, 0, $start).
$map_gui->getHtml().
substr($a_html, $end + 5);
$a_html = $h2;
$i++;
}
$start = strpos($a_html, "[[[[[Map;", $start + 5);
$end = 0;
if (is_int($start))
{
$end = strpos($a_html, "]]]]]", $start);
}
}
return $a_html;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::insertPageToc (   $a_output)

Insert page toc.

Parameters
stringoutput
Returns
string output

Definition at line 2801 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::isEnabledChangeComments ( )

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

References $change_comments.

Referenced by showPage().

+ Here is the caller graph for this function:

ilPageObjectGUI::isEnabledCitation ( )

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

References $citation.

Referenced by showPage().

{
}

+ Here is the caller graph for this function:

ilPageObjectGUI::isEnabledContentIncludes ( )

Are content includes enabled?

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

References getEnablePCType().

Referenced by showPage().

{
return $this->getEnablePCType("ContentInclude");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::isEnabledNotes ( )

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

Referenced by edit().

{
return $this->notes_enabled;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::outputToTemplate ( )

Definition at line 287 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, ilSCORM2004PageGUI, ilBlogPostingGUI, and ilPortfolioPageGUI.

Definition at line 2916 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 3016 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 ( )

Reimplemented in ilWikiPageGUI, and ilMediaPoolPageGUI.

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

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

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

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::processAnswer ( )

Process answer.

Definition at line 3637 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::replaceCurlyBrackets (   $output)

Replace curly brackets.

Parameters
@return

Definition at line 2120 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 3340 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 3172 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 3142 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 3437 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);
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::selfAssessmentRendering (   $a_output)

Self assessment question rendering.

Parameters
@return

Reimplemented in ilSCORM2004PageGUI.

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

References getEnabledSelfAssessment().

Referenced by showPage().

{
{
require_once './Modules/Scorm2004/classes/class.ilQuestionExporter.php';
$a_output = "<script>var ScormApi=null;".ilQuestionExporter::questionsJS()."</script>".$a_output;
}
return $a_output;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setAbstractOnly (   $a_val)

Set abstract only.

Parameters
boolean$a_valget only abstract (first text paragraph)

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

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

Definition at line 584 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 233 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 1105 of file class.ilPageObjectGUI.php.

{
$this->compare_mode = $a_val;
}
ilPageObjectGUI::setDefaultLinkXml ( )

Set standard link xml.

Reimplemented in ilSCORM2004PageGUI.

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

References $ilCtrl, $target_arr, $target_id, ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), 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 "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 2241 of file class.ilPageObjectGUI.php.

References $_GET, and $ilCtrl.

{
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 686 of file class.ilPageObjectGUI.php.

Referenced by ilLMPageObjectGUI\editLayout(), ilSCORM2004PageNodeGUI\executeCommand(), ilLMPageObjectGUI\executeCommand(), and ilTermDefinitionEditorGUI\executeCommand().

{
$this->editpreview = $a_editpreview;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnableAnchors (   $a_val)

Set enable anchors.

Parameters
booleananchors

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

Referenced by ilWikiPageGUI\__construct().

{
$this->enable_anchors = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledActivation (   $a_act)

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

Referenced by ilBlogPostingGUI\__construct().

{
$this->activation = $a_act;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledBlog (   $a_enableblog)

Set Enable Blog Content Component.

Parameters
bool$a_enableblog

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

References setEnablePCType().

{
$this->setEnablePCType("Blog", (bool)$a_enableblog);
}

+ Here is the call graph for this function:

ilPageObjectGUI::setEnabledFileLists (   $a_enabledfilelists)

Set Enable File Lists Content Componente (Default is true).

Parameters
boolean$a_enabledfilelistsEnable File Lists Content Componente (Default is true)

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

References setEnablePCType().

Referenced by ilPageObjectGUI().

{
$this->setEnablePCType("FileList", (bool) $a_enabledfilelists);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledInternalLinks (   $a_enabledinternallinks)

Set Enable internal links.

Parameters
boolean$a_enabledinternallinksEnable internal links

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

Referenced by ilExtPublicProfilePageGUI\__construct(), ilWikiPageGUI\__construct(), ilMediaPoolPageGUI\__construct(), ilPortfolioPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilSCORM2004PageGUI\__construct(), and ilBlogPostingGUI\__construct().

{
$this->enabledinternallinks = $a_enabledinternallinks;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledLoginPage (   $a_enablegloginpage)

Set enable login page.

Parameters
bool$a_enablegloginpage

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

References setEnablePCType().

Referenced by ilPageObjectGUI().

{
$this->setEnablePCType("LoginPageElement", (bool) $a_enablegloginpage);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledMaps (   $a_enabledmaps)

Set Enable Maps Content Component.

Parameters
boolean$a_enabledmapsEnable Maps Content Component

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

References setEnablePCType().

Referenced by ilExtPublicProfilePageGUI\__construct(), ilWikiPageGUI\__construct(), ilMediaPoolPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilSCORM2004PageGUI\__construct(), ilBlogPostingGUI\__construct(), and ilPageObjectGUI().

{
$this->setEnablePCType("Map", (bool) $a_enabledmaps);
}

+ Here is the call graph for this function:

+ 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 635 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 844 of file class.ilPageObjectGUI.php.

Referenced by ilPageObjectGUI().

{
$this->enabledpagefocus = $a_enabledpagefocus;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledPCTabs (   $a_enabledpctabs)

Set Enable Tabs Content Component.

Parameters
boolean$a_enabledpctabsEnable Tabs Content Component

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

References setEnablePCType().

Referenced by ilExtPublicProfilePageGUI\__construct(), ilWikiPageGUI\__construct(), ilPortfolioPageGUI\__construct(), ilSCORM2004PageGUI\__construct(), and ilBlogPostingGUI\__construct().

{
$this->setEnablePCType("Tabs", (bool) $a_enabledpctabs);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledProfile (   $a_enableprofile)

Set Enable Profile Content Component.

Parameters
bool$a_enableprofile

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

References setEnablePCType().

Referenced by ilPortfolioPageGUI\__construct().

{
$this->setEnablePCType("Profile", (bool)$a_enableprofile);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledRepositoryObjects (   $a_enabledrepositoryobjects)

Set Enable Repository Objects Content Component.

Parameters
boolean$a_enabledrepositoryobjectsEnable Repository Objects Content Component

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

References setEnablePCType().

Referenced by ilPageObjectGUI().

{
$this->setEnablePCType("Resources", $a_enabledrepositoryobjects);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledScheduledActivation (   $a_act)

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

{
$this->scheduled_activation = $a_act;
}
ilPageObjectGUI::setEnabledSelfAssessment (   $a_enabledselfassessment,
  $a_scorm = true 
)

Set Enable Self Assessment Questions.

Parameters
boolean$a_enabledselfassessmentEnable Self Assessment Questions

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

References setEnablePCType().

Referenced by ilPageLayoutGUI\__construct(), ilSCORM2004PageGUI\__construct(), and ilPageObjectGUI().

{
$this->setEnablePCType("Question", (bool) $a_enabledselfassessment);
$this->enabledselfassessment = $a_enabledselfassessment;
$this->enabledselfassessment_scorm = $a_scorm;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledSkills (   $a_enableskills)

Set Enable Skills Content Component.

Parameters
bool$a_enableskills

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

References setEnablePCType().

Referenced by ilPortfolioPageGUI\__construct().

{
$this->setEnablePCType("Skills", (bool)$a_enableskills);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledTabs (   $a_enabledtabs)

Set Output tabs.

Parameters
boolean$a_enabledtabsOutput tabs

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

{
$this->tabs_enabled = $a_enabledtabs;
}
ilPageObjectGUI::setEnabledVerification (   $a_enableverification)

Set Enable Verification Content Component.

Parameters
bool$a_enableverification

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

References setEnablePCType().

Referenced by ilPortfolioPageGUI\__construct().

{
$this->setEnablePCType("Verification", (bool)$a_enableverification);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnabledWikiLinks (   $a_enablewikilinks)

Set Enable Wiki Links.

Parameters
boolean$a_enablewikilinksEnable Wiki Links

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

Referenced by ilMediaPoolPageGUI\__construct(), ilWikiPageGUI\__construct(), ilBlogPostingGUI\__construct(), and ilPageObjectGUI().

{
$this->enablewikilinks = $a_enablewikilinks;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setEnableEditing (   $a_enableediting)

Set Enable Editing.

Parameters
boolean$a_enableeditingEnable Editing

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

{
$this->enableediting = $a_enableediting;
}
ilPageObjectGUI::setEnableKeywords (   $a_val)

Set enable keywords handling.

Parameters
booleankeywords handling

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

{
$this->enable_keywords = $a_val;
}
ilPageObjectGUI::setEnablePCType (   $a_pc_type,
  $a_val 
)

Set enable pc type.

Parameters
boolean$a_valenable pc type true/false

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

Referenced by ilSCORM2004PageGUI\__construct(), enableContentIncludes(), setEnabledBlog(), setEnabledFileLists(), setEnabledLoginPage(), setEnabledMaps(), setEnabledPCTabs(), setEnabledProfile(), setEnabledRepositoryObjects(), setEnabledSelfAssessment(), setEnabledSkills(), and setEnabledVerification().

{
if (isset($a_pc_type))
{
$this->pc_types[$a_pc_type]["enabled"] = $a_val;
}
}

+ Here is the caller 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 940 of file class.ilPageObjectGUI.php.

{
$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 429 of file class.ilPageObjectGUI.php.

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

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

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

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

{
$this->header = $a_title;
}
ilPageObjectGUI::setIntLinkHelpDefault (   $a_type,
  $a_id 
)

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

Referenced by ilWikiPageGUI\__construct(), ilSCORM2004PageGUI\__construct(), ilPaymentObjectGUI\forwardToPageObject(), and ilObjPaymentSettingsGUI\forwardToPageObject().

{
$this->int_link_def_type = $a_type;
$this->int_link_def_id = $a_id;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setIntLinkReturn (   $a_return)

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

Referenced by ilSCORM2004PageGUI\__construct().

{
$this->int_link_return = $a_return;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setLayoutMode (   $a_layout_mode)

Set Layout Mode.

Parameters
boolean$a_layout_modeSetLayoutMode for editor

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

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

{
$this->layout_mode = $a_layout_mode;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setLinkFrame (   $l_frame = "")

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

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

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

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

Definition at line 332 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 414 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 542 of file class.ilPageObjectGUI.php.

{
$this->offline_directory = $offdir;
}
ilPageObjectGUI::setOutputMode (   $a_mode = IL_PAGE_PRESENTATION)

Set Output Mode.

Parameters
stringMode IL_PAGE_PRESENTATION | IL_PAGE_EDIT | IL_PAGE_PREVIEW

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

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

{
$this->output_mode = $a_mode;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setOutputSubmode (   $a_mode)

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

{
// USED FOR TRANSLATION PRESENTATION OF dbk OBJECTS
$this->output_submode = $a_mode;
}
ilPageObjectGUI::setPageBackTitle (   $a_title)

Definition at line 424 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 209 of file class.ilPageObjectGUI.php.

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

{
$this->page_config = $a_val;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setPageToc (   $a_val)

Set page toc.

Parameters
boolean$a_valpage toc

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

Referenced by ilWikiPageGUI\__construct().

{
$this->page_toc = $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 952 of file class.ilPageObjectGUI.php.

{
$this->prependinghtml = $a_prependinghtml;
}
ilPageObjectGUI::setPreventHTMLUnmasking (   $a_preventhtmlunmasking)

Set Prevent HTML Unmasking (true/false).

Parameters
boolean$a_preventhtmlunmaskingPrevent HTML Unmasking (true/false)

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

Referenced by ilExtPublicProfilePageGUI\__construct(), ilWikiPageGUI\__construct(), ilMediaPoolPageGUI\__construct(), ilPageLayoutGUI\__construct(), ilSCORM2004PageGUI\__construct(), ilBlogPostingGUI\__construct(), and ilPageObjectGUI().

{
$this->preventhtmlunmasking = $a_preventhtmlunmasking;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setQuestionHTML (   $question_html)

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

References $question_html.

Referenced by initSelfAssessmentRendering().

{
$this->question_html = $question_html;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setQuestionXML (   $question_xml)

Definition at line 343 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 1012 of file class.ilPageObjectGUI.php.

Referenced by ilMediaPoolPageGUI\getRawContent().

{
$this->rawpagecontent = $a_rawpagecontent;
}

+ Here is the caller graph for this function:

ilPageObjectGUI::setSourcecodeDownloadScript (   $script_name)

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

References $script_name.

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

Set Style Id.

Parameters
int$a_styleidStyle Id

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

Referenced by ilPageLayoutGUI\__construct(), ilObjBlogGUI\executeCommand(), 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 655 of file class.ilPageObjectGUI.php.

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

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

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

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

{
// USED FOR TRANSLATION PRESENTATION OF dbk OBJECTS
$this->template_output_var = $a_value;
}
ilPageObjectGUI::setTemplateTargetVar (   $a_variable)

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

Referenced by assQuestionGUI\getILIASPage(), 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 562 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 3033 of file class.ilPageObjectGUI.php.

References $_GET, ilObject\_lookupTitle(), ilPageObject\buildDom(), ilUtil\getStyleSheetLocation(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, xslt_create(), xslt_error(), xslt_free(), and xslt_process().

{
$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"]))
{
require_once("./Services/COPage/classes/class.ilPageObject.php");
$pg_obj =& new ilPageObject($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")."/";
// $wb_path = "../".$this->ilias->ini->readVariable("server","webspace_dir");
$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 ( )

Reimplemented in ilWikiPageGUI, ilBlogPostingGUI, ilPortfolioPageGUI, and ilExtPublicProfilePageGUI.

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

References $_GET, $_SESSION, $GLOBALS, $ilBench, $ilCtrl, $ilias, $ilSetting, $link_params, $lng, $sourcecode_download_script, $tpl, ilPageEditorGUI\_doJSEditing(), ilObject\_exists(), ilInternalLink\_getTargetsOfSource(), ilObject\_lookupTitle(), ilObject\_lookupType(), addActionsMenu(), ilAccordionGUI\addCss(), ilAccordionGUI\addJavaScript(), ilUtil\buildLatexImages(), determineFileDownloadLink(), determineFullscreenLink(), determineSourcecodeDownloadScript(), displayValidationError(), exit, ilDatePresentation\formatDate(), ilUtil\formSelect(), getAbstractOnly(), ilEditClipboard\getAction(), getBibId(), getCompareMode(), ilObjStyleSheet\getContentStylePath(), getEnableAnchors(), getEnabledBlog(), getEnabledFileLists(), getEnabledInternalLinks(), getEnabledLoginPage(), getEnabledMaps(), getEnabledPageFocus(), getEnabledPCTabs(), getEnabledProfile(), getEnabledRepositoryObjects(), getEnabledScheduledActivation(), getEnabledSelfAssessment(), getEnabledSkills(), getEnabledVerification(), getEnableKeywords(), getEnablePCType(), ilUtil\getImagePath(), ilInternalLinkGUI\getInitHTML(), getLayoutMode(), getLinkXML(), ilUserUtil\getNamePresentation(), getOfflineDirectory(), getOutputMode(), getOutputSubmode(), getPageObject(), getPageToc(), getPrependingHtml(), getPresentationTitle(), getPreventHTMLUnmasking(), getQuestionHTML(), 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, ilYuiUtil\initConnection(), ilYuiUtil\initDragDrop(), ilYuiUtil\initPanel(), initSelfAssessmentRendering(), insertContentIncludes(), insertHelp(), ilUtil\insertLatexImages(), insertMaps(), insertPageToc(), isEnabledChangeComments(), isEnabledCitation(), isEnabledContentIncludes(), ilMediaPoolPage\lookupTitle(), outputToTemplate(), postOutputProcessing(), replaceCurlyBrackets(), selfAssessmentRendering(), ilUtil\sendFailure(), setDefaultLinkXml(), xslt_create(), xslt_free(), and xslt_process().

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

{
global $tree, $ilUser, $ilias, $lng, $ilCtrl, $ilBench, $ilSetting, $ilTabs;
$ilBench->start("ContentPresentation", "ilPageObjectGUI_showPage");
$GLOBALS["tpl"]->addJavaScript("./Services/COPage/js/ilCOPagePres.js");
// 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->setCurrentBlock("adm_content");
}
// explorer updater
if ($this->exp_frame != "")
{
$tpl->setCurrentBlock("updater");
$tpl->setVariable("UPDATER_FRAME", $this->exp_frame);
$tpl->setVariable("EXP_ID_UPDATER", $this->exp_id);
$tpl->setVariable("HREF_UPDATER", $this->exp_target_script);
$tpl->parseCurrentBlock();
}
/* $tpl->setVariable("TXT_INSERT_BEFORE", $this->lng->txt("cont_set_before"));
$tpl->setVariable("TXT_INSERT_AFTER", $this->lng->txt("cont_set_after"));
$tpl->setVariable("TXT_INSERT_CANCEL", $this->lng->txt("cont_set_cancel"));
$tpl->setVariable("TXT_CONFIRM_DELETE", $this->lng->txt("cont_confirm_delete"));
*/
$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.gif';
ilCOPage.setContentCss('".
", ./Services/COPage/css/tiny_extra.css".
"')");
$GLOBALS["tpl"]->addJavascript("Services/RTE/tiny_mce_3_3_9_2/il_tiny_mce_src.js");
$tpl->touchBlock("init_dragging");
$tpl->setVariable("IL_TINY_MENU",
self::getTinyMenu(
$this->getPageObject()->getParentType(),
$this->getPageObject()->getParentType() == "wpg",
$this->getEnableKeywords(), $this->getStyleId(), true, true,
));
// add int link parts
include_once("./Modules/LearningModule/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();
// internal links per js
//$tpl->setVariable("IL_INT_LINK_URL",
// $ilCtrl->getLinkTargetByClass(array("ilpageeditorgui", "ilinternallinkgui"),
// "showLinkHelp", false, true, false));
include_once("./Services/YUI/classes/class.ilYuiUtil.php");
$GLOBALS["tpl"]->addJavaScript("./Services/Explorer/js/ilexplorercallback.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.gif"));
$tpl->parseCurrentBlock();
}
}
else
{
if($this->getOutputSubmode() == 'translation')
{
$tpl = new ilTemplate("tpl.page_translation_content.html", true, true, "Services/COPage");
}
else
{
// presentation
if ($this->getOutputMode() != IL_PAGE_PREVIEW)
{
$tpl = new ilTemplate("tpl.page_content.html", true, true, "Services/COPage");
if ($this->getEnabledPageFocus())
{
$tpl->touchBlock("page_focus");
}
}
else // preview
{
$tpl = new ilTemplate("tpl.page_preview.html", true, true, "Services/COPage");
include_once("./Services/User/classes/class.ilUserUtil.php");
$c_old_nr = $this->getPageObject()->old_nr;
if ($c_old_nr > 0)
{
$hist_info =
$this->getPageObject()->getHistoryInfo($c_old_nr);
if (!$this->getCompareMode())
{
// 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
$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();
// 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());
$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
$snippets = $this->getPageObject()->collectContentIncludes();
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() != "" &&
{
$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);
}
// 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"));
session_unregister("citation_error");
unset($_SESSION["citation_error"]);
}
// get title
$pg_title = $this->getPresentationTitle();
$add_path = ilUtil::getImagePath("add.gif");
$col_path = ilUtil::getImagePath("col.gif");
$row_path = ilUtil::getImagePath("row.gif");
$item_path = ilUtil::getImagePath("item.gif");
$med_disabled_path = ilUtil::getImagePath("media_disabled.gif");
if ($this->getOutputMode() != "offline")
{
$enlarge_path = ilUtil::getImagePath("enlarge.gif");
$wb_path = ilUtil::getWebspaceDir("output")."/";
}
else
{
$enlarge_path = "images/enlarge.gif";
$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";
}
$paragraph_plugins = new ilParagraphPlugins();
$paragraph_plugins->initialize ();
{
$paragraph_plugin_string = $paragraph_plugins->serializeToString();
$_SESSION ["paragraph_plugins"] = $paragraph_plugins;
}
$img_path = ilUtil::getImagePath("", false, $this->getOutputMode(), $this->getOutputMode() == "offline");
//$wb_path = "../".$this->ilias->ini->readVariable("server","webspace_dir");
//echo "-".$this->sourcecode_download_script.":";
if ($this->getEnabledPCTabs())
{
//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");
// added UTF-8 encoding otherwise umlaute are converted too
$params = array ('mode' => $this->getOutputMode(), 'pg_title' => htmlentities($pg_title,ENT_QUOTES,"UTF-8"),
'layout_mode' => $this->getLayoutMode() ? "y" : "n",
'pg_id' => $this->obj->getId(), 'pg_title_class' => $pg_title_class,
'webspace_path' => $wb_path, 'enlarge_path' => $enlarge_path,
'img_add' => $add_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,
'med_disabled_path' => $med_disabled_path,
'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' => $this->getEnabledRepositoryObjects() ? "y" : "n",
'enable_login_page' => $this->getEnabledLoginPage() ? "y" : "n",
'enable_map' => $this->getEnabledMaps() ? "y" : "n",
'enable_tabs' => $this->getEnabledPCTabs() ? "y" : "n",
'enable_sa_qst' => $this->getEnabledSelfAssessment() ? "y" : "n",
'enable_file_list' => $this->getEnabledFileLists() ? "y" : "n",
'enable_content_includes' => $this->isEnabledContentIncludes() ? "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' => $this->getPageToc() ? "y" : "n",
'enable_profile' => $this->getEnabledProfile() ? "y" : "n",
'enable_verification' => $this->getEnabledVerification() ? "y" : "n",
'enable_blog' => $this->getEnabledBlog() ? "y" : "n",
'enable_skills' => $this->getEnabledSkills() ? "y" : "n",
'enable_qover' => $this->getEnablePCType("QuestionOverview") ? "y" : "n"
);
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->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
{
if ($this->getLayoutMode() == true)
{
// $xsl = file_get_contents("./Services/COPage/xsl/page_layout.xsl");
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
}
else
{
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
}
//echo htmlentities($content); exit;
$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")
{
$output = str_replace("&lt;","<",$output);
$output = str_replace("&gt;",">",$output);
}
$output = str_replace("&amp;", "&", $output);
// replace latex code: todo: finish
if ($this->getOutputMode() != "offline")
{
$output = ilUtil::insertLatexImages($output);
}
else
{
$output = ilUtil::buildLatexImages($output,
}
// insert page snippets
$output = $this->insertContentIncludes($output);
// insert page toc
if ($this->getPageToc())
{
$output = $this->insertPageToc($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);
// add question HTML (always after the cache!)
$qhtml = $this->getQuestionHTML();
if (is_array($qhtml))
{
foreach ($qhtml as $k => $h)
{
$output = str_replace($this->pl_start."Question;il__qst_$k".$this->pl_end, " ".$h, $output);
}
}
//echo htmlentities($output);
$output = $this->postOutputProcessing($output);
//echo htmlentities($output);
if($this->getOutputMode() == "edit" && !$this->getPageObject()->getActive($this->getEnabledScheduledActivation()))
{
$output = '<div class="il_editarea_disabled">'.$output.'</div>';
}
$output = $this->insertMaps($output);
$output = $this->obj->insertSourceCodeParagraphs($output, $this->getOutputMode());
$ilBench->stop("ContentPresentation", "ilPageObjectGUI_showPage");
$output = $this->selfAssessmentRendering($output);
// output
if ($ilCtrl->isAsynch() && !$this->getRawPageContent() &&
$this->getOutputMode() == "edit")
{
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:

Field Documentation

ilPageObjectGUI::$abstract_only = false
private

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

Referenced by getAbstractOnly().

ilPageObjectGUI::$activated = true

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

ilPageObjectGUI::$activation = false

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

Referenced by getEnabledActivation().

ilPageObjectGUI::$bib_id

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

ilPageObjectGUI::$change_comments

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

Referenced by isEnabledChangeComments().

ilPageObjectGUI::$citation

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

Referenced by isEnabledCitation().

ilPageObjectGUI::$compare_mode = false

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

Referenced by getCompareMode().

ilPageObjectGUI::$ctrl

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

ilPageObjectGUI::$editpreview = false

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

Referenced by getEditPreview().

ilPageObjectGUI::$enable_anchors = false

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

Referenced by getEnableAnchors().

ilPageObjectGUI::$enable_keywords = false

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

Referenced by getEnableKeywords().

ilPageObjectGUI::$enabledcontentincludes = false

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

ilPageObjectGUI::$enabledinternallinks = false

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

Referenced by getEnabledInternalLinks().

ilPageObjectGUI::$enabledloginpage = false
private

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

ilPageObjectGUI::$enabledpctabs = false

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

ilPageObjectGUI::$enableediting = true

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

Referenced by getEnableEditing().

ilPageObjectGUI::$ilias

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

Referenced by ilPageObjectGUI(), and showPage().

ilPageObjectGUI::$layoutmode = false

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

ilPageObjectGUI::$link_params

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

Referenced by getLinkParams(), and showPage().

ilPageObjectGUI::$link_xml_set = false

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

ilPageObjectGUI::$output2template

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

Referenced by outputToTemplate().

ilPageObjectGUI::$output_mode

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

Referenced by getOutputMode().

ilPageObjectGUI::$output_submode

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

Referenced by getOutputSubmode().

ilPageObjectGUI::$page_config = null

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

Referenced by getPageConfig().

ilPageObjectGUI::$pc_types

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

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

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

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

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

ilPageObjectGUI::$presentation_title

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

Referenced by getPresentationTitle().

ilPageObjectGUI::$question_html

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

Referenced by getQuestionHTML(), and setQuestionHTML().

ilPageObjectGUI::$rawpagecontent = false

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

Referenced by getRawPageContent().

ilPageObjectGUI::$return_location

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

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

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

Referenced by getEnabledTabs().

ilPageObjectGUI::$target_script

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

ilPageObjectGUI::$target_var

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

Referenced by getTemplateTargetVar().

ilPageObjectGUI::$template_output_var

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

Referenced by getTemplateOutputVar().

ilPageObjectGUI::$use_meta_data = false

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


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