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
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
00046 $this->setEnableNumInfo(false);
00047 $this->setLimit(99999);
00048
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
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
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 ?>