5 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
32 $lng->loadLanguageModule(
"wiki");
35 $this->
setTitle($lng->txt(
"wiki_navigation"));
36 $this->allow_moving =
false;
46 return self::$block_type;
74 $next_class = $ilCtrl->getNextClass();
75 $cmd = $ilCtrl->getCmd(
"getHTML");
91 $this->export = $a_export;
93 if (!$this->export && $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
96 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editImportantPages"),
97 $lng->txt(
"edit"),
"_top");
100 return parent::getHTML();
110 $tpl =
new ilTemplate(
"tpl.wiki_imp_pages_block.html",
true,
true,
"Modules/Wiki");
112 $cpar[0] = $cpar[1] = 0;
113 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
116 $list->setItemClass(
"ilWikiBlockItem");
117 $list->setListClass(
"ilWikiBlockList");
118 $list->setListClass(
"ilWikiBlockListNoIndent", 1);
124 $list->addListNode(
"<p class='small'><a href='".
125 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
126 .
"'>".$title.
"</a></p>", 1, 0);
130 $list->addListNode(
"<p class='small'><a href='".
132 "'>".$title.
"</a></p>", 1, 0);
137 foreach ($ipages as $p)
143 $list->addListNode(
"<p class='small'><a href='".
145 .
"'>".$title.
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
149 $list->addListNode(
"<p class='small'><a href='".
150 "wpg_".$p[
"page_id"].
".html".
151 "'>".$title.
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
153 $cpar[$p[
"indent"]] = $cnt;
161 $tpl->setCurrentBlock(
"item");
163 $tpl->setVariable(
"ITEM_TITLE", $lng->txt(
"wiki_start_page"));
164 $tpl->setVariable(
"PAD", (
int) 5 + (0 * 20));
165 $tpl->setVariable(
"ITEM_HREF", $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage"));
166 $tpl->parseCurrentBlock();
169 foreach ($ipages as $p)
171 $tpl->setCurrentBlock(
"item");
173 $tpl->setVariable(
"ITEM_TITLE", $title);
174 $tpl->setVariable(
"PAD", (
int) 5 + ($p[
"indent"] * 20));
176 $tpl->parseCurrentBlock();
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static _lookupImportantPagesList($a_wiki_id)
Get important pages list.
static isRepositoryObject()
Is this a repository object.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
static _lookupStartPage($a_wiki_id)
Lookup start page.
addBlockCommand($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
Add Block Command.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
static getScreenMode()
Get Screen Mode for current command.
& executeCommand()
execute command
setTitle($a_title)
Set Title.
Important pages wiki block.
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
getHTML($a_export=false)
Get bloch HTML code.
static getBlockType()
Get block type.
This class represents a block method of a block.
fillDataSection()
Fill data section.
__construct()
Constructor.