ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDummyBlockGUI.php
Go to the documentation of this file.
1<?php
2/*
3 +-----------------------------------------------------------------------------+
4 | ILIAS open source |
5 +-----------------------------------------------------------------------------+
6 | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7 | |
8 | This program is free software; you can redistribute it and/or |
9 | modify it under the terms of the GNU General Public License |
10 | as published by the Free Software Foundation; either version 2 |
11 | of the License, or (at your option) any later version. |
12 | |
13 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | GNU General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU General Public License |
19 | along with this program; if not, write to the Free Software |
20 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 +-----------------------------------------------------------------------------+
22*/
23
24include_once("./Services/Block/classes/class.ilBlockGUI.php");
25
36{
40 protected $settings;
41
42 public static $block_type = "";
43
47 public function __construct()
48 {
49 global $DIC;
50
51 $this->ctrl = $DIC->ctrl();
52 $this->lng = $DIC->language();
53 $this->user = $DIC->user();
54 $this->access = $DIC->access();
55 $this->settings = $DIC->settings();
56
57 parent::__construct();
58
59 $this->setLimit(5);
60 $this->allow_moving = true;
61 }
62
68 public static function getBlockType()
69 {
70 return self::$block_type;
71 }
72
78 public static function setBlockType($a_type)
79 {
80 self::$block_type = $a_type;
81 }
82
88 public static function isRepositoryObject()
89 {
90 return false;
91 }
92
93
97 public static function getScreenMode()
98 {
99 global $DIC;
100
101 $ilCtrl = $DIC->ctrl();
102
103 return IL_SCREEN_SIDE;
104 }
105
109 public function setBlock($a_block)
110 {
111 }
112
116 public function executeCommand()
117 {
119
120 $next_class = $ilCtrl->getNextClass();
121 $cmd = $ilCtrl->getCmd("getHTML");
122
123 switch ($next_class) {
124 default:
125 return $this->$cmd();
126 }
127 }
128
132 public function fillDataSection()
133 {
135
136 $this->setDataSection($lng->txt("invisible_block_mess"));
137 }
138
142 public function getHTML()
143 {
147 $ilAccess = $this->access;
149
150 return parent::getHTML();
151 }
152}
user()
Definition: user.php:4
An exception for terminatinating execution or to throw for unit testing.
const IL_SCREEN_SIDE
This class represents a block method of a block.
setLimit($a_limit)
Set Limit.
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.
BlockGUI class for dummy block.
static setBlockType($a_type)
Set block type.
fillDataSection()
Fill data section.
static getBlockType()
Get block type.
setBlock($a_block)
Do most of the initialisation.
static getScreenMode()
Get Screen Mode for current command.
executeCommand()
execute command
getHTML()
Get block HTML code.
__construct()
Constructor.
static isRepositoryObject()
Is this a repository object.
global $ilCtrl
Definition: ilias.php:18
global $ilSetting
Definition: privfeed.php:17
global $DIC
Definition: saml.php:7
settings()
Definition: settings.php:2
$ilUser
Definition: imgupload.php:18
$a_type
Definition: workflow.php:92