protected function SaveElement()
    {
        $this->articleList->SetArticlePage($this->articlePageSelector->GetPage());
        $archiveCat = explode('-', $this->Value('ArchiveCategory'));
        $this->CleanPageArticleLists();
        if (count($archiveCat) == 1) {
            $this->SaveArchivePage($archiveCat[0]);
        }
        else if (count($archiveCat) == 2) {
            $this->SaveCategoryPage($archiveCat[1]);
        }
        return $this->articleList;
    }
protected function SaveElement()
    {
        $this->articleList->SetArticlePage($this->articlePageSelector->GetPage());
        $archiveCat = explode('-', $this->Value('ArchiveCategory'));
        $this->CleanPageArticleLists();
        if (count($archiveCat) == 1) {
            $this->SaveArchivePage($archiveCat[0]);
        }
        else if (count($archiveCat) == 2) {
            $this->SaveCategoryPage($archiveCat[1]);
        }
        return $this->articleList;
    }
protected function SaveElement ( ) { $ this -> articleList -> SetArticlePage ( $ this -> articlePageSelector -> GetPage ( ) ) ; $ archiveCat = explode ( '-' , $ this -> Value ( 'ArchiveCategory' ) ) ; $ this -> CleanPageArticleLists ( ) ; if ( count ( $ archiveCat ) == 1 ) { $ this -> SaveArchivePage ( $ archiveCat [ 0 ] ) ; } else if ( count ( $ archiveCat ) == 2 ) { $ this -> SaveCategoryPage ( $ archiveCat [ 1 ] ) ; } return $ this -> articleList ; }
Saves article list and attaches current page to chosen archive or category
Saves article list and attaches current page to chosen archive or category