ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilPageObjectGUI Class Reference

Class ilPageObjectGUI. More...

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

Public Member Functions

 __construct (string $a_parent_type, int $a_id, int $a_old_nr=0, bool $a_prevent_get_id=false, string $a_lang="", string $concrete_lang="")
 
 setTemplate (ilGlobalTemplateInterface $main_tpl)
 
 afterConstructor ()
 
 setAdvMdRecordObject (int $a_adv_ref_id, string $a_adv_type, string $a_adv_subtype="-")
 Set object, that defines the adv md records being used. More...
 
 getAdvMdRecordObject ()
 Get adv md record type. More...
 
 setParentType (string $a_val)
 
 getParentType ()
 
 setId (int $a_val)
 
 getId ()
 
 setOldNr (int $a_val)
 Set old nr (historic page) More...
 
 getOldNr ()
 
 setLanguage (string $a_val)
 
 getLanguage ()
 
 setEnablePCType (string $a_pc_type, bool $a_val)
 
 getEnablePCType (string $a_pc_type)
 
 setPageConfig (ilPageConfig $a_val)
 
 getPageConfig ()
 
 setPageObject (ilPageObject $a_pg_obj)
 
 getPageObject ()
 
 setOutputMode (string $a_mode=self::PRESENTATION)
 
 getOutputMode ()
 
 setTemplateOutput (bool $a_output=true)
 
 outputToTemplate ()
 
 setPresentationTitle (string $a_title="")
 
 getPresentationTitle ()
 
 setHeader (string $a_title="")
 
 getHeader ()
 
 setLinkParams (string $l_params="")
 
 getLinkParams ()
 
 setLinkFrame (string $l_frame="")
 
 getLinkFrame ()
 
 setPageLinker (\ILIAS\COPage\PageLinker $page_linker)
 
 getLinkXML ()
 
 setQuestionHTML (array $question_html)
 
 getQuestionHTML ()
 
 setTemplateTargetVar (string $a_variable)
 
 getTemplateTargetVar ()
 
 getTemplateOutputVar ()
 
 setSourcecodeDownloadScript (string $script_name)
 
 getSourcecodeDownloadScript ()
 
 setTabs (ilTabsGUI $a_tabs)
 
 setPageBackTitle (string $a_title)
 
 setFileDownloadLink (string $a_download_link)
 
 getFileDownloadLink ()
 
 setFullscreenLink (string $a_fullscreen_link)
 
 getFullscreenLink ()
 
 setIntLinkReturn (string $a_return)
 
 enableNotes (bool $a_enabled, int $a_parent_id)
 
 isEnabledNotes ()
 
 setOfflineDirectory (string $offdir)
 
 getOfflineDirectory ()
 
 setViewPageLink (string $a_link, string $a_target="")
 set link for "view page" button More...
 
 getViewPageLink ()
 
 getViewPageTarget ()
 
 getViewPageText ()
 
 setActivationListener (object $a_obj, string $a_meth)
 
 setEnabledNews (bool $a_enabled, int $a_news_obj_id=0, string $a_news_obj_type="")
 
 getEnabledNews ()
 
 setTabHook (object $a_object, string $a_function)
 
 setEditPreview (bool $a_editpreview)
 Set Display first Edit tab, then Preview tab, instead of Page and Edit. More...
 
 getEditPreview ()
 
 setEnabledTabs (bool $a_enabledtabs)
 
 getEnabledTabs ()
 
 setEnabledPageFocus (bool $a_enabledpagefocus)
 
 setOpenPlaceHolder (string $a_val)
 
 getOpenPlaceHolder ()
 
 getEnabledPageFocus ()
 
 setPrependingHtml (string $a_prependinghtml)
 
 getPrependingHtml ()
 
 setEnableEditing (bool $a_enableediting)
 
 getEnableEditing ()
 
 setRawPageContent (bool $a_rawpagecontent)
 Set Get raw page content only. More...
 
 getRawPageContent ()
 
 setStyleId (int $a_styleid)
 
 getStyleId ()
 
 setCompareMode (bool $a_val)
 
 getCompareMode ()
 
 setAbstractOnly (bool $a_val, string $pcid="")
 Get only abstract (first text paragraph) More...
 
 getAbstractOnly ()
 
 setRenderPageContainer (bool $a_val)
 
 getRenderPageContainer ()
 
 getDisabledText ()
 
 getEnabledHref ()
 
 setEnabledHref (bool $enable)
 
 activateMetaDataEditor (ilObject $a_rep_obj, string $a_type, int $a_sub_obj_id, ?object $a_observer_obj=null, string $a_observer_func="")
 Activate meda data editor. More...
 
 determineFileDownloadLink ()
 
 determineFullscreenLink ()
 
 determineSourcecodeDownloadScript ()
 
 getComponentPluginsXML ()
 Put information about activated plugins into XML. More...
 
 executeCommand ()
 execute command More...
 
 setQEditTabs (string $a_active)
 Set question editing tabs. More...
 
 onFeedbackEditingForwarding ()
 
 deactivatePage ()
 
 activatePage ()
 
 showPage ()
 display content of page More...
 
 replaceCurlyBrackets (string $output)
 
 getActivationCaptions ()
 Get captions for activation action menu entries. More...
 
 setEditMode ()
 Set edit mode. More...
 
 setDefaultLinkXml ()
 
 setLinkXml (string $xml)
 
 getProfileBackUrl ()
 
 setProfileBackUrl (string $url)
 
 downloadFile ()
 
 displayMediaFullscreen ()
 
 displayMedia (bool $a_fullscreen=false)
 
 download_paragraph ()
 download source code paragraph More...
 
 insertPageToc (string $a_output)
 
 insertResources (string $a_output)
 
 insertAdvTrigger (string $a_output)
 Insert adv content trigger. More...
 
 postOutputProcessing (string $a_output)
 Finalizing output processing. More...
 
 previewHistory ()
 Preview history. More...
 
 preview ()
 
 edit ()
 
 getBlockingInfoMessage ()
 
 insertJSAtPlaceholder ()
 
 presentation (string $a_mode=self::PRESENTATION)
 
 getHTML ()
 
 showMediaFullscreen (int $a_style_id=0)
 show fullscreen view of media object More...
 
 displayValidationError ($a_error)
 display validation error More...
 
 history ()
 Get history table as HTML. More...
 
 rollbackConfirmation ()
 Rollback confirmation. More...
 
 rollback ()
 Rollback to a previous version. More...
 
 setScreenIdComponent ()
 
 getMetaDataLink ()
 
 getTabs (string $a_activate="")
 
 compareVersion ()
 Compares two revisions of the page. More...
 
 replaceDiffTags (string $a_html)
 
 editActivation ()
 Edit activation (only, if scheduled page activation is activated in administration) More...
 
 initActivationForm ()
 Init activation form. More...
 
 getActivationFormValues ()
 Get values for activation form. More...
 
 saveActivation ()
 Save Activation. More...
 
 getNotesHTML (?object $a_content_object=null, bool $a_enable_private_notes=true, bool $a_enable_public_notes=false, bool $a_enable_notes_deletion=false, ?callable $a_callback=null, bool $export=false)
 Get html for public and/or private notes. More...
 
 processAnswer ()
 Process answer. More...
 
 initialOpenedContent ()
 Initially opened content. More...
 
 initOpenedContentForm ()
 
 saveInitialOpenedContent ()
 
 switchToLanguage ()
 Switch to language. More...
 
 confirmPageTranslationCreation ()
 Confirm page translation creation. More...
 
 editMasterLanguage ()
 Edit master language. More...
 
 createPageTranslation ()
 Create page translation. More...
 
 releasePageLock ()
 Release page lock. More...
 
 finishEditing ()
 
 getPagePermaLink ()
 
 getAdditionalPageActions ()
 Get additional page actions. More...
 
 afterDeleteContents ()
 

Static Public Member Functions

static getTinyMenu (string $a_par_type, bool $a_int_links=false, bool $a_wiki_links=false, bool $a_keywords=false, $a_style_id=0, $a_paragraph_styles=true, $a_save_return=true, $a_anchors=false, $a_save_new=true, $a_user_links=false, ?\ILIAS\COPage\Editor\Server\UIWrapper $ui_wrapper=null)
 Get Tiny Menu. More...
 

Data Fields

const PRESENTATION = "presentation"
 
const EDIT = "edit"
 
const PREVIEW = "preview"
 
const OFFLINE = "offline"
 
const PRINTING = "print"
 
string $page_back_title = ""
 
ilPageObject $obj
 
string $presentation_title = ""
 
string $target_script = ""
 
string $return_location = ""
 
string $target_var = ""
 
string $template_output_var = ""
 
bool $output2template = false
 
string $link_params = ""
 
string $sourcecode_download_script = ""
 
bool $activation = false
 
bool $activated = true
 
bool $editpreview = false
 
bool $use_meta_data = false
 
ilObject $meta_data_rep_obj = null
 
int $meta_data_sub_obj_id = 0
 
string $meta_data_type = ""
 
object $meta_data_observer_obj = null
 
string $meta_data_observer_func = ""
 
bool $link_xml_set = false
 
bool $enableediting = true
 
bool $rawpagecontent = false
 
bool $enabledcontentincludes = false
 
bool $compare_mode = false
 
ilPageConfig $page_config = null
 
bool $tabs_enabled = true
 
bool $render_page_container = false
 
string $pl_start = "{{{{{"
 
string $pl_end = "}}}}}"
 

Protected Member Functions

 initPageObject ()
 Init page object. More...
 
 showEditToolbar ()
 Show edit toolbar. More...
 
 setEditorToolContext ()
 Set editor tool context. More...
 
 initEditing ()
 
 showEditLockInfo ()
 
 setBackToEditTabs ()
 
 setBackToHistoryTabs ()
 
 checkLangPageAvailable (int $id, string $lang)
 
 isPageContainerToBeRendered ()
 
 addResourcesToTemplate (ilGlobalTemplateInterface $tpl)
 Add resources to template. More...
 

Protected Attributes

ILIAS TestQuestionPool Questions PublicInterface $questioninfo
 
ILIAS COPage Page PageManager $pm
 
ILIAS COPage Link LinkManager $link
 
ILIAS COPage InternalGUIService $gui
 
ILIAS COPage PC PCDefinition $pc_definition
 
ILIAS COPage Xsl XslManager $xsl
 
ILIAS COPage Editor GUIService $editor_gui
 
ILIAS Notes Service $notes
 
int $requested_ref_id
 
int $requested_pg_id
 
string $requested_file_id
 
string $requested_transl
 
int $requested_old_nr
 
EditGUIRequest $request
 
EditSessionRepository $edit_repo
 
string $exp_target_script = ""
 
string $exp_id = ""
 
string $exp_frame = ""
 
string $act_meth = ""
 
object $act_obj
 
int $notes_parent_id = 0
 
ilPropertyFormGUI $form
 
int $styleid = 0
 
bool $enabledpagefocus
 
string $link_xml
 
int $old_nr = 0
 
int $id
 
string $language
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilCtrl $ctrl
 
ilTabsGUI $tabs_gui
 
ilAccessHandler $access
 
ilLogger $log
 
ilObjUser $user
 
ilHelpGUI $help
 
string $output_mode = ""
 
string $parent_type = ""
 
string $file_download_link = ''
 
string $fullscreen_link = ''
 
string $link_frame = ''
 
ILIAS GlobalScreen ScreenContext ContextServices $tool_context
 
ILIAS DI UIServices $ui
 
ILIAS COPage PageLinker $page_linker
 
string $abstract_pcid = ""
 
ilToolbarGUI $toolbar
 
string $open_place_holder = ""
 
int $requested_user_id = 0
 
int $requested_q_id = 0
 
int $requested_history_mode = 0
 
bool $enabled_news = false
 
int $news_obj_id = 0
 
string $news_obj_type = ""
 
array $tab_hook = null
 
string $view_page_link = ""
 
string $view_page_target = ""
 
string $offline_directory = ""
 
bool $notes_enabled = false
 
string $prependinghtml = ""
 
string $header = ""
 
string $int_link_return = ""
 
bool $enabled_href = true
 
int $adv_ref_id = null
 
string $adv_type = null
 
string $adv_subtype = null
 
string $concrete_lang = ""
 
string $profile_back_url = ""
 
ilComponentFactory $component_factory
 
ILIAS COPage Compare PageCompare $compare
 

Private Attributes

bool $abstract_only = false
 

Detailed Description

Class ilPageObjectGUI.

User Interface for Page Objects Editing

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

@ilCtrl_Calls ilPageObjectGUI: ilPageEditorGUI, ilEditClipboardGUI, ilObjectMetaDataGUI @ilCtrl_Calls ilPageObjectGUI: ILIAS\User\Profile\PublicProfileGUI, ilNoteGUI, ilCommentGUI, ilNewsItemGUI @ilCtrl_Calls ilPageObjectGUI: ilPropertyFormGUI, ilInternalLinkGUI, ilPageMultiLangGUI, ilLearningHistoryGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilPageObjectGUI::__construct ( string  $a_parent_type,
int  $a_id,
int  $a_old_nr = 0,
bool  $a_prevent_get_id = false,
string  $a_lang = "",
string  $concrete_lang = "" 
)
Parameters
string$a_parent_typetype of parent object
int$a_idpage id
int$a_old_nrhistory number (current version 0)
bool$a_prevent_get_idprevent getting id automatically from $_GET (e.g. set when concentInclude are included)
string$a_langlanguage ("" reads also $_GET["transl"], "-" forces master lang)

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

159 {
160 global $DIC;
161
162 $this->log = ilLoggerFactory::getLogger('copg');
163 $this->tpl = $DIC->ui()->mainTemplate();
164 $this->ctrl = $DIC->ctrl();
165 $this->lng = $DIC->language();
166 $this->tabs_gui = $DIC->tabs();
167 $this->access = $DIC->access();
168 $this->user = $DIC->user();
169 $this->help = $DIC["ilHelp"];
170 $this->ui = $DIC->ui();
171 $this->toolbar = $DIC->toolbar();
172 $this->component_factory = $DIC["component.factory"];
173
174 $this->request = $DIC
175 ->copage()
176 ->internal()
177 ->gui()
178 ->page()
179 ->editRequest();
180
181 $this->questioninfo = $DIC->testQuestion();
182
183 $this->requested_old_nr = $this->request->getInt("old_nr");
184 $this->requested_transl = $this->request->getString("transl");
185 $this->requested_file_id = $this->request->getString("file_id");
186 $this->requested_ref_id = $this->request->getInt("ref_id");
187 $this->requested_pg_id = $this->request->getInt("pg_id");
188 $this->concrete_lang = $concrete_lang;
189
190 $this->setParentType($a_parent_type);
191 $this->setId($a_id);
192 if ($a_old_nr == 0 && !$a_prevent_get_id && $this->requested_old_nr > 0) {
193 $a_old_nr = $this->requested_old_nr;
194 }
195 $this->setOldNr($a_old_nr);
196
197 if ($a_lang == "" && $this->requested_transl != '') {
198 $this->setLanguage($this->requested_transl);
199 } else {
200 if ($a_lang == "") {
201 $a_lang = "-";
202 }
203 $this->setLanguage($a_lang);
204 }
205
206
207 $this->setOutputMode(self::PRESENTATION);
208 $this->setEnabledPageFocus(true);
209 $this->initPageObject();
210 $this->setPageConfig($this->getPageObject()->getPageConfig());
211
212 $this->page_linker = new ilPageLinker(get_class($this));
213
214 $this->output2template = true;
215
216 $this->template_output_var = "PAGE_CONTENT";
217 $this->page_back_title = $this->lng->txt("page");
218 $this->lng->loadLanguageModule("content");
219 $this->lng->loadLanguageModule("copg");
220
221 $this->tool_context = $DIC->globalScreen()->tool()->context();
222
223 $this->setTemplateOutput(false);
224
225 $this->ctrl->saveParameter($this, "transl");
226
227
228 $this->requested_user_id = $this->request->getInt("user");
229 $this->requested_q_id = $this->request->getInt("q_id");
230 $this->requested_history_mode = $this->request->getInt("history_mode");
231
232 $int_service = $DIC
233 ->copage()
234 ->internal();
235
236 $this->edit_repo = $int_service
237 ->repo()
238 ->edit();
239
240 $this->afterConstructor();
241 $this->xsl = $int_service->domain()->xsl();
242 $this->compare = $int_service->domain()->compare();
243 $this->pc_definition = $DIC
244 ->copage()
245 ->internal()
246 ->domain()
247 ->pc()
248 ->definition();
249 $this->gui = $DIC->copage()->internal()->gui();
250 $this->link = $DIC->copage()->internal()->domain()->link();
251 $this->pm = $DIC->copage()->internal()->domain()->page();
252 $this->editor_gui = $DIC->copage()->internal()->gui()->edit();
253 $this->notes = $DIC->notes();
254 }
static getLogger(string $a_component_id)
Get component logger.
setLanguage(string $a_val)
setParentType(string $a_val)
setEnabledPageFocus(bool $a_enabledpagefocus)
setPageConfig(ilPageConfig $a_val)
setOldNr(int $a_val)
Set old nr (historic page)
setOutputMode(string $a_mode=self::PRESENTATION)
setTemplateOutput(bool $a_output=true)
initPageObject()
Init page object.
link(string $caption, string $href, bool $new_viewport=false)
global $DIC
Definition: shib_login.php:26

