コード例 #1
0
 /**
  * Displays a single user group of the users to be listed.
  * @author Martin Helmich <*****@*****.**>
  * @param  array  $users An array containing the users to be displayed.
  * @param  string $class The css class, the generated links are to be wrapped with.
  * @return string        The part-user list's HTML code
  */
 function getPartUserList($users, $class = '')
 {
     $links = array();
     foreach ($users as $user) {
         $pageLink = $this->tx_mmforum_pi1->getUserProfileLink($user['uid']);
         $postCount = $user['postCount'] ? ' (' . $user['postCount'] . ')' : '';
         $links[] = '<a href="' . $pageLink . '" class="' . $class . '">' . $user[$this->tx_mmforum_pi1->getUserNameField()] . $postCount . '</a>';
     }
     return implode(', ', $links);
 }