5 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
28 $this->ctrl = $DIC->ctrl();
29 $this->lng = $DIC->language();
30 $this->access = $DIC->access();
31 $ilCtrl = $DIC->ctrl();
32 $lng = $DIC->language();
36 $lng->loadLanguageModule(
"wiki");
40 $this->allow_moving =
false;
48 return self::$block_type;
74 $next_class = $ilCtrl->getNextClass();
75 $cmd = $ilCtrl->getCmd(
"getHTML");
77 switch ($next_class) {
86 public function getHTML($a_export =
false)
91 $this->export = $a_export;
93 include_once
'./Modules/Wiki/classes/class.ilWikiPerm.php';
96 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"editImportantPages"),
101 return parent::getHTML();
128 $tpl =
new ilTemplate(
"tpl.wiki_imp_pages_block.html",
true,
true,
"Modules/Wiki");
130 $cpar[0] = $cpar[1] = 0;
131 include_once(
"./Services/UIComponent/NestedList/classes/class.ilNestedList.php");
134 $list->setItemClass(
"ilWikiBlockItem");
135 $list->setListClass(
"ilWikiBlockList");
136 $list->setListClass(
"ilWikiBlockListNoIndent", 1);
140 if (!$this->export) {
141 $list->addListNode(
"<p class='small'><a href='" .
142 $ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
143 .
"'>" .
$title .
"</a></p>", 1, 0);
145 $list->addListNode(
"<p class='small'><a href='" .
147 "'>" .
$title .
"</a></p>", 1, 0);
152 foreach ($ipages as $p) {
155 if (!$this->export) {
156 $list->addListNode(
"<p class='small'><a href='" .
158 .
"'>" .
$title .
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
160 $list->addListNode(
"<p class='small'><a href='" .
161 "wpg_" . $p[
"page_id"] .
".html" .
162 "'>" .
$title .
"</a></p>", $cnt, (
int) $cpar[$p[
"indent"] - 1]);
164 $cpar[$p[
"indent"]] = $cnt;
167 return $list->getHTML();
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.
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
setTitle($a_title)
Set Title.
Important pages wiki block.
static _lookupObjId($a_id)
getHTML($a_export=false)
Get bloch HTML code.
__construct(Container $dic, ilPlugin $plugin)
This class represents a block method of a block.
fillDataSection()
Fill data section.
addBlockCommand(string $a_href, string $a_text, string $a_onclick="")
Add Block Command.
__construct()
Constructor.