References $concrete_lang, $DIC, $requested_old_nr, ILIAS\Repository\access(), afterConstructor(), ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), getPageConfig(), getPageObject(), ILIAS\Repository\help(), initPageObject(), ILIAS\Repository\link(), ILIAS\Repository\lng(), setEnabledPageFocus(), setId(), setLanguage(), setOldNr(), setOutputMode(), setPageConfig(), setParentType(), setTemplateOutput(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ activateMetaDataEditor()

ilPageObjectGUI::activateMetaDataEditor ( ilObject  $a_rep_obj,
string  $a_type,
int  $a_sub_obj_id,
?object  $a_observer_obj = null,
string  $a_observer_func = "" 
)

Activate meda data editor.

Parameters
ilObject$a_rep_objobject as used in repository
string$a_type
int$a_sub_obj_id
object | null$a_observer_obj
string$a_observer_func

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

759 : void {
760 $this->use_meta_data = true;
761 $this->meta_data_rep_obj = $a_rep_obj;
762 $this->meta_data_sub_obj_id = $a_sub_obj_id;
763 $this->meta_data_type = $a_type;
764 $this->meta_data_observer_obj = $a_observer_obj;
765 $this->meta_data_observer_func = $a_observer_func;
766 }

◆ activatePage()

ilPageObjectGUI::activatePage ( )

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

1022 : void
1023 {
1024 $this->getPageObject()->setActivationStart(null);
1025 $this->getPageObject()->setActivationEnd(null);
1026 $this->getPageObject()->setActive(true);
1027 $this->getPageObject()->update();
1028 $this->ctrl->redirect($this, "edit");
1029 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ addResourcesToTemplate()

ilPageObjectGUI::addResourcesToTemplate ( ilGlobalTemplateInterface  $tpl)
protected

Add resources to template.

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

3157 : void
3158 {
3159 $collector = new \ILIAS\COPage\ResourcesCollector($this->getOutputMode(), $this->getPageObject());
3160
3161 foreach ($collector->getJavascriptFiles() as $js) {
3162 $tpl->addJavaScript($js);
3163 }
3164
3165 foreach ($collector->getCssFiles() as $css) {
3166 $tpl->addCss($css);
3167 }
3168
3169 foreach ($collector->getOnloadCode() as $code) {
3170 $tpl->addOnLoadCode($code);
3171 }
3172 }
ilGlobalTemplateInterface $tpl
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
addOnLoadCode(string $a_code, int $a_batch=2)
Add on load code.

References ILIAS\UICore\GlobalTemplate\addCss(), ILIAS\UICore\GlobalTemplate\addJavaScript(), and ILIAS\UICore\GlobalTemplate\addOnLoadCode().

+ Here is the call graph for this function:

◆ afterConstructor()

ilPageObjectGUI::afterConstructor ( )

Reimplemented in ilDashboardPageGUI.

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

261 : void
262 {
263 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ afterDeleteContents()

ilPageObjectGUI::afterDeleteContents ( )

Reimplemented in ilContainerPageGUI.

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

3182 : void
3183 {
3184 }

◆ checkLangPageAvailable()

ilPageObjectGUI::checkLangPageAvailable ( int  $id,
string  $lang 
)
protected

Reimplemented in ilWikiPageGUI.

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

3075 : bool
3076 {
3077 $p = $this->getPageObject();
3078 return ilPageObject::_exists($this->getParentType(), $id, $lang);
3079 }
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
$lang
Definition: xapiexit.php:25

References $id, $lang, and ilPageObject\_exists().

+ Here is the call graph for this function:

◆ compareVersion()

ilPageObjectGUI::compareVersion ( )

Compares two revisions of the page.

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

2739 : string
2740 {
2741 if (!$this->getEnableEditing()) {
2742 return "";
2743 }
2744
2745 $tpl = new ilTemplate("tpl.page_compare.html", true, true, "components/ILIAS/COPage");
2746 $this->setBackToHistoryTabs();
2747
2748 $pg = $this->obj;
2749 $l_page = ilPageObjectFactory::getInstance($pg->getParentType(), $pg->getId(), $this->request->getInt("left"), $pg->getLanguage());
2750 $r_page = ilPageObjectFactory::getInstance($pg->getParentType(), $pg->getId(), $this->request->getInt("right"), $pg->getLanguage());
2751
2752 $compare = $this->compare->compare(
2753 $this->getPageObject(),
2754 $l_page,
2755 $r_page
2756 );
2757
2758 // left page
2759 $lpage = $compare["l_page"];
2760 $cfg = $this->getPageConfig();
2761 $cfg->setPreventHTMLUnmasking(true);
2762
2763 $this->setOutputMode(self::PREVIEW);
2764 $this->setPageObject($lpage);
2766 $this->setCompareMode(true);
2767
2768 $lhtml = $this->showPage();
2769 $lhtml = $this->replaceDiffTags($lhtml);
2770 $lhtml = str_replace("&lt;br /&gt;", "<br />", $lhtml);
2771 $tpl->setVariable("LEFT", $lhtml);
2772
2773 // right page
2774 $rpage = $compare["r_page"];
2775 $this->setPageObject($rpage);
2777 $this->setCompareMode(true);
2778 $this->setOutputMode(self::PREVIEW);
2779
2780 $rhtml = $this->showPage();
2781 $rhtml = $this->replaceDiffTags($rhtml);
2782 $rhtml = str_replace("&lt;br /&gt;", "<br />", $rhtml);
2783 $tpl->setVariable("RIGHT", $rhtml);
2784
2785 $tpl->setVariable("TXT_NEW", $this->lng->txt("cont_pc_new"));
2786 $tpl->setVariable("TXT_MODIFIED", $this->lng->txt("cont_pc_modified"));
2787 $tpl->setVariable("TXT_DELETED", $this->lng->txt("cont_pc_deleted"));
2788
2789 return $tpl->get();
2790 }
static getInstance(string $a_parent_type, int $a_id=0, int $a_old_nr=0, string $a_lang="-")
Get page object instance.
showPage()
display content of page
setPresentationTitle(string $a_title="")
ILIAS COPage Compare PageCompare $compare
replaceDiffTags(string $a_html)
setPageObject(ilPageObject $a_pg_obj)
special template class to simplify handling of ITX/PEAR
setVariable(string $variable, $value='')
Sets the given variable to the given value.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.

References ILIAS\UICore\GlobalTemplate\get(), ilPageObjectFactory\getInstance(), ILIAS\Repository\lng(), and ILIAS\UICore\GlobalTemplate\setVariable().

+ Here is the call graph for this function:

◆ confirmPageTranslationCreation()

ilPageObjectGUI::confirmPageTranslationCreation ( )

Confirm page translation creation.

Reimplemented in ilWikiPageGUI.

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

3084 : void
3085 {
3086 $l = $this->request->getString("totransl");
3087 $this->ctrl->setParameter($this, "totransl", $l);
3088 $this->lng->loadLanguageModule("meta");
3089
3090 $cgui = new ilConfirmationGUI();
3091 $cgui->setFormAction($this->ctrl->getFormAction($this));
3092 $cgui->setHeaderText($this->lng->txt("cont_page_translation_does_not_exist") . ": " .
3093 $this->lng->txt("meta_l_" . $l));
3094 $cgui->setCancel($this->lng->txt("cancel"), "editMasterLanguage");
3095 $cgui->setConfirm($this->lng->txt("confirm"), "createPageTranslation");
3096 $this->tpl->setContent($cgui->getHTML());
3097 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ createPageTranslation()

ilPageObjectGUI::createPageTranslation ( )

Create page translation.

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

3111 : void
3112 {
3113 $l = $this->request->getString("totransl");
3114
3116 $this->getPageObject()->getParentType(),
3117 $this->getPageObject()->getId(),
3118 0,
3119 "-"
3120 );
3121
3122 $p->copyPageToTranslation($l);
3123 $this->ctrl->setParameter($this, "transl", $l);
3124 $this->ctrl->redirect($this, "edit");
3125 }

References ILIAS\Repository\ctrl(), ILIAS\Survey\Mode\getId(), and ilPageObjectFactory\getInstance().

+ Here is the call graph for this function:

◆ deactivatePage()

ilPageObjectGUI::deactivatePage ( )

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

1013 : void
1014 {
1015 $this->getPageObject()->setActivationStart(null);
1016 $this->getPageObject()->setActivationEnd(null);
1017 $this->getPageObject()->setActive(false);
1018 $this->getPageObject()->update();
1019 $this->ctrl->redirect($this, "edit");
1020 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ determineFileDownloadLink()

ilPageObjectGUI::determineFileDownloadLink ( )

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

768 : string
769 {
771 if ($this->getFileDownloadLink() == "" && $this->getOutputMode() != "offline") {
772 $file_download_link = $this->ctrl->getLinkTarget($this, "downloadFile");
773 }
774 return $file_download_link;
775 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ determineFullscreenLink()

ilPageObjectGUI::determineFullscreenLink ( )

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

777 : string
778 {
780 if ($this->getFullscreenLink() == "" && $this->getOutputMode() != "offline") {
781 $fullscreen_link = $this->ctrl->getLinkTarget($this, "displayMediaFullscreen", "", false, false);
782 }
783 return $fullscreen_link;
784 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ determineSourcecodeDownloadScript()

ilPageObjectGUI::determineSourcecodeDownloadScript ( )

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

786 : string
787 {
789 if ($this->sourcecode_download_script == "" && $this->getOutputMode() != "offline") {
790 $l = $this->ctrl->getLinkTarget($this, "");
791 }
792 return $l;
793 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ displayMedia()

ilPageObjectGUI::displayMedia ( bool  $a_fullscreen = false)

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

2117 : void
2118 {
2119 $tpl = new ilGlobalTemplate("tpl.fullscreen.html", true, true, "components/ILIAS/LearningModule");
2120 $tpl->setCurrentBlock("ilMedia");
2121 //$int_links = $page_object->getInternalLinks();
2122 $med_links = ilMediaItem::_getMapAreasIntLinks($this->request->getMobId());
2123
2124 // @todo
2125 $link_xml = $this->page_linker->getLinkXML($med_links);
2126
2127 $media_obj = new ilObjMediaObject($this->request->getMobId());
2128 if ($this->request->getPageType() === "mep") {
2129 $pg_obj = new ilMediaPoolPage($this->request->getPageId());
2130 } else {
2131 $pg_obj = $this->getPageObject();
2132 }
2133 $pg_obj->buildDom();
2134
2135 $xml = "<dummy>";
2136 if ($this->requested_pg_id > 0) {
2137 $xml .= $pg_obj->getMediaAliasElement($this->request->getMobId());
2138 } else {
2139 $xml .= $media_obj->getXML(IL_MODE_ALIAS);
2140 }
2141 $xml .= $media_obj->getXML(IL_MODE_OUTPUT);
2142 $xml .= $link_xml;
2143 $xml .= "</dummy>";
2144
2145 $mode = "media";
2146 if ($a_fullscreen) {
2147 $mode = "fullscreen";
2148 }
2149
2150 //echo "XML:".htmlentities($xml);
2151 // determine target frames for internal links
2152 $wb_path = ilFileUtils::getWebspaceDir("output") . "/";
2153 $enlarge_path = ilUtil::getImagePath("media/enlarge.svg");
2154 $params = array('mode' => $mode, 'enlarge_path' => $enlarge_path,
2155 'link_params' => "ref_id=" . $this->requested_ref_id,'fullscreen_link' => "",
2156 'enable_html_mob' => ilObjMediaObject::isTypeAllowed("html") ? "y" : "n",
2157 'ref_id' => $this->requested_ref_id, 'webspace_path' => $wb_path);
2158 $output = $this->xsl->process($xml, $params);
2159
2160 // unmask user html
2163 $tpl->setVariable("MEDIA_CONTENT", $output);
2164
2165 // add js
2167 //$tpl->fillJavaScriptFiles();
2168 //$tpl->fillCssFiles();
2169 $this->gui->toolbar()->setItems([]); // clear toolbar, see #45620
2171 exit;
2172 }
const IL_MODE_ALIAS
const IL_MODE_OUTPUT
static getWebspaceDir(string $mode="filesystem")
get webspace directory
special template class to simplify handling of ITX/PEAR
static _getMapAreasIntLinks(int $a_mob_id)
get all internal links of map areas of a mob
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static includePresentationJS(?ilGlobalTemplateInterface $a_tpl=null)
Include media object presentation JS.
static isTypeAllowed(string $a_type)
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
exit
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31

References $params, ilMediaItem\_getMapAreasIntLinks(), ILIAS\UICore\GlobalTemplate\addCss(), exit, ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), ilUtil\getStyleSheetLocation(), ilFileUtils\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, ilObjMediaObjectGUI\includePresentationJS(), ilObjMediaObject\isTypeAllowed(), ILIAS\UICore\GlobalTemplate\printToStdout(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), and ILIAS\UICore\GlobalTemplate\setVariable().

+ Here is the call graph for this function:

◆ displayMediaFullscreen()

ilPageObjectGUI::displayMediaFullscreen ( )

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

2112 : void
2113 {
2114 $this->displayMedia(true);
2115 }
displayMedia(bool $a_fullscreen=false)

◆ displayValidationError()

ilPageObjectGUI::displayValidationError (   $a_error)

display validation error

Parameters
string | array$a_errorerror string

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

2554 : void
2555 {
2556 if (is_array($a_error)) {
2557 $error_str = "<strong>Error(s):</strong><br>";
2558 foreach ($a_error as $error) {
2559 $err_mess = implode(" - ", $error);
2560 if (!is_int(strpos($err_mess, ":0:"))) {
2561 $error_str .= htmlentities($err_mess) . "<br />";
2562 }
2563 }
2564 $this->tpl->setVariable("MESSAGE", $error_str);
2565 }
2566 }

◆ download_paragraph()

ilPageObjectGUI::download_paragraph ( )

download source code paragraph

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

2177 : void
2178 {
2179 $pg_obj = $this->getPageObject();
2180 $pg_obj->buildDom();
2181 $pg_obj->sendParagraph(
2182 $this->request->getString("par_id"),
2183 $this->request->getString("downloadtitle")
2184 );
2185 }

◆ downloadFile()

ilPageObjectGUI::downloadFile ( )

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

2102 : void
2103 {
2104 $this->getPageObject()->buildDom();
2105 $cm = $this->pm->content($this->getPageObject()->getDomDoc());
2106 $cm->downloadFile(
2107 $this->getPageObject(),
2108 $this->requested_file_id
2109 );
2110 }

◆ edit()

ilPageObjectGUI::edit ( )

Reimplemented in ilContainerPageGUI, and ilWikiPageGUI.

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

2457 : string
2458 {
2459 $this->setOutputMode(self::EDIT);
2460 $html = $this->showPage();
2461
2462 if ($this->isEnabledNotes()) {
2463 $html .= "<br /><br />" . $this->getNotesHTML();
2464 }
2465
2466 return $html;
2467 }
getNotesHTML(?object $a_content_object=null, bool $a_enable_private_notes=true, bool $a_enable_public_notes=false, bool $a_enable_notes_deletion=false, ?callable $a_callback=null, bool $export=false)
Get html for public and/or private notes.

◆ editActivation()

ilPageObjectGUI::editActivation ( )

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

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

2805 : void
2806 {
2807 $this->setBackToEditTabs();
2808
2809 $atpl = new ilTemplate("tpl.page_activation.php", true, true, "components/ILIAS/COPage");
2810 $this->initActivationForm();
2811 $this->getActivationFormValues();
2812 $atpl->setVariable("FORM", $this->form->getHTML());
2813 $this->tpl->setContent($atpl->get());
2814 }
getActivationFormValues()
Get values for activation form.
initActivationForm()
Init activation form.
form( $class_path, string $cmd, string $submit_caption="")

References ILIAS\Repository\form().

+ Here is the call graph for this function:

◆ editMasterLanguage()

ilPageObjectGUI::editMasterLanguage ( )

Edit master language.

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

3102 : void
3103 {
3104 $this->ctrl->setParameter($this, "transl", "-");
3105 $this->ctrl->redirect($this, "edit");
3106 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ enableNotes()

ilPageObjectGUI::enableNotes ( bool  $a_enabled,
int  $a_parent_id 
)

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

528 : void
529 {
530 $this->notes_enabled = $a_enabled;
531 $this->notes_parent_id = $a_parent_id;
532 }

◆ executeCommand()

ilPageObjectGUI::executeCommand ( )

execute command

Reimplemented in ilBlogPostingGUI, ilPageLayoutGUI, ilDashboardPageGUI, ilDclDetailedViewDefinitionGUI, ilDclEditViewDefinitionGUI, ilImprintGUI, ilPortfolioPageGUI, and ilWikiPageGUI.

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

819 : string
820 {
821 $ret = "";
822 $next_class = $this->ctrl->getNextClass($this);
823 if ($next_class !== "") {
824 $this->ctrl->setReturn($this, "edit");
825 }
826 $this->log->debug("next_class: " . $next_class);
827 if ($next_class == "" && $this->ctrl->getCmd() == "edit") {
828 $this->tabs_gui->clearTargets();
829 } else {
830 $this->getTabs();
831 }
832
833
834 switch ($next_class) {
835 case 'ilobjectmetadatagui':
836 $this->setBackToEditTabs();
837 $md_gui = new ilObjectMetaDataGUI($this->meta_data_rep_obj, $this->meta_data_type, $this->meta_data_sub_obj_id);
838 if (is_object($this->meta_data_observer_obj)) {
839 $md_gui->addMDObserver(
840 $this->meta_data_observer_obj,
841 $this->meta_data_observer_func,
842 "General"
843 );
844 }
845 // set adv metadata record dobject
846 if ($this->adv_type != "") {
847 $md_gui->setAdvMdRecordObject($this->adv_ref_id, $this->adv_type, $this->adv_subtype);
848 }
849 $this->ctrl->forwardCommand($md_gui);
850 break;
851
852 case "ileditclipboardgui":
853 $this->setBackToEditTabs();
854 $clip_gui = new ilEditClipboardGUI();
855 $clip_gui->setPageBackTitle($this->page_back_title);
856 $ret = $this->ctrl->forwardCommand($clip_gui);
857 break;
858
859 // notes
860 case "ilnotegui":
861 case "ilcommentgui":
862 $html = $this->edit();
863 $this->tabs_gui->setTabActive("edit");
864 return $html;
865
866 case strtolower(PublicProfileGUI::class):
867 $profile_gui = new PublicProfileGUI($this->requested_user_id);
868 $ret = $this->ctrl->forwardCommand($profile_gui);
869 break;
870
871 case "ilpageeditorgui":
872 $this->setEditorToolContext();
873
874 if (!$this->getEnableEditing()) {
875 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
876 $this->ctrl->redirect($this, "preview");
877 }
878 $page_editor = new ilPageEditorGUI($this->getPageObject(), $this);
879 $page_editor->setHeader($this->getHeader());
880 $page_editor->setPageBackTitle($this->page_back_title);
881 $page_editor->setIntLinkReturn($this->int_link_return);
882 //$page_editor->executeCommand();
883 $ret = $this->ctrl->forwardCommand($page_editor);
884 break;
885
886 case 'ilnewsitemgui':
887 $news_item_gui = new ilNewsItemGUI();
888 $news_item_gui->setEnableEdit(true);
889 $news_item_gui->setContextObjId($this->news_obj_id);
890 $news_item_gui->setContextObjType($this->news_obj_type);
891 $news_item_gui->setContextSubObjId($this->obj->getId());
892 $news_item_gui->setContextSubObjType("pg");
893
894 $ret = $this->ctrl->forwardCommand($news_item_gui);
895 break;
896
897 case "ilpropertyformgui":
898 $form = $this->initOpenedContentForm();
899 $this->ctrl->forwardCommand($form);
900 break;
901
902 case "ilinternallinkgui":
903 $this->lng->loadLanguageModule("content");
904 $link_gui = new ilInternalLinkGUI("Media_Media", 0);
905
906 $link_gui->filterLinkType("PageObject_FAQ");
907 $link_gui->filterLinkType("GlossaryItem");
908 $link_gui->filterLinkType("Media_Media");
909 $link_gui->filterLinkType("Media_FAQ");
910
911 $link_gui->setFilterWhiteList(true);
912 $this->ctrl->forwardCommand($link_gui);
913 break;
914
915 case "ilquestioneditgui":
916 $this->setQEditTabs("question");
917 $edit_gui = new ilQuestionEditGUI();
918 $edit_gui->setPageConfig($this->getPageConfig());
919 $edit_gui->setSelfAssessmentEditingMode(true);
920 $ret = $this->ctrl->forwardCommand($edit_gui);
921 $this->tpl->setContent($ret);
922 break;
923
924 case 'ilassquestionfeedbackeditinggui':
925
927
928 // set tabs
929 $this->setQEditTabs("feedback");
930
931 // load required lang mods
932 $this->lng->loadLanguageModule("assessment");
933
934 // set context tabs
935 $questionGUI = assQuestionGUI::_getQuestionGUI(
936 $this->questioninfo->getGeneralQuestionProperties(
937 $this->requested_q_id
938 )->getClassName(),
939 $this->requested_q_id
940 );
941 $questionGUI->getObject()->setObjId(0);
942 $questionGUI->getObject()->setSelfAssessmentEditingMode(true);
943 $questionGUI->getObject()->setPreventRteUsage($this->getPageConfig()->getPreventRteUsage());
944
945 // forward to ilAssQuestionFeedbackGUI
946 (new ilQuestionEditGUI())->forwardToFeedbackEditGUI($questionGUI);
947 break;
948
949
950 case 'ilLearninghistorygui':
951 $user_id = null;
952 if ($this->getPageObject()->getParentType() == "prtf") {
953 $user_id = ilObject::_lookupOwner($this->getPageObject()->getPortfolioId());
954 }
955 $hist_gui = new ilLearningHistoryGUI();
956 $hist_gui->setUserId($user_id);
957 $this->ctrl->forwardCommand($hist_gui);
958 break;
959
960 default:
961 $cmd = $this->ctrl->getCmd("preview");
962 // presentation view
963 if ($this->getViewPageLink() != "" && $cmd != "edit") {
964 $this->tabs_gui->addNonTabbedLink(
965 "pres_view",
966 $this->getViewPageText(),
967 $this->getViewPageLink()
968 );
969 }
970 $ret = $this->$cmd();
971 if ($this->getOutputMode() == self::PREVIEW && $cmd == "preview") {
972 $this->showEditToolbar();
973 }
974 break;
975 }
976 //echo "+$ret+";
977 return (string) $ret;
978 }
GUI class for public user profile presentation.
static _getQuestionGUI(string $question_type='', int $question_id=-1)
Creates a question gui representation and returns the alias to the question gui.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Internal link selector.
Learning history main GUI class.
User Interface for NewsItem entities.
Class ilObjectMetaDataGUI.
static _lookupOwner(int $obj_id)
Lookup owner user ID for object ID.
Page Editor GUI class.
showEditToolbar()
Show edit toolbar.
ilPropertyFormGUI $form
getTabs(string $a_activate="")
setEditorToolContext()
Set editor tool context.
setQEditTabs(string $a_active)
Set question editing tabs.
Class ilQuestionEditGUI.

References $user_id, assQuestionGUI\_getQuestionGUI(), ilObject\_lookupOwner(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ finishEditing()

ilPageObjectGUI::finishEditing ( )

◆ getAbstractOnly()

ilPageObjectGUI::getAbstractOnly ( )

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

715 : bool
716 {
718 }

◆ getActivationCaptions()

ilPageObjectGUI::getActivationCaptions ( )

Get captions for activation action menu entries.

Reimplemented in ilBlogPostingGUI.

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

1667 : array
1668 {
1669 return array("deactivatePage" => $this->lng->txt("cont_deactivate_page"),
1670 "activatePage" => $this->lng->txt("cont_activate_page"));
1671 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getActivationFormValues()

ilPageObjectGUI::getActivationFormValues ( )

Get values for activation form.

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

2859 : void
2860 {
2861 $activation = "deactivated";
2862 if ($this->getPageObject()->getActive()) {
2863 $activation = "activated";
2864 }
2865
2866 $dt_prop = $this->form->getItemByPostVar("start");
2867 if ($this->getPageObject()->getActivationStart() != "") {
2868 $activation = "scheduled";
2869 $dt_prop->setDate(new ilDateTime(
2870 $this->getPageObject()->getActivationStart(),
2872 ));
2873 }
2874 $dt_prop = $this->form->getItemByPostVar("end");
2875 if ($this->getPageObject()->getActivationEnd() != "") {
2876 $activation = "scheduled";
2877 $dt_prop->setDate(new ilDateTime(
2878 $this->getPageObject()->getActivationEnd(),
2880 ));
2881 }
2882
2883 $this->form->getItemByPostVar("activation")->setValue($activation);
2884 $this->form->getItemByPostVar("show_activation_info")->setChecked($this->getPageObject()->getShowActivationInfo());
2885 }
const IL_CAL_DATETIME
@classDescription Date and time handling

References ILIAS\Repository\form(), and IL_CAL_DATETIME.

+ Here is the call graph for this function:

◆ getAdditionalPageActions()

ilPageObjectGUI::getAdditionalPageActions ( )

Get additional page actions.

Reimplemented in ilContainerPageGUI, ilContentPagePageGUI, ilDashboardPageGUI, ilForumPageGUI, and ilMediaPoolPageGUI.

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

3177 : array
3178 {
3179 return [];
3180 }

◆ getAdvMdRecordObject()

ilPageObjectGUI::getAdvMdRecordObject ( )

Get adv md record type.

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

282 : ?array
283 {
284 if ($this->adv_type === null) {
285 return null;
286 }
288 }

◆ getBlockingInfoMessage()

ilPageObjectGUI::getBlockingInfoMessage ( )

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

2469 : string
2470 {
2471 $ui = $this->ui;
2472
2473 $lock = $this->getPageObject()->getEditLockInfo();
2474 $info = $this->lng->txt("cont_got_lock_release");
2475 $info = str_replace("%1", ilDatePresentation::formatDate(new ilDateTime($lock["edit_lock_until"], IL_CAL_UNIX)), $info);
2476
2477 $mbox = $ui->factory()->messageBox()->info($info);
2478
2479 return $ui->renderer()->render($mbox);
2480 }
const IL_CAL_UNIX
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
ILIAS DI UIServices $ui
$info
Definition: entry_point.php:21

References $info, ilDatePresentation\formatDate(), IL_CAL_UNIX, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getCompareMode()

ilPageObjectGUI::getCompareMode ( )

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

699 : bool
700 {
701 return $this->compare_mode;
702 }

◆ getComponentPluginsXML()

ilPageObjectGUI::getComponentPluginsXML ( )

Put information about activated plugins into XML.

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

798 : string
799 {
800 $xml = "";
801 if ($this->getOutputMode() == "edit") {
802 foreach ($this->component_factory->getActivePluginsInSlot("pgcp") as $plugin) {
803 if ($plugin->isValidParentType($this->getPageObject()->getParentType())) {
804 $xml .= '<ComponentPlugin Name="' . $plugin->getPluginName() .
805 '" InsertText="' . $plugin->txt(ilPageComponentPlugin::TXT_CMD_INSERT) . '" />';
806 }
807 }
808 }
809 if ($xml != "") {
810 $xml = "<ComponentPlugins>" . $xml . "</ComponentPlugins>";
811 }
812 return $xml;
813 }

References XapiProxy\$plugin, and ilPageComponentPlugin\TXT_CMD_INSERT.

◆ getDisabledText()

ilPageObjectGUI::getDisabledText ( )

Reimplemented in ilBlogPostingGUI.

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

730 : string
731 {
732 return $this->lng->txt("inactive");
733 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getEditPreview()

ilPageObjectGUI::getEditPreview ( )

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

616 : bool
617 {
618 return $this->editpreview;
619 }

◆ getEnabledHref()

ilPageObjectGUI::getEnabledHref ( )

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

735 : bool
736 {
737 return $this->enabled_href;
738 }

◆ getEnabledNews()

ilPageObjectGUI::getEnabledNews ( )

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

595 : bool
596 {
597 return $this->enabled_news;
598 }

◆ getEnabledPageFocus()

ilPageObjectGUI::getEnabledPageFocus ( )

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

646 : bool
647 {
649 }

◆ getEnabledTabs()

ilPageObjectGUI::getEnabledTabs ( )

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

626 : bool
627 {
628 return $this->tabs_enabled;
629 }

◆ getEnableEditing()

ilPageObjectGUI::getEnableEditing ( )

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

666 : bool
667 {
669 }

Referenced by ilImprintGUI\showEditToolbar().

+ Here is the caller graph for this function:

◆ getEnablePCType()

ilPageObjectGUI::getEnablePCType ( string  $a_pc_type)

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

359 : bool
360 {
361 return $this->getPageConfig()->getEnablePCType($a_pc_type);
362 }

◆ getFileDownloadLink()

ilPageObjectGUI::getFileDownloadLink ( )

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

508 : string
509 {
511 }

◆ getFullscreenLink()

ilPageObjectGUI::getFullscreenLink ( )

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

518 : string
519 {
521 }

◆ getHeader()

ilPageObjectGUI::getHeader ( )

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

423 : string
424 {
425 return $this->header;
426 }

◆ getHTML()

ilPageObjectGUI::getHTML ( )

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

2498 : string
2499 {
2500 $this->getTabs("preview");
2501 return $this->showPage();
2502 }

◆ getId()

ilPageObjectGUI::getId ( )

◆ getLanguage()

ilPageObjectGUI::getLanguage ( )

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

343 : string
344 {
345 if ($this->language == "") {
346 return "-";
347 }
348
349 return $this->language;
350 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by ilDashboardPageGUI\afterConstructor(), and ilDashboardPageGUI\getAdditionalPageActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLinkFrame()

ilPageObjectGUI::getLinkFrame ( )

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

443 : string
444 {
445 return $this->link_frame;
446 }

◆ getLinkParams()

ilPageObjectGUI::getLinkParams ( )

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

433 : string
434 {
435 return $this->link_params;
436 }

◆ getLinkXML()

ilPageObjectGUI::getLinkXML ( )

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

453 : string
454 {
455 return $this->link_xml;
456 }

◆ getMetaDataLink()

ilPageObjectGUI::getMetaDataLink ( )

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

2670 : string
2671 {
2672 $mdtab = "";
2673 if ($this->use_meta_data) {
2674 $mdgui = new ilObjectMetaDataGUI(
2675 $this->meta_data_rep_obj,
2676 $this->meta_data_type,
2677 $this->meta_data_sub_obj_id
2678 );
2679 $mdtab = $mdgui->getTab();
2680 if ($mdtab) {
2681 $this->tabs_gui->addTarget(
2682 "meta_data",
2683 $mdtab,
2684 "",
2685 "ilobjectmetadatagui"
2686 );
2687 }
2688 }
2689 return (string) $mdtab;
2690 }

◆ getNotesHTML()

ilPageObjectGUI::getNotesHTML ( ?object  $a_content_object = null,
bool  $a_enable_private_notes = true,
bool  $a_enable_public_notes = false,
bool  $a_enable_notes_deletion = false,
?callable  $a_callback = null,
bool  $export = false 
)

Get html for public and/or private notes.

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

2932 : string {
2933 // scorm 2004 page gui
2934 if (!$a_content_object) {
2935 throw new ilException("No content object given.");
2936 /*
2937 $notes_gui = new ilNoteGUI(
2938 $this->notes_parent_id,
2939 $this->obj->getId(),
2940 "pg"
2941 );
2942
2943 $a_enable_private_notes = true;
2944 $a_enable_public_notes = true;
2945 $a_enable_notes_deletion = false;
2946 $notes_gui->setUseObjectTitleHeader(false);*/
2947 }
2948 // wiki page gui, blog posting gui
2949 else {
2950 /*
2951 $notes_gui = new ilNoteGUI(
2952 $a_content_object->getParentId(),
2953 $a_content_object->getId(),
2954 $a_content_object->getParentType()
2955 );*/
2956 $comments_gui = $this->notes->gui()->getCommentsGUI(
2957 $a_content_object->getParentId(),
2958 $a_content_object->getId(),
2959 $a_content_object->getParentType()
2960 );
2961 $comments_gui->setUseObjectTitleHeader(false);
2962 }
2963
2964 if ($a_enable_private_notes) {
2965 $comments_gui->enablePrivateNotes();
2966 }
2967 if ($a_enable_public_notes) {
2968 $comments_gui->enablePublicNotes();
2969 if ($a_enable_notes_deletion) {
2970 $comments_gui->enablePublicNotesDeletion(true);
2971 }
2972 }
2973 if ($export) {
2974 $comments_gui->setExportMode();
2975 }
2976
2977 if ($a_callback) {
2978 $comments_gui->addObserver($a_callback);
2979 }
2980
2981 $next_class = $this->ctrl->getNextClass($this);
2982 if (in_array($next_class, ["ilnotegui", "ilcommentgui"])) {
2983 $html = $this->ctrl->forwardCommand($comments_gui);
2984 } else {
2985 $html = $comments_gui->getListHTML();
2986 }
2987 return $html;
2988 }
Base class for ILIAS Exception handling.

◆ getOfflineDirectory()

ilPageObjectGUI::getOfflineDirectory ( )

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

547 : string
548 {
550 }

◆ getOldNr()

ilPageObjectGUI::getOldNr ( )

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

333 : int
334 {
335 return $this->old_nr;
336 }

◆ getOpenPlaceHolder()

ilPageObjectGUI::getOpenPlaceHolder ( )

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

641 : string
642 {
644 }

◆ getOutputMode()

ilPageObjectGUI::getOutputMode ( )

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

393 : string
394 {
395 return $this->output_mode;
396 }

Referenced by ilImprintGUI\getTabs(), ilGlossaryDefPageGUI\postOutputProcessing(), ilImprintGUI\postOutputProcessing(), and ilDclDetailedViewDefinitionGUI\showPage().

+ Here is the caller graph for this function:

◆ getPageConfig()

ilPageObjectGUI::getPageConfig ( )

Reimplemented in ilLearningSequencePageObjectGUI, and ilPRGPageObjectGUI.

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

370 {
371 return $this->page_config;
372 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by ilLMPageGUI\__construct(), __construct(), and ilAssQuestionPageGUI\showPage().

+ Here is the caller graph for this function:

◆ getPageObject()

◆ getPagePermaLink()

ilPageObjectGUI::getPagePermaLink ( )

Reimplemented in ilPortfolioPageGUI.

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

3149 : string
3150 {
3151 return "";
3152 }

◆ getParentType()

ilPageObjectGUI::getParentType ( )

Reimplemented in ilPortfolioPageGUI, and ilPortfolioTemplatePageGUI.

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

310 : string
311 {
312 return $this->parent_type;
313 }

Referenced by ilDashboardPageGUI\afterConstructor(), and ilDashboardPageGUI\getAdditionalPageActions().

+ Here is the caller graph for this function:

◆ getPrependingHtml()

ilPageObjectGUI::getPrependingHtml ( )

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

656 : string
657 {
659 }

◆ getPresentationTitle()

ilPageObjectGUI::getPresentationTitle ( )

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

413 : string
414 {
416 }

◆ getProfileBackUrl()

ilPageObjectGUI::getProfileBackUrl ( )

Reimplemented in ilContainerPageGUI, ilContentPagePageGUI, ilForumPageGUI, and ilMediaPoolPageGUI.

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

2084 : string
2085 {
2086 if ($this->profile_back_url != "") {
2088 }
2089 if ($this->getOutputMode() === self::OFFLINE ||
2090 $this->getOutputMode() === self::PRINTING) {
2091 return "";
2092 }
2093 return $this->ctrl->getLinkTargetByClass(strtolower(get_class($this)), "preview");
2094 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getQuestionHTML()

ilPageObjectGUI::getQuestionHTML ( )

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

463 : array
464 {
465 return $this->getPageConfig()->getQuestionHTML();
466 }

◆ getRawPageContent()

ilPageObjectGUI::getRawPageContent ( )

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

679 : bool
680 {
682 }

◆ getRenderPageContainer()

ilPageObjectGUI::getRenderPageContainer ( )

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

725 : bool
726 {
728 }

Referenced by ilAssQuestionPageGUI\isPageContainerToBeRendered().

+ Here is the caller graph for this function:

◆ getSourcecodeDownloadScript()

ilPageObjectGUI::getSourcecodeDownloadScript ( )

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

488 : string
489 {
491 }

◆ getStyleId()

ilPageObjectGUI::getStyleId ( )

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

689 : int
690 {
691 return $this->styleid;
692 }

Referenced by ilDclDetailedViewDefinitionGUI\showPage().

+ Here is the caller graph for this function:

◆ getTabs()

ilPageObjectGUI::getTabs ( string  $a_activate = "")

Reimplemented in ilBlogPostingGUI, ilMediaPoolPageGUI, ilPortfolioPageGUI, ilTestPageGUI, ilWikiPageGUI, and ilImprintGUI.

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

2692 : void
2693 {
2694 if (in_array($this->getOutputMode(), [self::OFFLINE])) {
2695 return;
2696 }
2697 $this->setScreenIdComponent();
2698
2699 if (!$this->getEnabledTabs()) {
2700 return;
2701 }
2702
2703 // back to upper context
2704 if (!$this->getEditPreview()) {
2705 $this->tabs_gui->addTarget("pg", $this->ctrl->getLinkTarget($this, "preview"), array("", "preview"));
2706 } else {
2707 $this->tabs_gui->addTarget("cont_preview", $this->ctrl->getLinkTarget($this, "preview"), array("", "preview"));
2708 }
2709
2710 if ($this->use_meta_data) {
2711 $mdgui = new ilObjectMetaDataGUI(
2712 $this->meta_data_rep_obj,
2713 $this->meta_data_type,
2714 $this->meta_data_sub_obj_id
2715 );
2716 $mdtab = $mdgui->getTab();
2717 if ($mdtab) {
2718 $this->tabs_gui->addTarget(
2719 "meta_data",
2720 $mdtab,
2721 "",
2722 "ilobjectmetadatagui"
2723 );
2724 }
2725 }
2726
2727 $lm_set = new ilSetting("lm");
2728
2729 // external hook to add tabs
2730 if (is_array($this->tab_hook)) {
2731 $func = $this->tab_hook["func"];
2732 $this->tab_hook["obj"]->$func();
2733 }
2734 }
ILIAS Setting Class.
$lm_set

References $lm_set, and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getTemplateOutputVar()

ilPageObjectGUI::getTemplateOutputVar ( )

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

478 : string
479 {
481 }

◆ getTemplateTargetVar()

ilPageObjectGUI::getTemplateTargetVar ( )

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

473 : string
474 {
475 return $this->target_var;
476 }

◆ getTinyMenu()

static ilPageObjectGUI::getTinyMenu ( string  $a_par_type,
bool  $a_int_links = false,
bool  $a_wiki_links = false,
bool  $a_keywords = false,
  $a_style_id = 0,
  $a_paragraph_styles = true,
  $a_save_return = true,
  $a_anchors = false,
  $a_save_new = true,
  $a_user_links = false,
?\ILIAS\COPage\Editor\Server\UIWrapper  $ui_wrapper = null 
)
static

Get Tiny Menu.

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

1722 : string {
1723 global $DIC;
1724
1725 $lng = $DIC->language();
1726 $lng->loadLanguageModule("copg");
1727 $ctrl = $DIC->ctrl();
1728 $ui = $DIC->ui();
1729
1730 $ui->renderer()->renderAsync($ui->factory()->legacy()->content(""));
1731
1732 $style_service = $DIC->contentStyle()->internal();
1733 $style_access_manager = $style_service->domain()->access(
1734 0,
1735 $DIC->user()->getId()
1736 );
1737 $char_manager = $style_service->domain()->characteristic(
1738 $a_style_id,
1739 $style_access_manager
1740 );
1741
1742 $aset = new ilSetting("adve");
1743
1744 $f = static function (string $type, string $code) use ($char_manager, $lng): string {
1745 $title = $char_manager->getPresentationTitle("text_inline", $type);
1746 if ($title === $type) {
1747 $title = $lng->txt("cont_char_style_" . $code);
1748 }
1749 return $title;
1750 };
1751
1752 // character styles
1753 $chars = [];
1754 if ($a_style_id === 0) {
1755 $chars = array(
1756 "Comment" => array("code" => "com", "txt" => $f("Comment", "com")),
1757 "Quotation" => array("code" => "quot", "txt" => $f("Quotation", "quot")),
1758 "Accent" => array("code" => "acc", "txt" => $f("Accent", "acc")),
1759 "Code" => array("code" => "code", "txt" => $f("Code", "code"))
1760 );
1761 }
1762 foreach (ilPCParagraphGUI::_getTextCharacteristics($a_style_id, true) as $c) {
1763 if (in_array($c, ["Strong", "Important", "Emph"])) {
1764 continue;
1765 }
1766 if (!isset($chars[$c])) {
1767 $title = $char_manager->getPresentationTitle("text_inline", $c);
1768 switch ($c) {
1769 case "CodeInline":
1770 $chars["Code"] = array("code" => "code", "txt" => $f("Code", "code"));
1771 break;
1772 case "Comment":
1773 $chars["Comment"] = array("code" => "com", "txt" => $f("Comment", "com"));
1774 break;
1775 case "Quotation":
1776 $chars["Quotation"] = array("code" => "quot", "txt" => $f("Quotation", "quot"));
1777 break;
1778 case "Accent":
1779 $chars["Accent"] = array("code" => "acc", "txt" => $f("Accent", "acc"));
1780 break;
1781 default:
1782 $chars[$c] = array("code" => "", "txt" => $title);
1783 break;
1784 }
1785 }
1786 }
1787 $char_formats = [];
1788 foreach ($chars as $key => $char) {
1790 $a_par_type,
1791 "active_" . $char["code"],
1792 true
1793 )) {
1794 $t = "text_inline";
1795 $tag = "span";
1796 switch ($key) {
1797 case "Code": $tag = "code";
1798 break;
1799 }
1800 $html = '<' . $tag . ' class="ilc_' . $t . '_' . $key . '" style="font-size:90%; margin-top:2px; margin-bottom:2px; position:static;">' . $char["txt"] . "</" . $tag . ">";
1801 $char_formats[] = ["text" => $html, "action" => "selection.format", "data" => ["format" => $key]];
1802 }
1803 }
1804
1805
1806 $numbered_list = $ui->renderer()->render(
1807 $ui->factory()->symbol()->glyph()->numberedlist(null)
1808 );
1809
1810 $bullet_list = $ui->renderer()->render(
1811 $ui->factory()->symbol()->glyph()->bulletlist(null)
1812 );
1813
1814 $indent = $ui->renderer()->render(
1815 $ui->factory()->symbol()->glyph()->listindent(null)
1816 );
1817
1818 $outdent = $ui->renderer()->render(
1819 $ui->factory()->symbol()->glyph()->listoutdent(null)
1820 );
1821
1822 // menu
1823 $str = "str";
1824 $emp = "emp";
1825 $imp = "imp";
1826 if ($aset->get("use_physical")) {
1827 $str = "B";
1828 $emp = "I";
1829 $imp = "U";
1830 }
1831 $c_formats = [];
1832 foreach (["str", "emp", "imp", "sup", "sub"] as $c) {
1834 $a_par_type,
1835 "active_" . $c,
1836 true
1837 )) {
1838 switch ($c) {
1839 case "str":
1840 $c_formats[] = ["text" => '<span class="ilc_text_inline_Strong">' . $str . '</span>',
1841 "action" => "selection.format",
1842 "data" => ["format" => "Strong"],
1843 "aria-label" => $lng->txt("cont_text_str")
1844 ];
1845 break;
1846 case "emp":
1847 $c_formats[] = ["text" => '<span class="ilc_text_inline_Emph">' . $emp . '</span>',
1848 "action" => "selection.format",
1849 "data" => ["format" => "Emph"],
1850 "aria-label" => $lng->txt("cont_text_emp")
1851 ];
1852 break;
1853 case "imp":
1854 $c_formats[] = ["text" => '<span class="ilc_text_inline_Important">' . $imp . '</span>',
1855 "action" => "selection.format",
1856 "data" => ["format" => "Important"],
1857 "aria-label" => $lng->txt("cont_text_imp")
1858 ];
1859 break;
1860 case "sup":
1861 $c_formats[] = ["text" => 'x<sup>2</sup>',
1862 "action" => "selection.format",
1863 "data" => ["format" => "Sup"],
1864 "aria-label" => $lng->txt("cont_text_sup")
1865 ];
1866 break;
1867 case "sub":
1868 $c_formats[] = ["text" => 'x<sub>2</sub>',
1869 "action" => "selection.format",
1870 "data" => ["format" => "Sub"],
1871 "aria-label" => $lng->txt("cont_text_sub")
1872 ];
1873 break;
1874 }
1875 }
1876 }
1877 $c_formats[] = ["text" => "<i>A</i>",
1878 "action" => $char_formats,
1879 "aria-label" => $lng->txt("copg_more_character_formats")
1880 ];
1881 $c_formats[] = ["text" => '<i><strong><u>T</u></strong><sub>x</sub></i>',
1882 "action" => "selection.removeFormat",
1883 "data" => [],
1884 "aria-label" => $lng->txt("copg_remove_formats")
1885 ];
1886 $menu = [
1887 "cont_char_format" => $c_formats,
1888 "cont_lists" => [
1889 [
1890 "text" => $bullet_list,
1891 "action" => "list.bullet",
1892 "data" => [],
1893 "aria-label" => $lng->txt("cont_bullet_list")
1894 ],
1895 [
1896 "text" => $numbered_list,
1897 "action" => "list.number",
1898 "data" => [],
1899 "aria-label" => $lng->txt("cont_numbered_list")
1900 ],
1901 [
1902 "text" => $outdent,
1903 "action" => "list.outdent",
1904 "data" => [],
1905 "aria-label" => $lng->txt("cont_list_outdent")
1906 ],
1907 [
1908 "text" => $indent,
1909 "action" => "list.indent",
1910 "data" => [],
1911 "aria-label" => $lng->txt("cont_list_indent")
1912 ]
1913 ]
1914 ];
1915
1916 // bullet lists
1917 $ulists = ilPCListGUI::_getListCharacteristics($a_style_id, "list_u");
1918 $olists = ilPCListGUI::_getListCharacteristics($a_style_id, "list_o");
1919 $ilists = ilPCListGUI::_getListCharacteristics($a_style_id, "list_item");
1920 if (count($ulists) > 1) {
1921 $la = [];
1922 foreach ($ulists as $c) {
1923 $la[] = ["action" => "list.bulletStyle", "text" => $c, "data" => ["format" => $c]];
1924 }
1925 $menu["copg_list_styles"][] = ["text" => $lng->txt("copg_list_style"), "action" => $la];
1926 }
1927 if (count($olists) > 1) {
1928 $la = [];
1929 foreach ($olists as $c) {
1930 $la[] = ["action" => "list.numberStyle", "text" => $c, "data" => ["format" => $c]];
1931 }
1932 $menu["copg_list_styles"][] = ["text" => $lng->txt("copg_list_style"), "action" => $la];
1933 }
1934 if (count($ilists) > 1) {
1935 $la = [];
1936 foreach ($ilists as $c) {
1937 $la[] = ["action" => "list.itemStyle", "text" => $c, "data" => ["format" => $c]];
1938 }
1939 $menu["copg_list_styles"][] = ["text" => $lng->txt("copg_list_item_style"), "action" => $la];
1940 }
1941
1942 // more...
1943
1944 // links
1945 $links = [];
1946 if ($a_wiki_links) {
1947 $links[] = ["text" => $lng->txt("cont_wiki_link_dialog"), "action" => "link.wikiSelection", "data" => [
1948 "url" => $ctrl->getLinkTargetByClass("ilwikipagegui", "")]];
1949 $links[] = ["text" => "[[" . $lng->txt("cont_wiki_page") . "]]", "action" => "link.wiki", "data" => []];
1950 }
1951 if ($a_int_links) {
1952 $links[] = ["text" => $lng->txt("cont_text_iln_link"), "action" => "link.internal", "data" => []];
1953 }
1955 $a_par_type,
1956 "active_xln",
1957 true
1958 )) {
1959 $links[] = ["text" => $lng->txt("cont_text_xln"), "action" => "link.external", "data" => []];
1960 }
1961 if ($a_user_links) {
1962 $links[] = ["text" => $lng->txt("cont_link_user"), "action" => "link.user", "data" => []];
1963 }
1964
1965
1966 // more
1967 $menu["cont_more_functions"] = [];
1968 $menu["cont_more_functions"][] = ["text" => $lng->txt("cont_link") . '<i class="mce-ico mce-i-link"></i>', "action" => $links];
1969
1970 if ($a_keywords) {
1971 $menu["cont_more_functions"][] = ["text" => $lng->txt("cont_keyword"), "action" => "selection.keyword", "data" => []];
1972 }
1973 $mathJaxSetting = new ilSetting("MathJax");
1975 $a_par_type,
1976 "active_tex",
1977 true
1978 )) {
1979 $menu["cont_more_functions"][] = ["text" => 'Tex', "action" => "selection.tex", "data" => []];
1980 }
1982 $a_par_type,
1983 "active_fn",
1984 true
1985 )) {
1986 $menu["cont_more_functions"][] = ["text" => $lng->txt("cont_footnote"), "action" => "selection.fn", "data" => []];
1987 }
1988 if ($a_anchors) {
1989 $menu["cont_more_functions"][] = ["text" => $lng->txt("cont_anchor"), "action" => "selection.anchor", "data" => []];
1990 }
1991
1992 $btpl = new ilTemplate("tpl.tiny_menu.html", true, true, "components/ILIAS/COPage");
1993
1994 foreach ($menu as $section_title => $section) {
1995 foreach ($section as $item) {
1996 if (is_array($item["action"])) {
1997 $buttons = [];
1998 foreach ($item["action"] as $i) {
1999 $buttons[] = $ui_wrapper->getButton(
2000 $i["text"],
2001 "par-action",
2002 $i["action"],
2003 $i["data"],
2004 "",
2005 false,
2006 $i["aria-label"] ?? ""
2007 );
2008 }
2009 $dd = $ui->factory()->dropdown()->standard($buttons)->withLabel($item["text"])
2010 ->withAriaLabel($item["aria-label"] ?? "");
2011 $btpl->setCurrentBlock("button");
2012 $btpl->setVariable("BUTTON", $ui->renderer()->renderAsync($dd));
2013 } else {
2014 $b = $ui_wrapper->getRenderedButton(
2015 $item["text"],
2016 "par-action",
2017 $item["action"],
2018 $item["data"],
2019 "",
2020 false,
2021 $item["aria-label"] ?? ""
2022 );
2023 $btpl->setCurrentBlock("button");
2024 $btpl->setVariable("BUTTON", $b);
2025 }
2026 $btpl->parseCurrentBlock();
2027 }
2028 $btpl->setCurrentBlock("section");
2029 $btpl->setVariable("TXT_SECTION", $lng->txt($section_title));
2030 $btpl->parseCurrentBlock();
2031 }
2032
2033
2034 if ($a_paragraph_styles) {
2035 $sel = new \ParagraphStyleSelector($ui_wrapper, $a_style_id);
2036 $dd = $sel->getStyleSelector(" ");
2037 $btpl->setCurrentBlock("par_edit");
2038 $btpl->setVariable("TXT_PAR_FORMAT", $lng->txt("cont_par_format"));
2039
2040 $btpl->setVariable("STYLE_SELECTOR", $ui->renderer()->renderAsync($dd));
2041
2042 $btpl->parseCurrentBlock();
2043 }
2044
2045 // block styles
2046 $sel = new \SectionStyleSelector($ui_wrapper, $a_style_id);
2047 $dd = $sel->getStyleSelector(" ", $type = "par-action", $action = "sec.class", $attr = "class", true);
2048 $btpl->setVariable("TXT_BLOCK", $lng->txt("cont_sur_block_format"));
2049 $btpl->setVariable("BLOCK_STYLE_SELECTOR", $ui->renderer()->renderAsync($dd));
2050
2051
2052 $btpl->setVariable("TINY_HEADER", $lng->txt("cont_text_editing"));
2053 $btpl->setVariable(
2054 "SPLIT_BUTTON",
2055 $ui_wrapper->getRenderedButton($lng->txt("cont_quit_text_editing"), "par-action", "save.return")
2056 );
2057
2058 /*
2059 $btpl->setVariable(
2060 "CANCEL_BUTTON",
2061 $ui_wrapper->getRenderedButton($lng->txt("cancel"), "par-action", "component.cancel")
2062 );*/
2063
2064 $btpl->setVariable("TXT_SAVING", $lng->txt("cont_saving"));
2065 $btpl->setVariable("SRC_LOADER", \ilUtil::getImagePath("media/loader.svg"));
2066
2067 return $btpl->get();
2068 }
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _getListCharacteristics(int $a_style_id, string $type)
static lookupSettingByParentType(string $a_par_type, string $a_name, string $a_default='0')
Lookup setting by parent type.
$c
Definition: deliver.php:25

◆ getViewPageLink()

ilPageObjectGUI::getViewPageLink ( )

Reimplemented in ilPortfolioPageGUI, and ilPortfolioTemplatePageGUI.

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

562 : string
563 {
565 }

◆ getViewPageTarget()

ilPageObjectGUI::getViewPageTarget ( )

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

567 : string
568 {
570 }

◆ getViewPageText()

ilPageObjectGUI::getViewPageText ( )

Reimplemented in ilPortfolioPageGUI.

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

572 : string
573 {
574 return $this->lng->txt("cont_presentation_view");
575 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ history()

ilPageObjectGUI::history ( )

Get history table as HTML.

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

2589 : string
2590 {
2591 if (!$this->getEnableEditing()) {
2592 return "";
2593 }
2594
2595 $this->setBackToEditTabs();
2596
2597 $this->tpl->addJavaScript("assets/js/page_history.js");
2598
2599 $table_gui = new ilPageHistoryTableGUI($this, "history");
2600 $table_gui->setId("hist_table");
2601 $entries = $this->getPageObject()->getHistoryEntries();
2602 $entries[] = array('page_id' => $this->getPageObject()->getId(),
2603 'parent_type' => $this->getPageObject()->getParentType(),
2604 'hdate' => $this->getPageObject()->getLastChange(),
2605 'parent_id' => $this->getPageObject()->getParentId(),
2606 'nr' => 0,
2607 'sortkey' => 999999,
2608 'user' => $this->getPageObject()->last_change_user);
2609 $table_gui->setData($entries);
2610 return $table_gui->getHTML();
2611 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ILIAS\Survey\Mode\getId().

+ Here is the call graph for this function:

◆ initActivationForm()

ilPageObjectGUI::initActivationForm ( )

Init activation form.

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

2819 : void
2820 {
2821 $this->form = new ilPropertyFormGUI();
2822 $this->form->setFormAction($this->ctrl->getFormAction($this));
2823 $this->form->setTitle($this->lng->txt("cont_page_activation"));
2824
2825 // activation type radio
2826 $rad = new ilRadioGroupInputGUI($this->lng->txt("cont_activation"), "activation");
2827 $rad_op1 = new ilRadioOption($this->lng->txt("cont_activated"), "activated");
2828
2829 $rad->addOption($rad_op1);
2830 $rad_op2 = new ilRadioOption($this->lng->txt("cont_deactivated"), "deactivated");
2831 $rad->addOption($rad_op2);
2832 $rad_op3 = new ilRadioOption($this->lng->txt("cont_scheduled_activation"), "scheduled");
2833
2834 $dt_prop = new ilDateTimeInputGUI($this->lng->txt("cont_start"), "start");
2835 $dt_prop->setRequired(true);
2836 $dt_prop->setShowTime(true);
2837 $rad_op3->addSubItem($dt_prop);
2838 $dt_prop2 = new ilDateTimeInputGUI($this->lng->txt("cont_end"), "end");
2839 $dt_prop2->setRequired(true);
2840 $dt_prop2->setShowTime(true);
2841 $rad_op3->addSubItem($dt_prop2);
2842
2843 // show activation information
2844 $cb = new ilCheckboxInputGUI($this->lng->txt("cont_show_activation_info"), "show_activation_info");
2845 $cb->setInfo($this->lng->txt("cont_show_activation_info_info"));
2846 $rad_op3->addSubItem($cb);
2847
2848
2849 $rad->addOption($rad_op3);
2850
2851 $this->form->addCommandButton("saveActivation", $this->lng->txt("save"));
2852
2853 $this->form->addItem($rad);
2854 }
This class represents a checkbox property in a property form.
This class represents a date/time property in a property form.
This class represents a property form user interface.
This class represents a property in a property form.
This class represents an option in a radio group.

References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initEditing()

ilPageObjectGUI::initEditing ( )
protected

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

2384 : void
2385 {
2386 // editing allowed?
2387 if (!$this->getEnableEditing()) {
2388 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("permission_denied"), true);
2389 $this->ctrl->redirect($this, "preview");
2390 }
2391
2392 // not so nive workaround for container pages, bug #0015831
2393 $ptype = $this->getParentType();
2394 if ($ptype == "cont" && $this->requested_ref_id > 0) {
2395 $ptype = ilObject::_lookupType($this->requested_ref_id, true);
2396 }
2397 $this->setScreenIdComponent();
2398 $this->help->setScreenId("edit_" . $ptype);
2399
2400 // edit lock
2401 if (!$this->getPageObject()->getEditLock()) {
2402 $this->showEditLockInfo();
2403 return;
2404 } else {
2405 $this->setEditorToolContext();
2406 }
2407
2408 $this->lng->toJS("paste");
2409 $this->lng->toJS("delete");
2410 $this->lng->toJS("cont_delete_content");
2411 $this->lng->toJS("copg_confirm_el_deletion");
2412 $this->lng->toJS("cont_saving");
2413 $this->lng->toJS("cont_ed_par");
2414 $this->lng->toJS("cont_no_block");
2415 $this->lng->toJS("copg_error");
2416 $this->lng->toJS("cont_ed_click_to_add_pg");
2417 $this->lng->toJS("cont_ed_new_item_after");
2418 $this->lng->toJS("cont_ed_new_item_before");
2419 $this->lng->toJS("cont_ed_item_up");
2420 $this->lng->toJS("cont_ed_item_down");
2421 $this->lng->toJS("cont_ed_delete_item");
2422 $this->lng->toJS("copg_edit_iframe_title");
2423 $this->lng->toJS("copg_par_format_selection");
2424 // workaroun: we need this js for the new editor version, e.g. for new section form to work
2425 // @todo: solve this in a smarter way
2426 $this->tpl->addJavaScript("assets/js/AdvancedSelectionList.js");
2428 // ilModalGUI::initJS(); // due to permission repo picker in sections, waits for new tree/repo picker
2429 }
static _lookupType(int $id, bool $reference=false)

References ilObject\_lookupType(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ilCalendarUtil\initDateTimePicker(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ initialOpenedContent()

ilPageObjectGUI::initialOpenedContent ( )

Initially opened content.

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

3012 : void
3013 {
3014 $this->tabs_gui->activateTab("edit");
3015 $form = $this->initOpenedContentForm();
3016 $this->tpl->setContent($form->getHTML());
3017 }

References ilPropertyFormGUI\getHTML().

+ Here is the call graph for this function:

◆ initOpenedContentForm()

ilPageObjectGUI::initOpenedContentForm ( )

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

3020 {
3021 $form = new ilPropertyFormGUI();
3022
3023 // link input
3024 $ac = new ilLinkInputGUI($this->lng->txt('cont_resource'), 'opened_content');
3025 $ac->setAllowedLinkTypes(ilLinkInputGUI::INT);
3026 $ac->setInternalLinkDefault("Media_Media", 0);
3027 $ac->setInternalLinkFilterTypes(array("PageObject_FAQ", "GlossaryItem", "Media_Media", "Media_FAQ"));
3028 $val = $this->obj->getInitialOpenedContent();
3029 if (($val["id"] ?? '') != "" && ($val["type"] ?? '') != "") {
3030 $ac->setValue($val["type"] . "|" . $val["id"] . "|" . $val["target"]);
3031 }
3032
3033 $form->addItem($ac);
3034
3035 $form->addCommandButton("saveInitialOpenedContent", $this->lng->txt("save"));
3036 $form->addCommandButton("edit", $this->lng->txt("cancel"));
3037 $form->setTitle($this->lng->txt("cont_initial_attached_content"));
3038 $form->setFormAction($this->ctrl->getFormAction($this));
3039
3040 return $form;
3041 }
setFormAction(string $a_formaction)
This class represents a external and/or internal link in a property form.
addCommandButton(string $a_cmd, string $a_text, string $a_id="")

References ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\ctrl(), ilLinkInputGUI\INT, ILIAS\Repository\lng(), ilFormGUI\setFormAction(), and ilPropertyFormGUI\setTitle().

+ Here is the call graph for this function:

◆ initPageObject()

ilPageObjectGUI::initPageObject ( )
finalprotected

Init page object.

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

293 : void
294 {
296 $this->getParentType(),
297 $this->getId(),
298 $this->getOldNr(),
299 $this->getLanguage()
300 );
301 $page->setConcreteLang($this->concrete_lang);
302 $this->setPageObject($page);
303 }

References ILIAS\Survey\Mode\getId(), ilPageObjectFactory\getInstance(), and getLanguage().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertAdvTrigger()

ilPageObjectGUI::insertAdvTrigger ( string  $a_output)

Insert adv content trigger.

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

2312 : string
2313 {
2314 if (!$this->getAbstractOnly()) {
2315 $a_output = str_replace(
2316 "{{{{{LV_show_adv}}}}}",
2317 $this->lng->txt("cont_show_adv"),
2318 $a_output
2319 );
2320 $a_output = str_replace(
2321 "{{{{{LV_hide_adv}}}}}",
2322 $this->lng->txt("cont_hide_adv"),
2323 $a_output
2324 );
2325 } else {
2326 $a_output = str_replace(
2327 "{{{{{LV_show_adv}}}}}",
2328 "",
2329 $a_output
2330 );
2331 $a_output = str_replace(
2332 "{{{{{LV_hide_adv}}}}}",
2333 "",
2334 $a_output
2335 );
2336 }
2337
2338 return $a_output;
2339 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ insertJSAtPlaceholder()

ilPageObjectGUI::insertJSAtPlaceholder ( )

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

2482 : string
2483 {
2484 $pl_pc_id = $this->request->getPlaceholderPCId();
2485 $this->obj->buildDom();
2486 $this->obj->addHierIDs();
2487 $this->setOpenPlaceHolder($pl_pc_id);
2488 return $this->edit();
2489 }
setOpenPlaceHolder(string $a_val)

◆ insertPageToc()

ilPageObjectGUI::insertPageToc ( string  $a_output)

Reimplemented in ilAssQuestionPageGUI.

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

2187 : string
2188 {
2189 // extract all headings
2190 $offsets = [];
2191 $cpos = 0;
2192 while (is_int($pos = strpos($a_output, "ilPageTocH", $cpos))) {
2193 $offsets[] = $pos;
2194 $cpos = $pos + 1;
2195 }
2196
2197 $page_heads = array();
2198 foreach ($offsets as $os) {
2199 $level = (int) substr($a_output, $os + 10, 1);
2200 if (in_array($level, array(1,2,3))) {
2201 $anchor = str_replace(
2202 "TocH",
2203 "TocA",
2204 substr($a_output, $os, strpos($a_output, "-->", $os) - $os)
2205 );
2206
2207 // get heading
2208 $tag_start = stripos($a_output, "<h" . $level . " ", $os);
2209 $tag_end = stripos($a_output, "</h" . $level . ">", $tag_start);
2210 $head = substr($a_output, $tag_start, $tag_end - $tag_start);
2211
2212 // get headings text
2213 $text_start = stripos($head, ">") + 1;
2214 $text_end = strripos($head, "<!--", $text_start);
2215 $text = substr($head, $text_start, $text_end - $text_start);
2216 $page_heads[] = array("level" => $level, "text" => $text,
2217 "anchor" => $anchor);
2218 }
2219 }
2220 if (count($page_heads) > 1) {
2221 $listing = $this->gui->listing();
2222 // todo: inject?
2223 /*$list->setListClass("ilc_page_toc_PageTOCList");
2224 $list->setItemClass("ilc_page_toc_PageTOCItem");*/
2225 $i = 0;
2226 $c_depth = 1;
2227 $c_par[1] = 0;
2228 $c_par[2] = 0;
2229 $page_toc_ph = "<!--PageTocPH-->";
2230 foreach ($page_heads as $ind => $h) {
2231 $i++;
2232 $par = 0;
2233
2234 // check if we have a parent for one level up
2235 $par = 0;
2236 if ($h["level"] == 2 && $c_par[1] > 0) {
2237 $par = $c_par[1];
2238 }
2239 if ($h["level"] == 3 && $c_par[2] > 0) {
2240 $par = $c_par[2];
2241 }
2242
2243 $h["text"] = str_replace($page_toc_ph, "", $h["text"]);
2244
2245 $listing->node(
2246 $this->ui->factory()->legacy()->content("<a href='#" . $h["anchor"] . "' class='ilc_page_toc_PageTOCLink'>" . $h["text"] . "</a>"),
2247 (string) $i,
2248 (string) ($par)
2249 );
2250
2251 // set the node as current parent of the level
2252 if ($h["level"] == 1) {
2253 $c_par[1] = $i;
2254 $c_par[2] = 0;
2255 }
2256 if ($h["level"] == 2) {
2257 $c_par[2] = $i;
2258 }
2259 }
2260
2261 $tpl = new ilTemplate(
2262 "tpl.page_toc.html",
2263 true,
2264 true,
2265 "components/ILIAS/COPage"
2266 );
2267 $tpl->setVariable("PAGE_TOC", $listing->autoNumbers(true)->render());
2268 $tpl->setVariable("TXT_PAGE_TOC", $this->lng->txt("cont_page_toc"));
2269 $tpl->setVariable("TXT_HIDE", $this->lng->txt("hide"));
2270 $tpl->setVariable("TXT_SHOW", $this->lng->txt("show"));
2271
2272 $a_output = str_replace(
2273 "{{{{{PageTOC}}}}}",
2274 $tpl->get(),
2275 $a_output
2276 );
2277 $numbers = $listing->getNumbers();
2278
2279 if (count($numbers) > 0) {
2280 foreach ($numbers as $n) {
2281 $a_output = (strpos($a_output, $page_toc_ph) !== false)
2282 ? substr_replace($a_output, $n . " ", strpos($a_output, $page_toc_ph), strlen($page_toc_ph))
2283 : $a_output;
2284 }
2285 }
2286 } else {
2287 $a_output = str_replace(
2288 "{{{{{PageTOC}}}}}",
2289 "",
2290 $a_output
2291 );
2292 }
2293
2294 return $a_output;
2295 }

References ILIAS\UICore\GlobalTemplate\get(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ insertResources()

ilPageObjectGUI::insertResources ( string  $a_output)

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

2297 : string
2298 {
2299 // this is edit mode only
2300 if ($this->getEnablePCType("Resources") &&
2301 ($this->getOutputMode() == "edit" || $this->getOutputMode() == "preview")) {
2303 }
2304 return $a_output;
2305 }
static insertResourcesIntoPageContent(string $a_content)
Insert resources (see also ilContainerContentGUI::determinePageEmbeddedBlocks for presentation)
getEnablePCType(string $a_pc_type)

References ilPCResourcesGUI\insertResourcesIntoPageContent().

+ Here is the call graph for this function:

◆ isEnabledNotes()

ilPageObjectGUI::isEnabledNotes ( )

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

534 : bool
535 {
537 }

◆ isPageContainerToBeRendered()

ilPageObjectGUI::isPageContainerToBeRendered ( )
protected

Reimplemented in ilAssQuestionPageGUI.

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

3142 : bool
3143 {
3144 return (
3145 $this->getRenderPageContainer() || ($this->getOutputMode() == self::PREVIEW && $this->getPageConfig()->getUsePageContainer())
3146 );
3147 }

◆ onFeedbackEditingForwarding()

ilPageObjectGUI::onFeedbackEditingForwarding ( )

Reimplemented in ilLMPageGUI.

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

1009 : void
1010 {
1011 }

◆ outputToTemplate()

ilPageObjectGUI::outputToTemplate ( )

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

403 : bool
404 {
406 }

◆ postOutputProcessing()

ilPageObjectGUI::postOutputProcessing ( string  $a_output)

Finalizing output processing.

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

Reimplemented in ilBlogPostingGUI, ilDclDetailedViewDefinitionGUI, ilGlossaryDefPageGUI, ilImprintGUI, ilPortfolioPageGUI, ilWikiPageGUI, and ilAssQuestionPageGUI.

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

2346 : string
2347 {
2348 return $a_output;
2349 }

◆ presentation()

ilPageObjectGUI::presentation ( string  $a_mode = self::PRESENTATION)

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

2491 : string
2492 {
2493 $this->setOutputMode($a_mode);
2494
2495 return $this->showPage();
2496 }

◆ preview()

ilPageObjectGUI::preview ( )

Reimplemented in ilImprintGUI, ilAssGenFeedbackPageGUI, ilAssSpecFeedbackPageGUI, and ilWikiPageGUI.

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

2360 : string
2361 {
2362 if ($this->requested_history_mode) {
2363 $this->setBackToHistoryTabs();
2364 } else {
2365 $this->tabs_gui->activateTab("cont_preview");
2366 }
2367 $this->setOutputMode(self::PREVIEW);
2368 return $this->showPage();
2369 }

◆ previewHistory()

ilPageObjectGUI::previewHistory ( )

Preview history.

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

2355 : void
2356 {
2357 $this->preview();
2358 }

References ILIAS\UI\examples\Symbol\Glyph\Preview\preview().

+ Here is the call graph for this function:

◆ processAnswer()

ilPageObjectGUI::processAnswer ( )

Process answer.

Reimplemented in ilLMPageGUI.

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

2993 : void
2994 {
2996 $this->request->getString("type"),
2997 $this->request->getString("id"),
2998 $this->request->getString("answer")
2999 );
3000 }
static saveQuestionAnswer(string $a_type, int $a_id, string $a_answer)

References ilPageQuestionProcessor\saveQuestionAnswer().

+ Here is the call graph for this function:

◆ releasePageLock()

ilPageObjectGUI::releasePageLock ( )

Release page lock.

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

3130 : void
3131 {
3132 $this->getPageObject()->releasePageLock();
3133 $this->tpl->setOnScreenMessage('success', $this->lng->txt("cont_page_lock_released"), true);
3134 $this->finishEditing();
3135 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ replaceCurlyBrackets()

ilPageObjectGUI::replaceCurlyBrackets ( string  $output)

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

1643 : string
1644 {
1645 //echo "<br><br>".htmlentities($output);
1646
1647 while (is_int($start = strpos($output, "<!--ParStart-->")) &&
1648 is_int($end = strpos($output, "<!--ParEnd-->", $start))) {
1649 $output = substr($output, 0, $start) .
1650 str_replace(
1651 array("{","}"),
1652 array("&#123;","&#125;"),
1653 substr($output, $start + 15, $end - ($start + 15))
1654 ) .
1655 substr($output, $end + 13);
1656 }
1657
1658 // $output = str_replace("{", "&#123;", $output);
1659 // $output = str_replace("}", "&#125;", $output);
1660 //echo "<br><br>".htmlentities($output);
1661 return $output;
1662 }

◆ replaceDiffTags()

ilPageObjectGUI::replaceDiffTags ( string  $a_html)

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

2792 : string
2793 {
2794 $a_html = str_replace("[ilDiffInsStart]", '<span class="ilDiffIns">', $a_html);
2795 $a_html = str_replace("[ilDiffDelStart]", '<span class="ilDiffDel">', $a_html);
2796 $a_html = str_replace("[ilDiffInsEnd]", '</span>', $a_html);
2797 $a_html = str_replace("[ilDiffDelEnd]", '</span>', $a_html);
2798
2799 return $a_html;
2800 }

◆ rollback()

ilPageObjectGUI::rollback ( )

Rollback to a previous version.

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

2645 : void
2646 {
2647 if (!$this->getEnableEditing()) {
2648 return;
2649 }
2650
2651 $hentry = $this->obj->getHistoryEntry(
2652 $this->request->getString("rollback_nr")
2653 );
2654
2655 if ($hentry["content"] != "") {
2656 $this->obj->setXMLContent($hentry["content"]);
2657 $this->obj->buildDom(true);
2658 if ($this->obj->update()) {
2659 $this->ctrl->redirect($this, "history");
2660 }
2661 }
2662 $this->ctrl->redirect($this, "history");
2663 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ rollbackConfirmation()

ilPageObjectGUI::rollbackConfirmation ( )

Rollback confirmation.

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

2616 : void
2617 {
2618 if (!$this->getEnableEditing()) {
2619 return;
2620 }
2621
2622 $c_gui = new ilConfirmationGUI();
2623
2624 // set confirm/cancel commands
2625 $this->ctrl->setParameter($this, "rollback_nr", $this->requested_old_nr);
2626 $c_gui->setFormAction($this->ctrl->getFormAction($this, "rollback"));
2627 $c_gui->setHeaderText($this->lng->txt("cont_rollback_confirmation"));
2628 $c_gui->setCancel($this->lng->txt("cancel"), "history");
2629 $c_gui->setConfirm($this->lng->txt("confirm"), "rollback");
2630
2631 $hentry = $this->obj->getHistoryEntry($this->requested_old_nr);
2632
2633 $c_gui->addItem(
2634 "id[]",
2635 $this->requested_old_nr,
2637 );
2638
2639 $this->tpl->setContent($c_gui->getHTML());
2640 }

References ILIAS\Repository\ctrl(), ilDatePresentation\formatDate(), IL_CAL_DATETIME, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ saveActivation()

ilPageObjectGUI::saveActivation ( )

Save Activation.

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

2890 : void
2891 {
2892 $this->initActivationForm();
2893
2894 if ($this->form->checkInput()) {
2895 $this->getPageObject()->setActive(true);
2896 $this->getPageObject()->setActivationStart(null);
2897 $this->getPageObject()->setActivationEnd(null);
2898 $this->getPageObject()->setShowActivationInfo(
2899 $this->request->getString("show_activation_info")
2900 );
2901 $activation = $this->request->getString("activation");
2902 if ($activation == "deactivated") {
2903 $this->getPageObject()->setActive(false);
2904 }
2905 if ($activation == "scheduled") {
2906 $this->getPageObject()->setActive(false);
2907 $this->getPageObject()->setActivationStart(
2908 $this->form->getItemByPostVar("start")->getDate()->get(IL_CAL_DATETIME)
2909 );
2910 $this->getPageObject()->setActivationEnd(
2911 $this->form->getItemByPostVar("end")->getDate()->get(IL_CAL_DATETIME)
2912 );
2913 }
2914 $this->getPageObject()->update();
2915 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
2916 $this->ctrl->redirect($this, "editActivation");
2917 }
2918 $this->form->setValuesByPost();
2919 $this->tpl->setContent($this->form->getHTML());
2920 }

References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), IL_CAL_DATETIME, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ saveInitialOpenedContent()

ilPageObjectGUI::saveInitialOpenedContent ( )

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

3043 : void
3044 {
3045 $this->obj->saveInitialOpenedContent(
3046 $this->request->getString("opened_content_ajax_type"),
3047 $this->request->getInt("opened_content_ajax_id"),
3048 $this->request->getString("opened_content_ajax_target")
3049 );
3050
3051 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"));
3052 $this->ctrl->redirect($this, "edit");
3053 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ setAbstractOnly()

ilPageObjectGUI::setAbstractOnly ( bool  $a_val,
string  $pcid = "" 
)

Get only abstract (first text paragraph)

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

710 : void {
711 $this->abstract_only = $a_val;
712 $this->abstract_pcid = $pcid;
713 }

◆ setActivationListener()

ilPageObjectGUI::setActivationListener ( object  $a_obj,
string  $a_meth 
)

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

580 : void {
581 $this->act_obj = $a_obj;
582 $this->act_meth = $a_meth;
583 }

◆ setAdvMdRecordObject()

ilPageObjectGUI::setAdvMdRecordObject ( int  $a_adv_ref_id,
string  $a_adv_type,
string  $a_adv_subtype = "-" 
)

Set object, that defines the adv md records being used.

Default is $this->object, but the context may set another object (e.g. media pool for media objects)

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

273 : void {
274 $this->adv_ref_id = $a_adv_ref_id;
275 $this->adv_type = $a_adv_type;
276 $this->adv_subtype = $a_adv_subtype;
277 }

◆ setBackToEditTabs()

ilPageObjectGUI::setBackToEditTabs ( )
protected

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

2568 : void
2569 {
2570 $this->tabs_gui->clearTargets();
2571 $this->tabs_gui->setBackTarget(
2572 $this->lng->txt("back"),
2573 $this->ctrl->getLinkTarget($this, "edit")
2574 );
2575 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ setBackToHistoryTabs()

ilPageObjectGUI::setBackToHistoryTabs ( )
protected

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

2577 : void
2578 {
2579 $this->tabs_gui->clearTargets();
2580 $this->tabs_gui->setBackTarget(
2581 $this->lng->txt("back"),
2582 $this->ctrl->getLinkTarget($this, "history")
2583 );
2584 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ setCompareMode()

ilPageObjectGUI::setCompareMode ( bool  $a_val)

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

694 : void
695 {
696 $this->compare_mode = $a_val;
697 }

◆ setDefaultLinkXml()

ilPageObjectGUI::setDefaultLinkXml ( )

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

2070 : void
2071 {
2072 $this->page_linker->setProfileBackUrl($this->getProfileBackUrl());
2073 $this->page_linker->setOffline($this->getOutputMode() == self::OFFLINE);
2074 $this->setLinkXml($this->page_linker->getLinkXML($this->getPageObject()->getInternalLinks()));
2075 }

◆ setEditMode()

ilPageObjectGUI::setEditMode ( )

Set edit mode.

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

1676 : void
1677 {
1678 $media_mode = $this->request->getString("media_mode");
1679 $html_mode = $this->request->getString("html_mode");
1680 $js_mode = $this->request->getString("js_mode");
1681 if ($media_mode != "") {
1682 if ($media_mode == "disable") {
1683 $this->user->writePref("ilPageEditor_MediaMode", "disable");
1684 } else {
1685 $this->user->writePref("ilPageEditor_MediaMode", "");
1686 }
1687 }
1688 if ($html_mode != "") {
1689 if ($html_mode == "disable") {
1690 $this->user->writePref("ilPageEditor_HTMLMode", "disable");
1691 } else {
1692 $this->user->writePref("ilPageEditor_HTMLMode", "");
1693 }
1694 }
1695 if ($js_mode != "") {
1696 if ($js_mode == "disable") {
1697 $this->user->writePref("ilPageEditor_JavaScript", "disable");
1698 } else {
1699 $this->user->writePref("ilPageEditor_JavaScript", "");
1700 }
1701 }
1702
1703 $this->ctrl->redirect($this, "edit");
1704 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ setEditorToolContext()

ilPageObjectGUI::setEditorToolContext ( )
protected

Set editor tool context.

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

2374 : void
2375 {
2376 $collection = $this->tool_context->current()->getAdditionalData();
2377 if ($collection->exists(ilCOPageEditGSToolProvider::SHOW_EDITOR)) {
2378 $collection->replace(ilCOPageEditGSToolProvider::SHOW_EDITOR, true);
2379 } else {
2380 $collection->add(ilCOPageEditGSToolProvider::SHOW_EDITOR, true);
2381 }
2382 }

References ilCOPageEditGSToolProvider\SHOW_EDITOR.

◆ setEditPreview()

ilPageObjectGUI::setEditPreview ( bool  $a_editpreview)

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

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

612 : void {
613 $this->editpreview = $a_editpreview;
614 }

Referenced by ilMediaPoolPageGUI\__construct().

+ Here is the caller graph for this function:

◆ setEnabledHref()

ilPageObjectGUI::setEnabledHref ( bool  $enable)

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

740 : void
741 {
742 $this->enabled_href = $enable;
743 }

◆ setEnabledNews()

ilPageObjectGUI::setEnabledNews ( bool  $a_enabled,
int  $a_news_obj_id = 0,
string  $a_news_obj_type = "" 
)

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

589 : void {
590 $this->enabled_news = $a_enabled;
591 $this->news_obj_id = $a_news_obj_id;
592 $this->news_obj_type = $a_news_obj_type;
593 }

◆ setEnabledPageFocus()

ilPageObjectGUI::setEnabledPageFocus ( bool  $a_enabledpagefocus)

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

631 : void
632 {
633 $this->enabledpagefocus = $a_enabledpagefocus;
634 }

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

+ Here is the caller graph for this function:

◆ setEnabledTabs()

ilPageObjectGUI::setEnabledTabs ( bool  $a_enabledtabs)

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

621 : void
622 {
623 $this->tabs_enabled = $a_enabledtabs;
624 }

◆ setEnableEditing()

ilPageObjectGUI::setEnableEditing ( bool  $a_enableediting)

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

661 : void
662 {
663 $this->enableediting = $a_enableediting;
664 }

Referenced by ilBlogPostingGUI\__construct().

+ Here is the caller graph for this function:

◆ setEnablePCType()

ilPageObjectGUI::setEnablePCType ( string  $a_pc_type,
bool  $a_val 
)

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

355 : void {
356 $this->getPageConfig()->setEnablePCType($a_pc_type, $a_val);
357 }

◆ setFileDownloadLink()

ilPageObjectGUI::setFileDownloadLink ( string  $a_download_link)

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

503 : void
504 {
505 $this->file_download_link = $a_download_link;
506 }

Referenced by ilAssGenFeedbackPageGUI\__construct(), ilAssSpecFeedbackPageGUI\__construct(), and ilLMPresentationGUI\basicPageGuiInit().

+ Here is the caller graph for this function:

◆ setFullscreenLink()

ilPageObjectGUI::setFullscreenLink ( string  $a_fullscreen_link)

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

513 : void
514 {
515 $this->fullscreen_link = $a_fullscreen_link;
516 }

Referenced by ilLMPresentationGUI\basicPageGuiInit().

+ Here is the caller graph for this function:

◆ setHeader()

ilPageObjectGUI::setHeader ( string  $a_title = "")

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

418 : void
419 {
420 $this->header = $a_title;
421 }

References ILIAS\UI\examples\Symbol\Glyph\Header\header().

+ Here is the call graph for this function:

◆ setId()

ilPageObjectGUI::setId ( int  $a_val)

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

315 : void
316 {
317 $this->id = $a_val;
318 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setIntLinkReturn()

ilPageObjectGUI::setIntLinkReturn ( string  $a_return)

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

523 : void
524 {
525 $this->int_link_return = $a_return;
526 }

◆ setLanguage()

ilPageObjectGUI::setLanguage ( string  $a_val)

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

338 : void
339 {
340 $this->language = $a_val;
341 }

References ILIAS\UI\examples\Symbol\Glyph\Language\language().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setLinkFrame()

ilPageObjectGUI::setLinkFrame ( string  $l_frame = "")

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

438 : void
439 {
440 $this->link_frame = $l_frame;
441 }

◆ setLinkParams()

ilPageObjectGUI::setLinkParams ( string  $l_params = "")

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

428 : void
429 {
430 $this->link_params = $l_params;
431 }

◆ setLinkXml()

ilPageObjectGUI::setLinkXml ( string  $xml)

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

2077 : void
2078 {
2079 $this->link_xml = $xml;
2080 $this->link_xml_set = true;
2081 }

◆ setOfflineDirectory()

ilPageObjectGUI::setOfflineDirectory ( string  $offdir)
Parameters
string$offdircontains diretory where to store files

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

542 : void
543 {
544 $this->offline_directory = $offdir;
545 }

Referenced by ilLMPresentationGUI\basicPageGuiInit().

+ Here is the caller graph for this function:

◆ setOldNr()

ilPageObjectGUI::setOldNr ( int  $a_val)

Set old nr (historic page)

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

328 : void
329 {
330 $this->old_nr = $a_val;
331 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setOpenPlaceHolder()

ilPageObjectGUI::setOpenPlaceHolder ( string  $a_val)

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

636 : void
637 {
638 $this->open_place_holder = $a_val;
639 }

◆ setOutputMode()

ilPageObjectGUI::setOutputMode ( string  $a_mode = self::PRESENTATION)
Parameters
string$a_modeself::PRESENTATION | self::EDIT | self::PREVIEW

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

389 : void {
390 $this->output_mode = $a_mode;
391 }

Referenced by __construct(), ilGlossaryPresentationGUI\basicPageGuiInit(), ilLMPresentationGUI\basicPageGuiInit(), and ilImprintGUI\preview().

+ Here is the caller graph for this function:

◆ setPageBackTitle()

ilPageObjectGUI::setPageBackTitle ( string  $a_title)

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

498 : void
499 {
500 $this->page_back_title = $a_title;
501 }

◆ setPageConfig()

ilPageObjectGUI::setPageConfig ( ilPageConfig  $a_val)

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

364 : void
365 {
366 $this->page_config = $a_val;
367 }

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

+ Here is the caller graph for this function:

◆ setPageLinker()

ilPageObjectGUI::setPageLinker ( \ILIAS\COPage\PageLinker  $page_linker)

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

448 : void
449 {
450 $this->page_linker = $page_linker;
451 }
ILIAS COPage PageLinker $page_linker

◆ setPageObject()

ilPageObjectGUI::setPageObject ( ilPageObject  $a_pg_obj)

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

374 : void
375 {
376 $this->obj = $a_pg_obj;
377 }

Referenced by ilBlogPostingGUI\setBlogPosting(), and ilWikiPageGUI\setWikiPage().

+ Here is the caller graph for this function:

◆ setParentType()

ilPageObjectGUI::setParentType ( string  $a_val)

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

305 : void
306 {
307 $this->parent_type = $a_val;
308 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setPrependingHtml()

ilPageObjectGUI::setPrependingHtml ( string  $a_prependinghtml)

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

651 : void
652 {
653 $this->prependinghtml = $a_prependinghtml;
654 }

Referenced by ilDclDetailedViewDefinitionGUI\showPage().

+ Here is the caller graph for this function:

◆ setPresentationTitle()

ilPageObjectGUI::setPresentationTitle ( string  $a_title = "")

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

408 : void
409 {
410 $this->presentation_title = $a_title;
411 }

Referenced by ilBlogPostingGUI\executeCommand(), ilDclDetailedViewDefinitionGUI\executeCommand(), ilImprintGUI\executeCommand(), ilPortfolioPageGUI\executeCommand(), and ilWikiPageGUI\executeCommand().

+ Here is the caller graph for this function:

◆ setProfileBackUrl()

ilPageObjectGUI::setProfileBackUrl ( string  $url)

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

2096 : void
2097 {
2098 $this->profile_back_url = $url;
2099 }
$url
Definition: shib_logout.php:68

References $url.

◆ setQEditTabs()

ilPageObjectGUI::setQEditTabs ( string  $a_active)

Set question editing tabs.

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

983 : void
984 {
985 $this->tabs_gui->clearTargets();
986
987 $this->tabs_gui->setBackTarget(
988 $this->lng->txt("back"),
989 $this->ctrl->getLinkTarget($this, "edit")
990 );
991
992 $this->ctrl->setParameterByClass("ilquestioneditgui", "q_id", $this->requested_q_id);
993 $this->tabs_gui->addTab(
994 "question",
995 $this->lng->txt("question"),
996 $this->ctrl->getLinkTargetByClass("ilquestioneditgui", "editQuestion")
997 );
998
999 $this->ctrl->setParameterByClass("ilAssQuestionFeedbackEditingGUI", "q_id", $this->requested_q_id);
1000 $this->tabs_gui->addTab(
1001 "feedback",
1002 $this->lng->txt("feedback"),
1003 $this->ctrl->getLinkTargetByClass("ilAssQuestionFeedbackEditingGUI", ilAssQuestionFeedbackEditingGUI::CMD_SHOW)
1004 );
1005
1006 $this->tabs_gui->activateTab($a_active);
1007 }

References ilAssQuestionFeedbackEditingGUI\CMD_SHOW, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ setQuestionHTML()

ilPageObjectGUI::setQuestionHTML ( array  $question_html)

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

458 : void
459 {
460 $this->getPageConfig()->setQuestionHTML($question_html);
461 }

◆ setRawPageContent()

ilPageObjectGUI::setRawPageContent ( bool  $a_rawpagecontent)

Set Get raw page content only.

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

674 : void
675 {
676 $this->rawpagecontent = $a_rawpagecontent;
677 }

Referenced by ilImprintGUI\renderFullscreen().

+ Here is the caller graph for this function:

◆ setRenderPageContainer()

ilPageObjectGUI::setRenderPageContainer ( bool  $a_val)

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

720 : void
721 {
722 $this->render_page_container = $a_val;
723 }

◆ setScreenIdComponent()

ilPageObjectGUI::setScreenIdComponent ( )

Reimplemented in ilWikiPageGUI.

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

2665 : void
2666 {
2667 $this->help->setScreenIdComponent("copg");
2668 }

References ILIAS\Repository\help().

+ Here is the call graph for this function:

◆ setSourcecodeDownloadScript()

ilPageObjectGUI::setSourcecodeDownloadScript ( string  $script_name)

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

483 : void
484 {
485 $this->sourcecode_download_script = $script_name;
486 }

Referenced by ilLMPresentationGUI\basicPageGuiInit().

+ Here is the caller graph for this function:

◆ setStyleId()

ilPageObjectGUI::setStyleId ( int  $a_styleid)

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

684 : void
685 {
686 $this->styleid = $a_styleid;
687 }

Referenced by ilMediaPoolPageGUI\__construct(), ilBlogPostingGUI\__construct(), ilDclDetailedViewDefinitionGUI\__construct(), and ilLMPresentationGUI\basicPageGuiInit().

+ Here is the caller graph for this function:

◆ setTabHook()

ilPageObjectGUI::setTabHook ( object  $a_object,
string  $a_function 
)

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

603 : void {
604 $this->tab_hook = array("obj" => $a_object, "func" => $a_function);
605 }

◆ setTabs()

ilPageObjectGUI::setTabs ( ilTabsGUI  $a_tabs)

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

493 : void
494 {
495 $this->tabs_gui = $a_tabs;
496 }

◆ setTemplate()

ilPageObjectGUI::setTemplate ( ilGlobalTemplateInterface  $main_tpl)

Reimplemented in ilMediaPoolPageGUI.

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

256 : void
257 {
258 $this->tpl = $main_tpl;
259 }

◆ setTemplateOutput()

ilPageObjectGUI::setTemplateOutput ( bool  $a_output = true)

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

398 : void
399 {
400 $this->output2template = $a_output;
401 }

Referenced by ilAssGenFeedbackPageGUI\__construct(), ilAssSpecFeedbackPageGUI\__construct(), ilContentPagePageGUI\__construct(), ilForumPageGUI\__construct(), __construct(), and ilPortfolioPageGUI\showPage().

+ Here is the caller graph for this function:

◆ setTemplateTargetVar()

ilPageObjectGUI::setTemplateTargetVar ( string  $a_variable)

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

468 : void
469 {
470 $this->target_var = $a_variable;
471 }

Referenced by ilContentPagePageGUI\__construct(), and ilForumPageGUI\__construct().

+ Here is the caller graph for this function:

◆ setViewPageLink()

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

set link for "view page" button

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

556 : void
557 {
558 $this->view_page_link = $a_link;
559 $this->view_page_target = $a_target;
560 }

◆ showEditLockInfo()

ilPageObjectGUI::showEditLockInfo ( )
protected

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

2431 : void
2432 {
2433 $info = $this->lng->txt("content_no_edit_lock");
2434 $lock = $this->getPageObject()->getEditLockInfo();
2435 $info .= "</br>" . $this->lng->txt("content_until") . ": " .
2436 ilDatePresentation::formatDate(new ilDateTime($lock["edit_lock_until"], IL_CAL_UNIX));
2437 $info .= "</br>" . $this->lng->txt("obj_usr") . ": " .
2438 ilUserUtil::getNamePresentation($lock["edit_lock_user"]);
2439
2440 $back_link = $this->ui->factory()->link()->standard(
2441 $this->lng->txt("back"),
2442 $this->ctrl->getLinkTarget($this, "finishEditing")
2443 );
2444
2445 $mbox = $this->ui->factory()->messageBox()->info($info)
2446 ->withLinks([$back_link]);
2447 $rendered_mbox = $this->ui->renderer()->render($mbox);
2448
2449 if (!$this->ctrl->isAsynch()) {
2450 $this->tpl->setContent($rendered_mbox);
2451 } else {
2452 echo $rendered_mbox;
2453 exit;
2454 }
2455 }
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path=null)
Default behaviour is:

References $info, ILIAS\Repository\ctrl(), exit, ilDatePresentation\formatDate(), ilUserUtil\getNamePresentation(), IL_CAL_UNIX, ILIAS\Repository\lng(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ showEditToolbar()

ilPageObjectGUI::showEditToolbar ( )
protected

Show edit toolbar.

Reimplemented in ilBlogPostingGUI, and ilImprintGUI.

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

1034 : void
1035 {
1036 $ui = $this->ui;
1037 $lng = $this->lng;
1038 if ($this->getEnableEditing()) {
1039 $b = $ui->factory()->button()->standard(
1040 $lng->txt("edit_page"),
1041 $this->ctrl->getLinkTarget($this, "edit")
1042 );
1043 $this->toolbar->addComponent($b);
1044 }
1045 }

References Vendor\Package\$b, $lng, and ILIAS\Repository\toolbar().

+ Here is the call graph for this function:

◆ showMediaFullscreen()

ilPageObjectGUI::showMediaFullscreen ( int  $a_style_id = 0)

show fullscreen view of media object

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

2507 : void
2508 {
2509 $this->tpl = new ilGlobalTemplate("tpl.fullscreen.html", true, true, "components/ILIAS/COPage");
2510 $this->tpl->setCurrentBlock("ContentStyle");
2511 $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET", 0);
2512 $this->tpl->parseCurrentBlock();
2513
2514 $this->tpl->setVariable(
2515 "PAGETITLE",
2516 " - " . ilObject::_lookupTitle($this->request->getMobId())
2517 );
2518 $this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
2519 $this->tpl->setCurrentBlock("ilMedia");
2520
2521 $media_obj = new ilObjMediaObject($this->request->getMobId());
2522 if ($this->requested_pg_id > 0) {
2523 $pg_obj = ilPageObjectFactory::getInstance($this->obj->getParentType(), $this->requested_pg_id);
2524 $pg_obj->buildDom();
2525
2526 $xml = "<dummy>";
2527 // todo: we get always the first alias now (problem if mob is used multiple
2528 // times in page)
2529 $xml .= $pg_obj->getMediaAliasElement($this->request->getMobId());
2530 } else {
2531 $xml = "<dummy>";
2532 $xml .= $media_obj->getXML(IL_MODE_ALIAS);
2533 }
2534 $xml .= $media_obj->getXML(IL_MODE_OUTPUT);
2535 $xml .= "</dummy>";
2536
2537
2538 $wb_path = ilFileUtils::getWebspaceDir("output") . "/";
2539 $mode = "fullscreen";
2540 $params = array('mode' => $mode,
2541 'enable_html_mob' => ilObjMediaObject::isTypeAllowed("html") ? "y" : "n",
2542 'webspace_path' => $wb_path);
2543 $output = $this->xsl->process($xml, $params);
2544
2545 // unmask user html
2546 $this->tpl->setVariable("MEDIA_CONTENT", $output);
2547 }
static _lookupTitle(int $obj_id)

References $params, ilObject\_lookupTitle(), ilPageObjectFactory\getInstance(), ilUtil\getStyleSheetLocation(), ilFileUtils\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, and ilObjMediaObject\isTypeAllowed().

+ Here is the call graph for this function:

◆ showPage()

ilPageObjectGUI::showPage ( )

display content of page

Reimplemented in ilDclDetailedViewDefinitionGUI, ilPortfolioPageGUI, ilPortfolioTemplatePageGUI, ilAssQuestionPageGUI, and ilWikiPageGUI.

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

1050 : string
1051 {
1052 $main_tpl = $this->tpl;
1053 $sn_arr = [];
1054
1055 $sel_js_mode = '';
1056 $paragraph_plugin_string = '';
1057 $disable_auto_margins = '';
1058
1059 // jquery and jquery ui are always provided for components
1061
1062 // $this->initSelfAssessmentRendering();
1064
1065 $debug = false;
1066 if ($debug) {
1067 $main_tpl->addJavaScript("../components/ILIAS/COPage/js/ilCOPagePres.js");
1068 } else {
1069 $main_tpl->addJavaScript("components/ILIAS/COPage/js/ilCOPagePres.js");
1070 }
1071
1072
1073 // init template
1074 if ($this->getOutputMode() == "edit") {
1075 $this->initEditing();
1076 if (!$this->getPageObject()->getEditLock()) {
1077 return "";
1078 }
1079
1080 $this->getPageObject()->buildDom();
1081
1082 $this->log->debug("ilPageObjectGUI, showPage() in edit mode.");
1083
1084 $tpl = new ilTemplate("tpl.page_edit_wysiwyg.html", true, true, "components/ILIAS/COPage");
1085 // to do: status dependent class
1086 $tpl->setVariable("CLASS_PAGE_TD", "ilc_Page");
1087
1088 if ($this->getPageConfig()->getUsePageContainer()) {
1089 $tpl->setVariable("PAGE_CONTAINER_CLASS", "ilc_page_cont_PageContainer");
1090 }
1091
1093 "WYSIWYG_ACTION",
1094 $this->ctrl->getFormActionByClass("ilpageeditorgui", "", "", true)
1095 );
1096
1097 // determine media, html and javascript mode
1098 $sel_js_mode = "enable";
1099
1100 // show prepending html
1101 $tpl->setVariable("PREPENDING_HTML", $this->getPrependingHtml());
1102
1103
1104 // get js files for JS enabled editing
1105 if ($sel_js_mode == "enable") {
1106 // add int link parts
1107 $tpl->setCurrentBlock("int_link_prep");
1109 $this->ctrl->getLinkTargetByClass(
1110 array("ilpageeditorgui", "ilinternallinkgui"),
1111 "",
1112 false,
1113 true,
1114 false
1115 )
1116 ));
1118
1119 $this->editor_gui->init()->initUI($main_tpl);
1120 }
1121 } else {
1122 // presentation or preview here
1123
1124 $tpl = new ilTemplate("tpl.page.html", true, true, "components/ILIAS/COPage");
1125 if ($this->getEnabledPageFocus()) {
1126 $tpl->touchBlock("page_focus");
1127 }
1128 // presentation
1129 if ($this->isPageContainerToBeRendered()) {
1130 $tpl->touchBlock("page_container_1");
1131 $tpl->touchBlock("page_container_2");
1132 $tpl->touchBlock("page_container_3");
1133 }
1134
1135 // history
1136 $c_old_nr = $this->getPageObject()->old_nr;
1137 if ($c_old_nr > 0 || $this->getCompareMode() || ($this->requested_history_mode == 1)) {
1138 $hist_info =
1139 $this->getPageObject()->getHistoryInfo($c_old_nr);
1140
1141 if (!$this->getCompareMode()) {
1142 $this->ctrl->setParameter($this, "history_mode", "1");
1143
1144 // previous revision
1145 if (isset($hist_info["previous"])) {
1146 $tpl->setCurrentBlock("previous_rev");
1147 $tpl->setVariable("TXT_PREV_REV", $this->lng->txt("cont_previous_rev"));
1148 $this->ctrl->setParameter($this, "old_nr", $hist_info["previous"]["nr"]);
1150 "HREF_PREV",
1151 $this->ctrl->getLinkTarget($this, "preview")
1152 );
1153 } else {
1154 $tpl->setCurrentBlock("previous_rev_disabled");
1155 $tpl->setVariable("TXT_PREV_REV", $this->lng->txt("cont_previous_rev"));
1156 }
1158
1159 // next revision
1160 if ($c_old_nr > 0) {
1161 $tpl->setCurrentBlock("next_rev");
1162 $tpl->setVariable("TXT_NEXT_REV", $this->lng->txt("cont_next_rev"));
1163 $this->ctrl->setParameter($this, "old_nr", $hist_info["next"]["nr"] ?? 0);
1165 "HREF_NEXT",
1166 $this->ctrl->getLinkTarget($this, "preview")
1167 );
1169
1170 // latest revision
1171 $tpl->setCurrentBlock("latest_rev");
1172 $tpl->setVariable("TXT_LATEST_REV", $this->lng->txt("cont_latest_rev"));
1173 $this->ctrl->setParameter($this, "old_nr", "");
1175 "HREF_LATEST",
1176 $this->ctrl->getLinkTarget($this, "preview")
1177 );
1179 }
1180
1181 $this->ctrl->setParameter($this, "history_mode", "");
1182
1183 // rollback
1184 if ($c_old_nr > 0 && $this->user->getId() != ANONYMOUS_USER_ID) {
1185 $tpl->setCurrentBlock("rollback");
1186 $this->ctrl->setParameter($this, "old_nr", $c_old_nr);
1188 "HREF_ROLLBACK",
1189 $this->ctrl->getLinkTarget($this, "rollbackConfirmation")
1190 );
1191 $this->ctrl->setParameter($this, "old_nr", "");
1193 "TXT_ROLLBACK",
1194 $this->lng->txt("cont_rollback")
1195 );
1197 }
1198 }
1199
1200 $tpl->setCurrentBlock("hist_nav");
1201 $tpl->setVariable("TXT_REVISION", $this->lng->txt("cont_revision"));
1203 "VAL_REVISION_DATE",
1204 ilDatePresentation::formatDate(new ilDateTime($hist_info["current"]["hdate"], IL_CAL_DATETIME))
1205 );
1207 "VAL_REV_USER",
1208 ilUserUtil::getNamePresentation($hist_info["current"]["user_id"])
1209 );
1211 }
1212 }
1213 if ($this->getOutputMode() != self::PRESENTATION &&
1214 $this->getOutputMode() != self::OFFLINE &&
1215 $this->getOutputMode() != self::PREVIEW &&
1216 $this->getOutputMode() != self::PRINTING) {
1217 $tpl->setVariable("FORMACTION", $this->ctrl->getFormActionByClass("ilpageeditorgui"));
1218 }
1219
1220 // output media object edit list (of media links)
1221 if ($this->getOutputMode() == "edit") {
1223 $this->obj->getParentType() . ":pg",
1224 $this->obj->getId(),
1225 $this->obj->getLanguage()
1226 );
1227 $mob_links = array();
1228 foreach ($links as $link) {
1229 if ($link["type"] == "mob") {
1230 if (ilObject::_exists($link["id"]) && ilObject::_lookupType($link["id"]) == "mob") {
1231 $mob_links[$link["id"]] = ilObject::_lookupTitle($link["id"]) . " [" . $link["id"] . "]";
1232 }
1233 }
1234 }
1235
1236 // linked media objects
1237 if (count($mob_links) > 0) {
1238 $tpl->setCurrentBlock("med_link");
1239 $tpl->setVariable("TXT_LINKED_MOBS", $this->lng->txt("cont_linked_mobs"));
1241 "SEL_MED_LINKS",
1242 ilLegacyFormElementsUtil::formSelect(0, "mob_id", $mob_links, false, true)
1243 );
1244 $tpl->setVariable("TXT_EDIT_MEDIA", $this->lng->txt("cont_edit_mob"));
1245 $tpl->setVariable("TXT_COPY_TO_CLIPBOARD", $this->lng->txt("cont_copy_to_clipboard"));
1246 //$this->tpl->setVariable("TXT_COPY_TO_POOL", $this->lng->txt("cont_copy_to_mediapool"));
1248 }
1249
1250 // content snippets used
1251 $this->getPageObject()->buildDom();
1253 $this->getPageObject(),
1254 $this->getPageObject()->getDomDoc()
1255 );
1256 if (count($snippets) > 0) {
1257 foreach ($snippets as $s) {
1258 $sn_arr[$s["id"]] = ilMediaPoolPage::lookupTitle($s["id"]);
1259 }
1260 $tpl->setCurrentBlock("med_link");
1261 $tpl->setVariable("TXT_CONTENT_SNIPPETS_USED", $this->lng->txt("cont_snippets_used"));
1263 "SEL_SNIPPETS",
1264 ilLegacyFormElementsUtil::formSelect(0, "ci_id", $sn_arr, false, true)
1265 );
1266 $tpl->setVariable("TXT_SHOW_INFO", $this->lng->txt("cont_show_info"));
1268 }
1269
1270 // scheduled activation?
1271 if (!$this->getPageObject()->getActive() &&
1272 $this->getPageObject()->getActivationStart() != "" &&
1273 $this->getPageConfig()->getEnableScheduledActivation()) {
1274 $tpl->setCurrentBlock("activation_txt");
1275 $tpl->setVariable("TXT_SCHEDULED_ACTIVATION", $this->lng->txt("cont_scheduled_activation"));
1277 "SA_FROM",
1279 new ilDateTime(
1280 $this->getPageObject()->getActivationStart(),
1282 )
1283 )
1284 );
1286 "SA_TO",
1288 new ilDateTime(
1289 $this->getPageObject()->getActivationEnd(),
1291 )
1292 )
1293 );
1295 }
1296 }
1297
1298 // get content
1299 $builded = $this->obj->buildDom();
1300
1301 // manage hierarchical ids
1302 if ($this->getOutputMode() == "edit") {
1303 // add pc ids, if necessary
1304 if (!$this->obj->checkPCIds()) {
1305 $this->obj->insertPCIds();
1306 $this->obj->update(true, true);
1307 }
1308
1309 $this->obj->addFileSizes();
1310 $this->obj->addHierIDs();
1311 } else {
1312 $this->obj->addFileSizes();
1313 }
1314
1315 //echo "<br>-".htmlentities($this->obj->getXMLContent())."-<br><br>"; exit;
1316 //echo "<br>-".htmlentities($this->getLinkXML())."-"; exit;
1317
1318 // set default link xml, if nothing was set yet
1319 if (!$this->link_xml_set) {
1320 $this->setDefaultLinkXml();
1321 }
1322
1323 $template_xml = '';
1324
1325 $link_xml = $this->getLinkXML();
1326
1327 // disable/enable auto margins
1328 if ($this->getStyleId() > 0) {
1329 if (ilObject::_lookupType($this->getStyleId()) == "sty") {
1330 $style = new ilObjStyleSheet($this->getStyleId());
1331 $template_xml = $style->getTemplateXML();
1332 $disable_auto_margins = "n";
1333 if ($style->lookupStyleSetting("disable_auto_margins")) {
1334 $disable_auto_margins = "y";
1335 }
1336 }
1337 }
1338
1339 $append_footnotes = "y";
1340 if ($this->getAbstractOnly()) {
1341 if (!$this->abstract_pcid) {
1342 $content = "<dummy><PageObject><PageContent><Paragraph>" .
1343 $this->obj->getFirstParagraphText() . $link_xml .
1344 "</Paragraph></PageContent></PageObject></dummy>";
1345 } else {
1346 $append_footnotes = "n";
1347 $par = $this->obj->getParagraphForPCID($this->abstract_pcid);
1348 $content = "<dummy><PageObject><PageContent><Paragraph Characteristic='" . $par->getCharacteristic() . "'>" .
1349 $par->getText() . $link_xml .
1350 "</Paragraph></PageContent></PageObject>" . $this->obj->getMultimediaXML() . "</dummy>";
1351 }
1352 } else {
1353 $content = $this->obj->getXMLFromDom(
1354 false,
1355 true,
1356 true,
1357 $link_xml . $template_xml . $this->getComponentPluginsXML(),
1358 false,
1359 $this->getStyleId(),
1360 $this->getOutputMode() === "offline"
1361 );
1362 }
1363
1364 // check validation errors
1365 if ($builded !== true) {
1366 $this->displayValidationError($builded);
1367 } else {
1368 $this->displayValidationError((string) $this->edit_repo->getPageError());
1369 }
1370 $this->edit_repo->clearPageError();
1371
1372 // get title
1373 $pg_title = $this->getPresentationTitle();
1374 $col_path = '';
1375 $row_path = '';
1376 $cell_path = '';
1377 $item_path = '';
1378 if ($this->getOutputMode() == "edit") {
1379 $col_path = ilUtil::getImagePath("object/col.svg");
1380 $row_path = ilUtil::getImagePath("object/row.svg");
1381 $item_path = ilUtil::getImagePath("page_editor/icon_peadl.svg");
1382 $cell_path = ilUtil::getImagePath("object/cell.svg");
1383 }
1384
1385 if ($this->getOutputMode() != "offline") {
1386 $enlarge_path = ilUtil::getImagePath("media/enlarge.svg");
1387 $wb_path = ilFileUtils::getWebspaceDir("output") . "/";
1388 } else {
1389 $enlarge_path = "images/media/enlarge.svg";
1390 $wb_path = "";
1391 }
1392 $pg_title_class = ($this->getOutputMode() == "print")
1393 ? "ilc_PrintPageTitle"
1394 : "";
1395
1396 // page splitting only for learning modules and
1397 // digital books
1398 $enable_split_new = ($this->obj->getParentType() == "lm")
1399 ? "y"
1400 : "n";
1401
1402 // page splitting to next page only for learning modules and
1403 // digital books if next page exists in tree
1404 if (($this->obj->getParentType() == "lm") &&
1406 $this->obj->getParentId(),
1407 $this->obj->getId()
1408 )) {
1409 $enable_split_next = "y";
1410 } else {
1411 $enable_split_next = "n";
1412 }
1413
1414 $img_path = ilUtil::getImagePath("", false, $this->getOutputMode(), $this->getOutputMode() == "offline");
1415
1416
1417 if ($this->getPageConfig()->getEnablePCType("Tabs")) {
1420 }
1421
1422 // needed for placeholders
1423 $this->tpl->addCss(ilObjStyleSheet::getBaseContentStylePath());
1424
1427 $this->sourcecode_download_script = $this->determineSourcecodeDownloadScript();
1428
1429 // default values for various parameters (should be used by
1430 // all instances in the future)
1431 $media_mode = ($this->getOutputMode() == "edit")
1432 ? $this->user->getPref("ilPageEditor_MediaMode")
1433 : "enable";
1434
1435 $paste = (ilEditClipboard::getAction() == "copy" &&
1436 $this->getOutputMode() == "edit");
1437
1438 $cfg = $this->getPageConfig();
1439
1440 $current_ts = time();
1441
1442 $enable_href = $this->getEnabledHref();
1443 if ($this->getOutputMode() == self::EDIT) {
1444 $enable_href = false;
1445 }
1446
1447 // added UTF-8 encoding otherwise umlaute are converted too
1448 $params = array('mode' => $this->getOutputMode(), 'pg_title' => htmlentities($pg_title, ENT_QUOTES, "UTF-8"),
1449 'enable_placeholder' => $cfg->getEnablePCType("PlaceHolder") ? "y" : "n",
1450 'pg_id' => $this->obj->getId(), 'pg_title_class' => $pg_title_class,
1451 'webspace_path' => $wb_path, 'enlarge_path' => $enlarge_path,
1452 'img_col' => $col_path,
1453 'img_row' => $row_path,
1454 'img_cell' => $cell_path,
1455 'img_item' => $item_path,
1456 'acc_save_url' => "./ilias.php?baseClass=ilaccordionpropertiesstoragegui&cmd=setOpenedTab" .
1457 "&user_id=" . $this->user->getId(),
1458 'append_footnotes' => $append_footnotes,
1459 'compare_mode' => $this->getCompareMode() ? "y" : "n",
1460 'enable_split_new' => $enable_split_new,
1461 'enable_split_next' => $enable_split_next,
1462 'link_params' => $this->link_params,
1463 'file_download_link' => $file_download_link,
1464 'fullscreen_link' => $fullscreen_link,
1465 'img_path' => $img_path,
1466 'parent_id' => $this->obj->getParentId(),
1467 'download_script' => $this->sourcecode_download_script,
1468 'encoded_download_script' => urlencode($this->sourcecode_download_script),
1469 'enable_rep_objects' => $cfg->getEnablePCType("Resources") ? "y" : "n",
1470 'enable_login_page' => $cfg->getEnablePCType("LoginPageElement") ? "y" : "n",
1471 'enable_map' => ($cfg->getEnablePCType("Map") && ilMapUtil::isActivated()) ? "y" : "n",
1472 'enable_tabs' => $cfg->getEnablePCType("Tabs") ? "y" : "n",
1473 'enable_sa_qst' => $cfg->getEnableSelfAssessment() ? "y" : "n",
1474 'enable_file_list' => $cfg->getEnablePCType("FileList") ? "y" : "n",
1475 'enable_content_includes' => $cfg->getEnablePCType("ContentInclude") ? "y" : "n",
1476 'enable_content_templates' => (count($this->getPageObject()->getContentTemplates()) > 0) ? "y" : "n",
1477 'paste' => $paste ? "y" : "n",
1478 'media_mode' => $media_mode,
1479 'javascript' => $sel_js_mode,
1480 'paragraph_plugins' => $paragraph_plugin_string,
1481 'disable_auto_margins' => $disable_auto_margins,
1482 'page_toc' => $cfg->getEnablePageToc() ? "y" : "n",
1483 'enable_profile' => $cfg->getEnablePCType("Profile") ? "y" : "n",
1484 'enable_verification' => $cfg->getEnablePCType("Verification") ? "y" : "n",
1485 'enable_blog' => $cfg->getEnablePCType("Blog") ? "y" : "n",
1486 'enable_skills' => $cfg->getEnablePCType("Skills") ? "y" : "n",
1487 'enable_learning_history' => $cfg->getEnablePCType("LearningHistory") ? "y" : "n",
1488 'enable_qover' => "n",
1489 'enable_consultation_hours' => $cfg->getEnablePCType("ConsultationHours") ? "y" : "n",
1490 'enable_my_courses' => $cfg->getEnablePCType("MyCourses") ? "y" : "n",
1491 'enable_amd_page_list' => $cfg->getEnablePCType("AMDPageList") ? "y" : "n",
1492 'current_ts' => $current_ts,
1493 'enable_html_mob' => ilObjMediaObject::isTypeAllowed("html") ? "y" : "n",
1494 'page_perma_link' => $this->getPagePermaLink(),
1495 'activated_protection' =>
1496 ($this->getPageConfig()->getSectionProtection() == \ilPageConfig::SEC_PROTECT_PROTECTED) ? "y" : "n",
1497 'protection_text' => $this->lng->txt("cont_sec_protected_text"),
1498 'enable_href' => $enable_href
1499 );
1500 if ($this->link_frame != "") { // todo other link types
1501 $params["pg_frame"] = $this->link_frame;
1502 }
1503
1504 //$content = str_replace("&nbsp;", "", $content);
1505
1506 // this ensures that cache is emptied with every update
1507 $params["version"] = ILIAS_VERSION;
1508 // ensure no cache hit, if included files/media objects have been changed
1509 $params["incl_elements_date"] = $this->obj->getLastUpdateOfIncludedElements();
1510
1511
1512 // should be modularized
1514 // run xslt
1515 $md5 = md5(serialize($params) . $link_xml . $template_xml . $md5_adds);
1516
1517 //$a = microtime();
1518
1519 // check cache (same parameters, non-edit mode and rendered time
1520 // > last change
1521 $is_error = false;
1522 if (($this->getOutputMode() == "preview" || $this->getOutputMode() == "presentation") &&
1523 !$this->getCompareMode() &&
1524 !$this->getAbstractOnly() &&
1525 $md5 == $this->obj->getRenderMd5() &&
1526 ($this->obj->getLastChange() < $this->obj->getRenderedTime()) &&
1527 $this->obj->getRenderedTime() != "" &&
1528 $this->obj->old_nr == 0) {
1529 // cache hit
1530 $output = $this->obj->getRenderedContent();
1531 } else {
1532 $this->log->debug("Calling XSLT, content: " . substr($content, 0, 100));
1533 try {
1534 $output = $this->xsl->process($content, $params);
1535 } catch (Exception $e) {
1536 $output = "";
1537 if ($this->getOutputMode() == "edit") {
1538 $output = "<pre>" . $e->getMessage() . "<br>" . htmlentities($content) . "</pre>";
1539 $is_error = true;
1540 }
1541 }
1542 if (($this->getOutputMode() == "presentation" || $this->getOutputMode() == "preview")
1543 && !$this->getAbstractOnly()
1544 && $this->obj->old_nr == 0) {
1545 $this->obj->writeRenderedContent($output, $md5);
1546 }
1547 }
1548
1549 if (!$is_error) {
1550 // unmask user html
1551 if (($this->getOutputMode() != "edit" ||
1552 $this->user->getPref("ilPageEditor_HTMLMode") != "disable")
1553 && !$this->getPageConfig()->getPreventHTMLUnmasking()) {
1554 $output = str_replace("&lt;", "<", $output);
1555 $output = str_replace("&gt;", ">", $output);
1556 }
1557 $output = str_replace("&amp;", "&", $output);
1558
1559 // insert page snippets
1560 //$output = $this->insertContentIncludes($output);
1561
1562 // insert resource blocks
1563 $output = $this->insertResources($output);
1564
1565 // insert page toc
1566 if ($this->getPageConfig()->getEnablePageToc()) {
1567 $output = $this->insertPageToc($output);
1568 }
1569
1570 // insert advanced output trigger
1571 $output = $this->insertAdvTrigger($output);
1572
1573 // workaround for preventing template engine
1574 // from hiding paragraph text that is enclosed
1575 // in curly brackets (e.g. "{a}", see ilLMEditorGUI::executeCommand())
1576 $output = $this->replaceCurlyBrackets($output);
1577
1578 // remove all newlines (important for code / pre output)
1579 $output = str_replace("\n", "", $output);
1580
1581 //echo htmlentities($output);
1582 $output = $this->postOutputProcessing($output);
1583 //echo htmlentities($output);
1584 if ($this->getOutputMode() == "edit" &&
1585 !$this->getPageObject()->getActive($this->getPageConfig()->getEnableScheduledActivation())) {
1586 $output = '<div class="copg-disabled-page"><div class="ilCopgDisabledText">' . $this->getDisabledText() . '</div>' . $output . '</div>';
1587 }
1588
1589 // for all page components...
1590 $defs = $this->pc_definition->getPCDefinitions();
1591 foreach ($defs as $def) {
1592 $pc_class = $def["pc_class"];
1593 $pc_obj = new $pc_class($this->getPageObject());
1594 $pc_obj->setSourcecodeDownloadScript($this->determineSourcecodeDownloadScript());
1595 $pc_obj->setFileDownloadLink($this->determineFileDownloadLink());
1596 $pc_obj->setFullscreenLink($this->determineFullscreenLink());
1597 $pc_obj->setProfileBackUrl($this->getProfileBackUrl());
1598
1599 // post xsl page content modification by pc elements
1600 $output = $pc_obj->modifyPageContentPostXsl($output, $this->getOutputMode(), $this->getAbstractOnly());
1601 }
1602 }
1603
1604 $this->addResourcesToTemplate($main_tpl);
1605
1606 // enable rendering of latex in the whole output
1607 $output = $this->ui->renderer()->render($this->ui->factory()->legacy()->latexContent($output));
1608
1609 // $output = $this->selfAssessmentRendering($output);
1610
1611 // output
1612 if ($this->ctrl->isAsynch() && !$this->getRawPageContent() &&
1613 $this->getOutputMode() == "edit") {
1614 // e.g. ###3:110dad8bad6df8620071a0a693a2d328###
1615 $up_pc = $this->request->getString("updated_pc_id_str");
1616 if ($up_pc != "") {
1617 echo $up_pc;
1618 }
1619 $tpl->setVariable($this->getTemplateOutputVar(), $output);
1620 $tpl->setCurrentBlock("edit_page");
1622 echo $tpl->get("edit_page");
1623 exit;
1624 }
1625 $edit_init = "";
1626 if ($this->getOutputMode() === "edit") {
1627 $edit_init = $this->editor_gui->init()->getInitHtml($this->getOpenPlaceHolder());
1628 }
1629 if ($this->outputToTemplate()) {
1630 $tpl->setVariable($this->getTemplateOutputVar(), $output);
1631 $this->tpl->setVariable($this->getTemplateTargetVar(), $tpl->get() . $edit_init);
1632 return $output;
1633 } else {
1634 if ($this->getRawPageContent()) { // e.g. needed in glossaries
1635 return $output . $edit_init;
1636 } else {
1637 $tpl->setVariable($this->getTemplateOutputVar(), $output);
1638 return $tpl->get() . $edit_init;
1639 }
1640 }
1641 }
static addCss()
Add required css.
static addJavaScript(?ilGlobalTemplate $main_tpl=null)
Add javascript files that are necessary to run accordion.
static getInitHTML(string $a_url)
Get initialisation HTML to use internal link editing.
static formSelect( $selected, string $varname, array $options, bool $multiple=false, bool $direct_text=false, int $size=0, string $style_class="", array $attribs=[], bool $disabled=false)
Builds a select form field with options and shows the selected option first.
static isActivated()
Checks whether Map feature is activated.
static lookupTitle(int $a_page_id)
static hasSuccessorPage(int $a_cont_obj_id, int $a_page_id)
checks if page has a successor page
Class ilObjStyleSheet.
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
static collectContentIncludes(ilPageObject $a_page, DOMDocument $a_domdoc)
get all content includes that are used within the page
static getCacheTriggerString(ilPageObject $a_page)
Get page cache update trigger string.
displayValidationError($a_error)
display validation error
ILIAS COPage Link LinkManager $link
insertResources(string $a_output)
addResourcesToTemplate(ilGlobalTemplateInterface $tpl)
Add resources to template.
replaceCurlyBrackets(string $output)
getComponentPluginsXML()
Put information about activated plugins into XML.
insertPageToc(string $a_output)
postOutputProcessing(string $a_output)
Finalizing output processing.
insertAdvTrigger(string $a_output)
Insert adv content trigger.
static initjQuery(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
const ANONYMOUS_USER_ID
Definition: constants.php:27
const ILIAS_VERSION
touchBlock(string $block)
overwrites ITX::touchBlock.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.

References Vendor\Package\$e, $params, ilObject\_exists(), ilInternalLink\_getTargetsOfSource(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilAccordionGUI\addCss(), ilAccordionGUI\addJavaScript(), ANONYMOUS_USER_ID, ilPCContentInclude\collectContentIncludes(), ILIAS\Repository\ctrl(), exit, ilDatePresentation\formatDate(), ilLegacyFormElementsUtil\formSelect(), ILIAS\UICore\GlobalTemplate\get(), ilEditClipboard\getAction(), ilObjStyleSheet\getBaseContentStylePath(), ilPCSection\getCacheTriggerString(), ilUtil\getImagePath(), ilInternalLinkGUI\getInitHTML(), ilUserUtil\getNamePresentation(), ilFileUtils\getWebspaceDir(), ilObjContentObject\hasSuccessorPage(), IL_CAL_DATETIME, ILIAS_VERSION, ilObjMediaObjectGUI\includePresentationJS(), iljQueryUtil\initjQuery(), ilMapUtil\isActivated(), ilObjMediaObject\isTypeAllowed(), ILIAS\Repository\lng(), ilMediaPoolPage\lookupTitle(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), ilPageConfig\SEC_PROTECT_PROTECTED, ILIAS\UICore\GlobalTemplate\setCurrentBlock(), ILIAS\UICore\GlobalTemplate\setVariable(), ILIAS\UICore\GlobalTemplate\touchBlock(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

Referenced by ilImprintGUI\preview(), and ilImprintGUI\renderFullscreen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ switchToLanguage()

ilPageObjectGUI::switchToLanguage ( )

Switch to language.

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

3063 : void
3064 {
3065 $l = $this->request->getString("totransl");
3066 $p = $this->getPageObject();
3067 if (!$this->checkLangPageAvailable($p->getId(), $l)) {
3069 return;
3070 }
3071 $this->ctrl->setParameter($this, "transl", $l);
3072 $this->ctrl->redirect($this, "edit");
3073 }
confirmPageTranslationCreation()
Confirm page translation creation.
checkLangPageAvailable(int $id, string $lang)

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

Field Documentation

◆ $abstract_only

bool ilPageObjectGUI::$abstract_only = false
private

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

◆ $abstract_pcid

string ilPageObjectGUI::$abstract_pcid = ""
protected

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

◆ $access

ilAccessHandler ilPageObjectGUI::$access
protected

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

Referenced by ilWikiPageGUI\executeCommand().

◆ $act_meth

string ilPageObjectGUI::$act_meth = ""
protected

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

◆ $act_obj

object ilPageObjectGUI::$act_obj
protected

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

◆ $activated

bool ilPageObjectGUI::$activated = true

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

◆ $activation

bool ilPageObjectGUI::$activation = false

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

◆ $adv_ref_id

int ilPageObjectGUI::$adv_ref_id = null
protected

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

◆ $adv_subtype

string ilPageObjectGUI::$adv_subtype = null
protected

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

◆ $adv_type

string ilPageObjectGUI::$adv_type = null
protected

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

◆ $compare

ILIAS COPage Compare PageCompare ilPageObjectGUI::$compare
protected

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

◆ $compare_mode

bool ilPageObjectGUI::$compare_mode = false

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

◆ $component_factory

ilComponentFactory ilPageObjectGUI::$component_factory
protected

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

◆ $concrete_lang

string ilPageObjectGUI::$concrete_lang = ""
protected

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

Referenced by ilLMPageGUI\__construct(), and __construct().

◆ $ctrl

◆ $edit_repo

EditSessionRepository ilPageObjectGUI::$edit_repo
protected

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

◆ $editor_gui

ILIAS COPage Editor GUIService ilPageObjectGUI::$editor_gui
protected

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

◆ $editpreview

bool ilPageObjectGUI::$editpreview = false

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

◆ $enabled_href

bool ilPageObjectGUI::$enabled_href = true
protected

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

◆ $enabled_news

bool ilPageObjectGUI::$enabled_news = false
protected

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

◆ $enabledcontentincludes

bool ilPageObjectGUI::$enabledcontentincludes = false

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

◆ $enabledpagefocus

bool ilPageObjectGUI::$enabledpagefocus
protected

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

◆ $enableediting

bool ilPageObjectGUI::$enableediting = true

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

◆ $exp_frame

string ilPageObjectGUI::$exp_frame = ""
protected

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

◆ $exp_id

string ilPageObjectGUI::$exp_id = ""
protected

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

◆ $exp_target_script

string ilPageObjectGUI::$exp_target_script = ""
protected

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

◆ $file_download_link

string ilPageObjectGUI::$file_download_link = ''
protected

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

◆ $form

ilPropertyFormGUI ilPageObjectGUI::$form
protected

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

Referenced by ilWikiPageGUI\executeCommand().

◆ $fullscreen_link

string ilPageObjectGUI::$fullscreen_link = ''
protected

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

◆ $gui

ILIAS COPage InternalGUIService ilPageObjectGUI::$gui
protected

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

Referenced by ilWikiPageGUI\executeCommand().

◆ $header

string ilPageObjectGUI::$header = ""
protected

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

◆ $help

ilHelpGUI ilPageObjectGUI::$help
protected

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

Referenced by ilWikiPageGUI\setScreenIdComponent().

◆ $id

int ilPageObjectGUI::$id
protected

◆ $int_link_return

string ilPageObjectGUI::$int_link_return = ""
protected

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

◆ $language

string ilPageObjectGUI::$language
protected

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

◆ $link

ILIAS COPage Link LinkManager ilPageObjectGUI::$link
protected

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

Referenced by ilContainerPageGUI\getProfileBackUrl().

◆ $link_frame

string ilPageObjectGUI::$link_frame = ''
protected

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

◆ $link_params

string ilPageObjectGUI::$link_params = ""

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

◆ $link_xml

string ilPageObjectGUI::$link_xml
protected

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

◆ $link_xml_set

bool ilPageObjectGUI::$link_xml_set = false

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

◆ $lng

◆ $log

ilLogger ilPageObjectGUI::$log
protected

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

◆ $meta_data_observer_func

string ilPageObjectGUI::$meta_data_observer_func = ""

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

◆ $meta_data_observer_obj

object ilPageObjectGUI::$meta_data_observer_obj = null

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

◆ $meta_data_rep_obj

ilObject ilPageObjectGUI::$meta_data_rep_obj = null

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

◆ $meta_data_sub_obj_id

int ilPageObjectGUI::$meta_data_sub_obj_id = 0

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

◆ $meta_data_type

string ilPageObjectGUI::$meta_data_type = ""

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

◆ $news_obj_id

int ilPageObjectGUI::$news_obj_id = 0
protected

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

◆ $news_obj_type

string ilPageObjectGUI::$news_obj_type = ""
protected

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

◆ $notes

ILIAS Notes Service ilPageObjectGUI::$notes
protected

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

◆ $notes_enabled

bool ilPageObjectGUI::$notes_enabled = false
protected

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

◆ $notes_parent_id

int ilPageObjectGUI::$notes_parent_id = 0
protected

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

◆ $obj

ilPageObject ilPageObjectGUI::$obj

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

◆ $offline_directory

string ilPageObjectGUI::$offline_directory = ""
protected

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

◆ $old_nr

int ilPageObjectGUI::$old_nr = 0
protected

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

◆ $open_place_holder

string ilPageObjectGUI::$open_place_holder = ""
protected

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

◆ $output2template

bool ilPageObjectGUI::$output2template = false

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

◆ $output_mode

string ilPageObjectGUI::$output_mode = ""
protected

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

◆ $page_back_title

string ilPageObjectGUI::$page_back_title = ""

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

◆ $page_config

ilPageConfig ilPageObjectGUI::$page_config = null

◆ $page_linker

ILIAS COPage PageLinker ilPageObjectGUI::$page_linker
protected

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

◆ $parent_type

string ilPageObjectGUI::$parent_type = ""
protected

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

◆ $pc_definition

ILIAS COPage PC PCDefinition ilPageObjectGUI::$pc_definition
protected

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

◆ $pl_end

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

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

◆ $pl_start

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

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

◆ $pm

ILIAS COPage Page PageManager ilPageObjectGUI::$pm
protected

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

◆ $prependinghtml

string ilPageObjectGUI::$prependinghtml = ""
protected

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

◆ $presentation_title

string ilPageObjectGUI::$presentation_title = ""

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

◆ $profile_back_url

string ilPageObjectGUI::$profile_back_url = ""
protected

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

◆ $questioninfo

ILIAS TestQuestionPool Questions PublicInterface ilPageObjectGUI::$questioninfo
protected

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

◆ $rawpagecontent

bool ilPageObjectGUI::$rawpagecontent = false

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

◆ $render_page_container

bool ilPageObjectGUI::$render_page_container = false

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

◆ $request

EditGUIRequest ilPageObjectGUI::$request
protected

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

◆ $requested_file_id

string ilPageObjectGUI::$requested_file_id
protected

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

◆ $requested_history_mode

int ilPageObjectGUI::$requested_history_mode = 0
protected

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

◆ $requested_old_nr

int ilPageObjectGUI::$requested_old_nr
protected

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

Referenced by __construct().

◆ $requested_pg_id

int ilPageObjectGUI::$requested_pg_id
protected

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

◆ $requested_q_id

int ilPageObjectGUI::$requested_q_id = 0
protected

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

◆ $requested_ref_id

int ilPageObjectGUI::$requested_ref_id
protected

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

◆ $requested_transl

string ilPageObjectGUI::$requested_transl
protected

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

◆ $requested_user_id

int ilPageObjectGUI::$requested_user_id = 0
protected

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

◆ $return_location

string ilPageObjectGUI::$return_location = ""

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

◆ $sourcecode_download_script

string ilPageObjectGUI::$sourcecode_download_script = ""

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

◆ $styleid

int ilPageObjectGUI::$styleid = 0
protected

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

◆ $tab_hook

array ilPageObjectGUI::$tab_hook = null
protected

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

◆ $tabs_enabled

bool ilPageObjectGUI::$tabs_enabled = true

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

◆ $tabs_gui

ilTabsGUI ilPageObjectGUI::$tabs_gui
protected

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

Referenced by ilWikiPageGUI\executeCommand().

◆ $target_script

string ilPageObjectGUI::$target_script = ""

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

◆ $target_var

string ilPageObjectGUI::$target_var = ""

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

◆ $template_output_var

string ilPageObjectGUI::$template_output_var = ""

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

◆ $tool_context

ILIAS GlobalScreen ScreenContext ContextServices ilPageObjectGUI::$tool_context
protected

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

◆ $toolbar

ilToolbarGUI ilPageObjectGUI::$toolbar
protected

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

◆ $tpl

◆ $ui

ILIAS DI UIServices ilPageObjectGUI::$ui
protected

◆ $use_meta_data

bool ilPageObjectGUI::$use_meta_data = false

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

◆ $user

◆ $view_page_link

string ilPageObjectGUI::$view_page_link = ""
protected

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

◆ $view_page_target

string ilPageObjectGUI::$view_page_target = ""
protected

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

◆ $xsl

ILIAS COPage Xsl XslManager ilPageObjectGUI::$xsl
protected

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

◆ EDIT

const ilPageObjectGUI::EDIT = "edit"

◆ OFFLINE

◆ PRESENTATION

const ilPageObjectGUI::PRESENTATION = "presentation"

◆ PREVIEW

const ilPageObjectGUI::PREVIEW = "preview"

◆ PRINTING

const ilPageObjectGUI::PRINTING = "print"

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

Referenced by ilGlossaryPresentationGUI\printView().


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