Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getUserName($id)
- {
- $result = array();
- $id = (is_array($id) ? implode('|', $id) : $id);
- $r = CUser::GetList(($by="id"), ($order="asc"), array('ID' => $id), array('FIELDS' => array('ID', 'NAME', 'SECOND_NAME', 'LAST_NAME', 'LOGIN')));
- while ($u = $r->Fetch())
- {
- $result[$u['ID']] = CUser::FormatName(CSite::GetNameFormat(true), $u, true, true);
- }
- return count($result) > 0 ? $result : false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement