示例#1
0
 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);
 }
示例#2
0
 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;
 }