• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Services/Block/classes/class.ilDummyBlockGUI.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2006 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
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 ?>

Generated on Fri Dec 13 2013 17:56:55 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1