original_string: public function output_user($user) {
          $out = fullname($user, $this->viewfullnames);
          if ($this->extrafields) {
              $displayfields = array();
              foreach ($this->extrafields as $field) {
                  $displayfields[] = $user->{$field};
              }
              $out .= ' (' . implode(', ', $displayfields) . ')';
          }
          return $out;
      }
code: public function output_user($user) {
          $out = fullname($user, $this->viewfullnames);
          if ($this->extrafields) {
              $displayfields = array();
              foreach ($this->extrafields as $field) {
                  $displayfields[] = $user->{$field};
              }
              $out .= ' (' . implode(', ', $displayfields) . ')';
          }
          return $out;
      }
code_tokens: public function output_user ( $ user ) { $ out = fullname ( $ user , $ this -> viewfullnames ) ; if ( $ this -> extrafields ) { $ displayfields = array ( ) ; foreach ( $ this -> extrafields as $ field ) { $ displayfields [ ] = $ user -> { $ field } ; } $ out .= ' (' . implode ( ', ' , $ displayfields ) . ')' ; } return $ out ; }
docstring: Convert a user object to a string suitable for displaying as an option in the list box.
  
  @param object $user the user to display.
  @return string a string representation of the user.
docstring_tokens: Convert a user object to a string suitable for displaying as an option in the list box .