original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Saves article list and attaches current page to chosen archive or category
docstring_tokens: Saves article list and attaches current page to chosen archive or category