4 include_once(
"Services/Block/classes/class.ilBlockGUI.php");
26 $this->ctrl = $DIC->ctrl();
27 $this->lng = $DIC->language();
28 $this->
user = $DIC->user();
29 $this->access = $DIC->access();
30 $lng = $DIC->language();
32 parent::__construct();
34 $lng->loadLanguageModule(
"wiki");
38 $this->allow_moving =
false;
46 return self::$block_type;
72 $next_class =
$ilCtrl->getNextClass();
73 $cmd =
$ilCtrl->getCmd(
"getHTML");
75 switch ($next_class) {
88 $this->pageob = $a_pageob;
110 return parent::getHTML();
122 $tpl =
new ilTemplate(
"tpl.wiki_side_block_content.html",
true,
true,
"Modules/Wiki");
128 "txt" =>
$lng->txt(
"wiki_start_page"),
129 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
134 "txt" =>
$lng->txt(
"wiki_all_pages"),
135 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"allPages")
140 "txt" =>
$lng->txt(
"wiki_new_pages"),
141 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"newPages")
146 "txt" =>
$lng->txt(
"wiki_popular_pages"),
147 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"popularPages")
152 "txt" =>
$lng->txt(
"wiki_orphaned_pages"),
153 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"orphanedPages")
158 "txt" =>
$lng->txt(
"wiki_recent_changes"),
159 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"recentChanges")
162 foreach ($actions as $a) {
163 $tpl->setCurrentBlock(
"action");
164 $tpl->setVariable(
"HREF", $a[
"href"]);
165 $tpl->setVariable(
"TXT", $a[
"txt"]);
166 $tpl->parseCurrentBlock();
168 $tpl->touchBlock(
"item");
executeCommand()
execute command
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
__construct()
Constructor.
setTitle($a_title)
Set Title.
setPageObject($a_pageob)
Set Page Object.
fillDataSection()
Fill data section.
getHTML()
Get bloch HTML code.
special template class to simplify handling of ITX/PEAR
static getScreenMode()
Get Screen Mode for current command.
BlockGUI class for wiki sideblock.
This class represents a block method of a block.
getPageObject()
Get Page Object.