19 ->whereIn(
'ID', array_values($ids))
36 $byIdMap->add(
$userId, $this->formatUserData($row));
58 id: (
int)$dbUserFields[
'ID'],
59 name: $this->formatUserName($dbUserFields),
60 image: $this->getUserPhotoUrl($dbUserFields[
'PERSONAL_PHOTO']),
61 workPosition: $dbUserFields[
'WORK_POSITION'],
65 private function formatUserName(
array $userFields): string
67 return \CUser::FormatName(
68 \CSite::GetNameFormat(
false),
74 private function getUserPhotoUrl(?
string $value): ?string
81 $fileTmp = \CFile::resizeImageGet(
83 [
'width' => 64,
'height' => 64],
87 if ($fileTmp !==
null && isset($fileTmp[
'src']))
89 return $fileTmp[
'src'];
const BX_RESIZE_IMAGE_EXACT