chat::Package proc get_user_name (public)
chat::Package get_user_name -user_id user_id
Defined in /var/www/openacs.org/packages/chat/tcl/xotcl-chat-procs.tcl
Retrieves the username supposed to be displayed in the chat UI: aither the screen name or the person name when the former is missing.
- Switches:
- -user_id (required)
- Returns:
- a username
- Testcases:
- No testcase defined.
Source code: set name [acs_user::get_user_info -user_id $user_id -element screen_name] if {$name eq ""} { set name [person::name -person_id $user_id] } return $nameXQL Not present: Generic, PostgreSQL, Oracle