5 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
28 parent::__construct();
30 $lng->loadLanguageModule(
"wiki");
33 $this->
setTitle($lng->txt(
"wiki_navigation"));
34 $this->allow_moving =
false;
44 return self::$block_type;
72 $next_class = $ilCtrl->getNextClass();
73 $cmd = $ilCtrl->getCmd(
"getHTML");
91 include_once
'./Modules/Wiki/classes/class.ilWikiPerm.php';
95 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editImportantPages"),
96 $lng->txt(
"edit"),
"_top");
99 return parent::getHTML();
109 $tpl =
new ilTemplate(
"tpl.wiki_imp_pages_block.html",
true,
true,
"Modules/Wiki");
111 $cpar[0] = $cpar[1] = 0;
112 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
115 $list->setItemClass(
"ilWikiBlockItem");
116 $list->setListClass(
"ilWikiBlockList");
117 $list->setListClass(
"ilWikiBlockListNoIndent", 1);
123 $list->addListNode(
"<p class='small'><a href='".
124 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
125 .
"'>".
$title.
"</a></p>", 1, 0);
129 $list->addListNode(
"<p class='small'><a href='".
131 "'>".
$title.
"</a></p>", 1, 0);
136 foreach ($ipages as $p)
142 $list->addListNode(
"<p class='small'><a href='".
144 .
"'>".
$title.
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
148 $list->addListNode(
"<p class='small'><a href='".
149 "wpg_".$p[
"page_id"].
".html".
150 "'>".
$title.
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
152 $cpar[$p[
"indent"]] = $cnt;
static getGotoLink($a_ref_id, $a_page="")
Get goto link.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static check($a_perm, $a_ref_id, $a_cmd="")
Check permission.
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
Removing first two heading rows for CSV export
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.