Ejemplo n.º 1
0
 /**
  * Fill data section
  */
 function fillDataSection()
 {
     global $ilBench;
     if ($this->dynamic) {
         $this->setDataSection($this->getDynamicReload());
     } else {
         if ($this->getCurrentDetailLevel() > 1 && count($this->getData()) > 0) {
             $ilBench->start("News", "ilPDNewsBlockGUI_fillDataSection");
             parent::fillDataSection();
             $ilBench->stop("News", "ilPDNewsBlockGUI_fillDataSection");
         } else {
             $this->setEnableNumInfo(false);
             if (count($this->getData()) == 0) {
                 $this->setEnableDetailRow(false);
             }
             $this->setDataSection($this->getOverview());
         }
     }
 }