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;
    }
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;
    }
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 ; }
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.
Convert a user object to a string suitable for displaying as an option in the list box .