ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
class.ilGuidedTourPageGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 protected \ILIAS\Help\GuidedTour\InternalDomainService $gt_domain;
29
30 public function __construct(
31 int $a_id = 0,
32 int $a_old_nr = 0,
33 string $a_lang = ""
34 ) {
35 global $DIC;
36
37 parent::__construct("gdtr", $a_id, $a_old_nr, false, $a_lang);
38 $this->gt_domain = $DIC->help()->internal()->domain()->guidedTour();
39 }
40
41 public function getProfileBackUrl(): string
42 {
43 return "#";
44 }
45
46 public function finishEditing(): void
47 {
48 $this->ctrl->returnToParent($this);
49 }
50
51 public function showPageFullscreen(): void
52 {
53 $tpl = new ilGlobalTemplate("tpl.fullscreen.html", true, true, "components/ILIAS/COPage");
54 $this->setTemplate($tpl);
58 $this->setTemplateOutput(false);
59 $this->setHeader("");
60 $ret = $this->showPage();
61 $tpl->setVariable("MEDIA_CONTENT", "<div>" . $ret .
62 $this->renderButtons() . "</div>");
64 exit;
65 }
66
67 protected function renderButtons(): string
68 {
69 $lng = $this->gt_domain->lng();
70 $lng->loadLanguageModule("help");
71 return "<p>" .
72 $this->gui->button(
73 $lng->txt("gdtr_next_step"),
74 "#"
75 )->render(["gdtr-type" => "next"]) .
76 $this->gui->button(
77 $lng->txt("gdtr_close"),
78 "#"
79 )->render(["gdtr-type" => "close"]) .
80 "</p>";
81 }
82
83}
special template class to simplify handling of ITX/PEAR
@ilCtrl_Calls ilGuidedTourPageGUI: ilPageEditorGUI, ilEditClipboardGUI, ilMDEditorGUI @ilCtrl_Calls i...
ILIAS Help GuidedTour InternalDomainService $gt_domain
__construct(int $a_id=0, int $a_old_nr=0, string $a_lang="")
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 getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
Class ilPageObjectGUI.
showPage()
display content of page
setHeader(string $a_title="")
addResourcesToTemplate(ilGlobalTemplateInterface $tpl)
Add resources to template.
setTemplateOutput(bool $a_output=true)
ilGlobalTemplateInterface $tpl
setTemplate(ilGlobalTemplateInterface $main_tpl)
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
exit
setVariable(string $variable, $value='')
Sets the given variable to the given value.
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26