1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
UserAvatar.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Message\Param;
4
5use Bitrix\Im\V2\Message\Param;
6
7class UserAvatar extends Param
8{
12 public function getValue(): string
13 {
14 if ((int)$this->value > 0)
15 {
16 return \CIMChat::getAvatarImage((int)$this->value, 200, false);
17 }
18
19 return '';
20 }
21
25 public function toPullFormat(): string
26 {
27 return $this->getValue();
28 }
29}