/** * Fill data section */ function fillDataSection() { global $ilUser; include_once "Services/Notes/classes/class.ilNote.php"; $this->notes = ilNote::_getLastNotesOfUser(); if ($this->getCurrentDetailLevel() > 1 && count($this->notes) > 0) { $this->setRowTemplate("tpl.pd_notes_overview.html", "Services/Notes"); $this->getListRowData(); //$this->setColSpan(2); parent::fillDataSection(); } else { $this->setEnableNumInfo(false); if (count($this->notes) == 0) { $this->setEnableDetailRow(false); } $this->setDataSection($this->getOverview()); } }