示例#1
0
文件: Post.php 项目: ignaszak/cms
 private function selectPosts()
 {
     switch ($this->http->router->group()) {
         case 'post':
             $this->query->setQuery('post');
             break;
         case 'category':
             $catIdArray = RegistryFactory::start()->register('App\\Resource\\CategoryList')->child();
             $this->query->setQuery('post')->categoryId($catIdArray)->force();
             break;
         case 'date':
             $this->query->setQuery('post')->date($this->getDate())->force();
             break;
         default:
             $this->query->setQuery('post');
     }
     $this->post = $this->query->getQuery();
 }
示例#2
0
文件: Page.php 项目: ignaszak/cms
 private function setPageFromDB()
 {
     $this->query->setQuery('page');
     $this->page = $this->query->getQuery();
 }
示例#3
0
文件: System.php 项目: ignaszak/cms
 /**
  * todo do something with paginate()
  * @return array
  */
 public function getResult() : array
 {
     return $this->query->getQuery();
 }