5 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
28 $this->ctrl = $DIC->ctrl();
29 $this->lng = $DIC->language();
30 $this->access = $DIC->access();
32 $lng = $DIC->language();
34 parent::__construct();
36 $lng->loadLanguageModule(
"wiki");
40 $this->allow_moving =
false;
50 return self::$block_type;
78 $next_class =
$ilCtrl->getNextClass();
79 $cmd =
$ilCtrl->getCmd(
"getHTML");
81 switch ($next_class) {
90 public function getHTML($a_export =
false)
97 include_once
'./Modules/Wiki/classes/class.ilWikiPerm.php';
100 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editImportantPages"),
106 return parent::getHTML();
118 $tpl =
new ilTemplate(
"tpl.wiki_imp_pages_block.html",
true,
true,
"Modules/Wiki");
120 $cpar[0] = $cpar[1] = 0;
121 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
124 $list->setItemClass(
"ilWikiBlockItem");
125 $list->setListClass(
"ilWikiBlockList");
126 $list->setListClass(
"ilWikiBlockListNoIndent", 1);
131 $list->addListNode(
"<p class='small'><a href='" .
132 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
133 .
"'>" .
$title .
"</a></p>", 1, 0);
135 $list->addListNode(
"<p class='small'><a href='" .
137 "'>" .
$title .
"</a></p>", 1, 0);
142 foreach ($ipages as $p) {
146 $list->addListNode(
"<p class='small'><a href='" .
148 .
"'>" .
$title .
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
150 $list->addListNode(
"<p class='small'><a href='" .
151 "wpg_" . $p[
"page_id"] .
".html" .
152 "'>" .
$title .
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
154 $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.
if(isset($_REQUEST['delete'])) $list
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.
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
addBlockCommand( $a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false, $a_checked=false, $a_html="")
Add Block Command.
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.