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

Services/PersonalDesktop/classes/class.ilPDContentBlockGUI.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 
00032 class ilPDContentBlockGUI extends ilBlockGUI
00033 {
00034         static $block_type = "pdcontent";
00035         
00039         function ilPDContentBlockGUI()
00040         {
00041                 global $ilCtrl, $lng, $ilUser;
00042                 
00043                 parent::ilBlockGUI($a_parent_class, $a_parent_cmd);
00044                 
00045                 //$this->setTitle($lng->txt("selected_items"));
00046                 $this->setEnableNumInfo(false);
00047                 $this->setLimit(99999);
00048                 //$this->setColSpan(2);
00049                 $this->setBigMode(true);
00050                 $this->allow_moving = false;
00051         }
00052         
00058         static function getBlockType()
00059         {
00060                 return self::$block_type;
00061         }
00062 
00068         function setCurrentItemNumber($a_currentitemnumber)
00069         {
00070                 $this->currentitemnumber = $a_currentitemnumber;
00071         }
00072 
00078         function getCurrentItemNumber()
00079         {
00080                 return $this->currentitemnumber;
00081         }
00082 
00088         static function isRepositoryObject()
00089         {
00090                 return false;
00091         }
00092 
00093         function getHTML()
00094         {
00095                 return parent::getHTML();
00096         }
00097         
00098         function getContent()
00099         {
00100                 return $this->content;
00101         }
00102         
00103         function setContent($a_content)
00104         {
00105                 $this->content = $a_content;
00106         }
00107         
00111         function fillDataSection()
00112         {
00113                 global $ilUser;
00114                 
00115                 $this->tpl->setVariable("BLOCK_ROW", $this->getContent());
00116         }
00117 
00121         function fillFooter()
00122         {
00123                 //$this->fillFooterLinks();
00124                 global $lng, $ilCtrl;
00125 
00126                 $footer = false;
00127                 
00128                 if (is_array($this->data))
00129                 {
00130                         $this->max_count = count($this->data);
00131                 }
00132                                 
00133                 // table footer numinfo
00134                 if ($this->getEnableNumInfo())
00135                 {
00136                         $numinfo = "(".$this->getCurrentItemNumber()." ".
00137                                 strtolower($lng->txt("of"))." ".$this->max_count.")";
00138         
00139                         if ($this->max_count > 0)
00140                         {
00141                                 $this->tpl->setVariable("NUMINFO", $numinfo);
00142                         }
00143                         $footer = true;
00144                         $this->fillFooterLinks(true, $numinfo);
00145                 }
00146         }
00147         
00148         function fillPreviousNext()
00149         {
00150         }
00151 }
00152 
00153 ?>

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