Handles user interface for wikis.
More...
◆ __construct()
ilWikiHandlerGUI::__construct |
( |
| ) |
|
◆ executeCommand()
ilWikiHandlerGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 49 of file class.ilWikiHandlerGUI.php.
References $_GET, $cmd, $lng, $title, $tpl, ilLink\_getStaticLink(), ilObject\_lookupObjId(), ilObjWiki\_lookupStartPage(), ilObject\_lookupTitle(), ilWikiPage\exists(), ilWikiPage\getPageIdForTitle(), ilWikiPage\lookupTitle(), and ilWikiUtil\makeUrlTitle().
51 global
$lng, $ilAccess,
$tpl, $ilNavigationHistory;
53 $cmd = $this->ctrl->getCmd();
54 $next_class = $this->ctrl->getNextClass($this);
55 if ($next_class ==
"")
57 $this->ctrl->setCmdClass(
"ilobjwikigui");
58 $next_class = $this->ctrl->getNextClass($this);
62 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
67 if (
$_GET[
"page"] !=
"")
69 $page =
$_GET[
"page"];
73 include_once(
"./Modules/Wiki/classes/class.ilObjWiki.php");
77 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
80 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
82 $add =
"_".rawurlencode($page);
89 $append = (
$_GET[
"page"] !=
"")
92 include_once(
'./Services/Link/classes/class.ilLink.php');
96 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
97 "./goto.php?target=wiki_".
$_GET[
"ref_id"].$add,
"wiki",
105 require_once
"./Modules/Wiki/classes/class.ilObjWikiGUI.php";
107 $this->ctrl->forwardCommand($mc_gui);
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _lookupStartPage($a_wiki_id)
Lookup start page.
static _lookupTitle($a_id)
lookup object title
static getPageIdForTitle($a_wiki_id, $a_title)
Get wiki page object for id and title.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.
static _lookupObjId($a_id)
static exists($a_wiki_id, $a_title)
Checks whether a page with given title exists.
The documentation for this class was generated from the following file: