예제 #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();
 }