Exemplo n.º 1
0
 /**
  * Controller-Processing
  * @return boolean
  */
 public function process()
 {
     if (!parent::process()) {
         return false;
     }
     $users = $this->userList->getUsersNameList();
     $this->view->assign('timesMode', true);
     $this->view->assign('users', array_flip($users));
     $this->view->assign('commentEnabledGlobal', $this->config->system_comments_enabled);
     $this->view->assign('showArchiveStatus', true);
     $this->view->assign('showDraftStatus', false);
     $this->view->assign('articleActions', $this->articleActions);
     $this->view->assign('showTrash', $this->config->articles_trash);
     $this->view->assign('deletePermissions', $this->deleteActions);
     $this->initSearchForm($users);
     if ($this->config->articles_trash) {
         $this->view->assign('trash', $this->articleList->getArticlesDeleted(true));
     }
     $this->view->assign('drafts', $this->articleList->getArticlesDraft(true));
     $commentCounts = $this->commentList->countComments($this->getArticleListIds());
     $this->view->assign('commentCount', $commentCounts);
     $this->view->assign('commentPrivateUnapproved', $this->commentList->countUnapprovedPrivateComments($this->getArticleListIds()));
     $this->view->assign('commentSum', $commentCounts && $this->articleCount ? array_sum($commentCounts) : 0);
     $this->view->setViewJsFiles(array(\fpcm\classes\baseconfig::$jsPath . 'articlelist.js'));
     $this->translateCategories();
     $this->view->assign('showDrafts', true);
     return true;
 }