Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 include_once("./Services/Block/classes/class.ilBlockGUI.php");
00025
00035 class ilDummyBlockGUI extends ilBlockGUI
00036 {
00037 static $block_type = "";
00038
00042 function ilDummyBlockGUI()
00043 {
00044 global $ilCtrl, $lng;
00045
00046 parent::__construct();
00047
00048 $this->setLimit(5);
00049 $this->allow_moving = true;
00050 }
00051
00057 static function getBlockType()
00058 {
00059 return self::$block_type;
00060 }
00061
00067 static function setBlockType($a_type)
00068 {
00069 self::$block_type = $a_type;
00070 }
00071
00077 static function isRepositoryObject()
00078 {
00079 return false;
00080 }
00081
00082
00086 static function getScreenMode()
00087 {
00088 global $ilCtrl;
00089
00090 return IL_SCREEN_SIDE;
00091 }
00092
00096 function setBlock($a_block)
00097 {
00098 }
00099
00103 function &executeCommand()
00104 {
00105 global $ilCtrl;
00106
00107 $next_class = $ilCtrl->getNextClass();
00108 $cmd = $ilCtrl->getCmd("getHTML");
00109
00110 switch ($next_class)
00111 {
00112 default:
00113 return $this->$cmd();
00114 }
00115 }
00116
00120 function fillDataSection()
00121 {
00122 global $lng;
00123
00124 $this->setDataSection($lng->txt("invisible_block_mess"));
00125 }
00126
00130 function getHTML()
00131 {
00132 global $ilCtrl, $lng, $ilUser, $ilAccess, $ilSetting;
00133
00134 return parent::getHTML();
00135 }
00136 }
00137
00138 ?>