ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilPDContentBlockGUI.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 
24 include_once("Services/Block/classes/class.ilBlockGUI.php");
25 
33 {
34  static $block_type = "pdcontent";
35 
40  {
41  global $ilCtrl, $lng, $ilUser;
42 
43  parent::ilBlockGUI($a_parent_class, $a_parent_cmd);
44 
45  //$this->setTitle($lng->txt("selected_items"));
46  $this->setEnableNumInfo(false);
47  $this->setLimit(99999);
48  //$this->setColSpan(2);
49  $this->setBigMode(true);
50  $this->allow_moving = false;
51  }
52 
58  static function getBlockType()
59  {
60  return self::$block_type;
61  }
62 
68  function setCurrentItemNumber($a_currentitemnumber)
69  {
70  $this->currentitemnumber = $a_currentitemnumber;
71  }
72 
79  {
80  return $this->currentitemnumber;
81  }
82 
88  static function isRepositoryObject()
89  {
90  return false;
91  }
92 
93  function getHTML()
94  {
95  return parent::getHTML();
96  }
97 
98  function getContent()
99  {
100  return $this->content;
101  }
102 
103  function setContent($a_content)
104  {
105  $this->content = $a_content;
106  }
107 
111  function fillDataSection()
112  {
113  global $ilUser;
114 
115  $this->tpl->setVariable("BLOCK_ROW", $this->getContent());
116  }
117 
121  function fillFooter()
122  {
123  //$this->fillFooterLinks();
124  global $lng, $ilCtrl;
125 
126  $footer = false;
127 
128  if (is_array($this->data))
129  {
130  $this->max_count = count($this->data);
131  }
132 
133  // table footer numinfo
134  if ($this->getEnableNumInfo())
135  {
136  $numinfo = "(".$this->getCurrentItemNumber()." ".
137  strtolower($lng->txt("of"))." ".$this->max_count.")";
138 
139  if ($this->max_count > 0)
140  {
141  $this->tpl->setVariable("NUMINFO", $numinfo);
142  }
143  $footer = true;
144  $this->fillFooterLinks(true, $numinfo);
145  }
146  }
147 
148  function fillPreviousNext()
149  {
150  }
151 }
152 
153 ?>