ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilWikiHandlerGUI Class Reference

Handles user interface for wikis. More...

+ Collaboration diagram for ilWikiHandlerGUI:

Public Member Functions

 ilWikiHandlerGUI ()
executeCommand ()
 execute command

Detailed Description

Handles user interface for wikis.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

ilWikiHandlerGUI: ilObjWikiGUI

Definition at line 35 of file class.ilWikiHandlerGUI.php.

Member Function Documentation

& 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().

{
global $lng, $ilAccess, $tpl, $ilNavigationHistory;
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
if ($next_class == "")
{
$this->ctrl->setCmdClass("ilobjwikigui");
$next_class = $this->ctrl->getNextClass($this);
}
// add entry to navigation history
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$obj_id = ilObject::_lookupObjId($_GET["ref_id"]);
if ($_GET["page"] != "")
{
$page = $_GET["page"];
}
else
{
include_once("./Modules/Wiki/classes/class.ilObjWiki.php");
$page = ilObjWiki::_lookupStartPage($obj_id);
}
include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
if (ilWikiPage::exists($obj_id, $page))
{
include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
$add = "_".rawurlencode($page);
$page_id = ilWikiPage::getPageIdForTitle($obj_id, $page);
$ptitle = ilWikiPage::lookupTitle($page_id);
$title.= ": ".$ptitle;
$append = ($_GET["page"] != "")
: "";
include_once('classes/class.ilLink.php');
$goto = ilLink::_getStaticLink($_GET["ref_id"], "wiki",
true, $append);
//var_dump($goto);
$ilNavigationHistory->addItem($_GET["ref_id"],
"./goto.php?target=wiki_".$_GET["ref_id"].$add, "wiki",
$title, $page_id, $goto);
}
}
switch ($next_class)
{
case 'ilobjwikigui':
require_once "./Modules/Wiki/classes/class.ilObjWikiGUI.php";
$mc_gui =& new ilObjWikiGUI("", (int) $_GET["ref_id"], true, false);
$this->ctrl->forwardCommand($mc_gui);
break;
}
$tpl->show();
}

+ Here is the call graph for this function:

ilWikiHandlerGUI::ilWikiHandlerGUI ( )

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

References $ilCtrl, and $lng.

{
global $ilCtrl, $lng, $ilAccess, $ilias, $ilNavigationHistory;
// initialisation stuff
$this->ctrl =& $ilCtrl;
}

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