/** * Fill data section */ public function fillDataSection() { $this->getMails(); $this->setData($this->mails); if ($this->getCurrentDetailLevel() > 1 && count($this->mails) > 0) { $this->setRowTemplate("tpl.pd_mail_row.html", "Services/Mail"); if ($this->getCurrentDetailLevel() > 2) { $this->setColSpan(2); } parent::fillDataSection(); } else { $this->setEnableNumInfo(false); if (count($this->mails) == 0) { $this->setEnableDetailRow(false); } $this->setDataSection($this->getOverview()); } }
/** * Fill data section */ function fillDataSection() { // alex: changed from > 1 to > 0 - original detail level 1 did not work anymore if ($this->getCurrentDetailLevel() > 0 && $this->display_mode != "mmon") { $this->setColSpan(1); $this->tpl->addBlockFile("BLOCK_ROW", "block_row", "tpl.pd_event_list.html", "Services/Calendar"); ilBlockGUI::fillDataSection(); } else { // alex: changed from > 1 to > 0 - original detail level 1 did not work anymore if ($this->getCurrentDetailLevel() > 0) { $tpl = new ilTemplate("tpl.calendar_block.html", true, true, "Services/Calendar"); $this->addMiniMonth($tpl); $this->setDataSection($tpl->get()); } else { $this->setDataSection($this->getOverview()); } } }
/** * Fill data section */ function fillDataSection() { if ($this->dynamic) { $this->setDataSection($this->getDynamicReload()); } else { if ($this->getCurrentDetailLevel() > 1 && count($this->getData()) > 0) { parent::fillDataSection(); } else { $this->setDataSection($this->getOverview()); } } }
/** * Fill data section */ function fillDataSection() { global $ilUser; include_once "./Services/Bookmarks/classes/class.ilBookmarkFolder.php"; $bm_items = ilBookmarkFolder::_getNumberOfObjects(); $this->num_bookmarks = $bm_items["bookmarks"]; $this->num_folders = $bm_items["folders"]; if ($this->getCurrentDetailLevel() > 1 && ($this->num_bookmarks > 0 || $this->num_folders > 0)) { if ($ilUser->getPref("il_pd_bkm_mode") == 'tree') { $this->setDataSection($this->getPDBookmarkListHTMLTree()); } else { $this->setRowTemplate("tpl.bookmark_pd_list.html", "Services/Bookmarks"); $this->getListRowData(); $this->setColSpan(2); parent::fillDataSection(); } } else { if ($this->num_bookmarks == 0 && $this->num_folders == 0) { $this->setEnableDetailRow(false); } $this->setDataSection($this->getOverview()); } }
/** * 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()); } }
/** * Fill data section */ function fillDataSection() { global $ilUser, $ilSetting, $ilCtrl; $pd_set = new ilSetting("pd"); include_once "Services/Notes/classes/class.ilNote.php"; if ($this->getCurrentDetailLevel() > 1 && $this->num_users > 0) { $this->setRowTemplate("tpl.users_online_row.html", "Services/PersonalDesktop"); $this->getListRowData(); if ($this->getCurrentDetailLevel() > 2) { $this->setColSpan(2); } parent::fillDataSection(); } else { $this->setEnableNumInfo(false); $this->setDataSection($this->getOverview()); } }
/** * Fill data section */ function fillDataSection() { global $ilAccess, $ilUser, $tree; include_once 'Services/Feedback/classes/class.ilFeedback.php'; $feedback = new ilFeedback(); $feedbacks = $feedback->getAllBarometer(0); $this->feedbacks = array(); foreach ($feedbacks as $feedback) { if ($tree->isDeleted($feedback->getRefId())) { continue; } // do not show feedback for tutors/admins if (!$ilAccess->checkAccess("write", "", $feedback->getRefId()) && $feedback->canVote($ilUser->getId(), $feedback->getId()) == 1 && !$feedback->getAnonymous()) { $this->feedbacks[] = array("id" => $feedback->getId(), "title" => $feedback->getTitle()); } } $this->setData($this->feedbacks); if ($this->getCurrentDetailLevel() > 1 && count($this->feedbacks) > 0) { $this->setRowTemplate("tpl.feedback_pdbox.html", "Services/Feedback"); parent::fillDataSection(); } else { $this->setEnableNumInfo(false); $this->setDataSection($this->getOverview()); } }