src/News/Modules/Frontend/ArticleList.php
private function InitArticles()
    {
        $this->archive = Archive::Schema()->ByPage($this->CurrentPage());
        if ($this->archive) 
        {
            $this->InitArchiveArticles();
            return;
        }
        $this->category = Category::Schema()->ByPage($this->CurrentPage());
        if ($this->category)
        {
            $this->archive = $this->category->GetArchive();
            $this->InitCategoryArticles();
        }
    }
private function InitArticles()
    {
        $this->archive = Archive::Schema()->ByPage($this->CurrentPage());
        if ($this->archive) 
        {
            $this->InitArchiveArticles();
            return;
        }
        $this->category = Category::Schema()->ByPage($this->CurrentPage());
        if ($this->category)
        {
            $this->archive = $this->category->GetArchive();
            $this->InitCategoryArticles();
        }
    }
private function InitArticles ( ) { $ this -> archive = Archive :: Schema ( ) -> ByPage ( $ this -> CurrentPage ( ) ) ; if ( $ this -> archive ) { $ this -> InitArchiveArticles ( ) ; return ; } $ this -> category = Category :: Schema ( ) -> ByPage ( $ this -> CurrentPage ( ) ) ; if ( $ this -> category ) { $ this -> archive = $ this -> category -> GetArchive ( ) ; $ this -> InitCategoryArticles ( ) ; } }
Initializes the article array
Initializes the article array