This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Handles user interface for wikis
- Author
- Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de ilWikiHandlerGUI: ilObjWikiGUI
Definition at line 24 of file class.ilWikiHandlerGUI.php.
◆ __construct()
ilWikiHandlerGUI::__construct |
( |
| ) |
|
Definition at line 36 of file class.ilWikiHandlerGUI.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
40 $this->
lng = $DIC->language();
41 $this->
access = $DIC->access();
42 $this->tpl = $DIC[
"tpl"];
43 $this->nav_history = $DIC[
"ilNavigationHistory"];
44 $ilCtrl = $DIC->ctrl();
48 $this->
ctrl = $ilCtrl;
49 $this->domain = $DIC->wiki()->internal()->domain();
55 $this->requested_ref_id = $request->getRefId();
56 $this->requested_page = $request->getPage();
57 $this->requested_lang = $request->getTranslation();
59 $DIC->globalScreen()->tool()->context()->claim()->repository();
◆ executeCommand()
ilWikiHandlerGUI::executeCommand |
( |
| ) |
|
Definition at line 62 of file class.ilWikiHandlerGUI.php.
References $access, $lang, $nav_history, $tpl, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), ILIAS\Repository\int(), and ILIAS\UICore\GlobalTemplate\printToStdout().
67 $lang = ($this->requested_lang ===
"")
69 : $this->requested_lang;
71 $next_class = $this->
ctrl->getNextClass($this);
72 if ($next_class ==
"") {
73 $this->
ctrl->saveParameterByClass(ilObjWikiGUI::class,
"ref_id");
74 $this->
ctrl->redirectByClass(ilObjWikiGUI::class, $this->
ctrl->getCmd());
78 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
79 $pm = $this->domain->page()->page($this->requested_ref_id);
82 $link = $pm->getPermaLinkByTitle(
83 $this->requested_page,
87 $page_id = (
int) $pm->getPageIdForTitle($this->requested_page,
$lang);
89 $ptitle = $pm->getTitle($page_id,
$lang);
90 $title .=
": " . $ptitle;
92 $ilNavigationHistory->addItem(
93 $this->requested_ref_id,
103 switch ($next_class) {
107 $this->requested_ref_id,
111 $this->
ctrl->forwardCommand($mc_gui);
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
ilNavigationHistory $nav_history
ilGlobalTemplateInterface $tpl
◆ $access
◆ $ctrl
ilCtrl ilWikiHandlerGUI::$ctrl |
|
protected |
◆ $domain
ILIAS Wiki InternalDomainService ilWikiHandlerGUI::$domain |
|
protected |
◆ $lng
◆ $nav_history
◆ $requested_lang
string ilWikiHandlerGUI::$requested_lang |
|
protected |
◆ $requested_page
string ilWikiHandlerGUI::$requested_page |
|
protected |
◆ $requested_ref_id
int ilWikiHandlerGUI::$requested_ref_id |
|
protected |
◆ $tpl
The documentation for this class was generated from the following file: