10 foreach ($memberEOsCollection as $memberEO)
12 if (!empty($memberEO->getUser()))
25 ->setLastName($userEO->getLastName())
26 ->setId($userEO->getId())
27 ->setAvatar($this->getFileSrc($fileEO))
31 private function getFileSrc($fileEO): string
38 if ($fileEO->getWidth() <= 100 || $fileEO->getHeight() <= 100)
40 return \CFile::GetFileSRC($fileEO->collectValues());
43 $file = \CFile::resizeImageGet(
44 $fileEO->collectValues(),
45 [
'width' => 100,
'height' => 100],
46 BX_RESIZE_IMAGE_EXACT,
50 return !empty($file[
'src']) ? $file[
'src'] :
'';
56 'id' => $member->
getId(),