protected function loadblogSections() { $blogSectionList = new ProblogList(); $blogSectionList->setItemsPerPage($this->num); $blogSectionList->filterByBlogSection(1); $blogSectionList->sortBy('cvName', 'asc'); $tmpSections = $blogSectionList->get(); $sections = array(); foreach ($tmpSections as $_c) { $sections[$_c->getCollectionID()] = $_c->getCollectionName(); } $this->set('sections', $sections); }
public function getBlogSectionPages() { $blogSectionList = new ProblogList(); $blogSectionList->displayUnapprovedPages(); $blogSectionList->setItemsPerPage(10); $blogSectionList->filter(false, "csi.ak_blog_section = 1"); $blogSectionList->sortBy('cvName', 'asc'); $tmpSections = $blogSectionList->getResults(); $sections = array(); foreach ($tmpSections as $_c) { $sections[$_c->getCollectionID()] = $_c->getCollectionName(); } return $sections; }