Пример #1
0
 /**
  * Process the page
  * @return void
  */
 public function process()
 {
     $userArray = $this->user->toArray();
     if (!$this->user->isAdmin() && !$this->user->get('show_email')) {
         unset($userArray['email']);
     }
     $this->setPlaceholders($userArray);
     $this->getPosts();
     $this->buildPagination();
     /* do output */
     $this->getMenu();
     $this->modx->setPlaceholder('discuss.user', $this->user->get('username'));
 }
Пример #2
0
 /**
  * Process the page
  * @return void
  */
 public function process()
 {
     $userArray = $this->user->toArray();
     if (!$this->user->isAdmin() && !$this->user->get('show_email')) {
         unset($userArray['email']);
     }
     $this->setPlaceholders($userArray);
     $this->getLastVisitedThread();
     /* recent posts */
     if (!empty($this->options['showRecentPosts'])) {
         $this->getRecentPosts();
     }
     $this->getUserGroups();
     /* do output */
     $this->getMenu();
     $this->modx->setPlaceholder('discuss.user', $this->user->get('username'));
 }