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;
48 return self::$block_type;
76 $next_class =
$ilCtrl->getNextClass();
77 $cmd =
$ilCtrl->getCmd(
"getHTML");
79 switch ($next_class) {
92 $this->pageob = $a_pageob;
102 return $this->pageob;
114 return parent::getHTML();
126 $tpl =
new ilTemplate(
"tpl.wiki_side_block_content.html",
true,
true,
"Modules/Wiki");
132 "txt" =>
$lng->txt(
"wiki_start_page"),
133 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"gotoStartPage")
138 "txt" =>
$lng->txt(
"wiki_all_pages"),
139 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"allPages")
144 "txt" =>
$lng->txt(
"wiki_new_pages"),
145 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"newPages")
150 "txt" =>
$lng->txt(
"wiki_popular_pages"),
151 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"popularPages")
156 "txt" =>
$lng->txt(
"wiki_orphaned_pages"),
157 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"orphanedPages")
162 "txt" =>
$lng->txt(
"wiki_recent_changes"),
163 "href" =>
$ilCtrl->getLinkTargetByClass(
"ilobjwikigui",
"recentChanges")
166 foreach ($actions as $a) {
167 $tpl->setCurrentBlock(
"action");
168 $tpl->setVariable(
"HREF", $a[
"href"]);
169 $tpl->setVariable(
"TXT", $a[
"txt"]);
170 $tpl->parseCurrentBlock();
172 $tpl->touchBlock(
"item");
executeCommand()
execute command
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
static isRepositoryObject()
Is this a repository object.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
__construct()
Constructor.
static getBlockType()
Get block type.
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.
Create styles array
The data for the language used.
BlockGUI class for wiki sideblock.
This class represents a block method of a block.
getPageObject()
Get Page Object.