File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/im/lib/integration/ui/entityselector/helper/chat.php
Back
<?php namespace Bitrix\Im\Integration\UI\EntitySelector\Helper; use Bitrix\Im\Model\EO_Chat; class Chat { public static function getSelectorEntityType(EO_Chat $chat): string { $entityType = $chat->getEntityType(); if ($entityType !== '' && $entityType !== null) { return $entityType; } $type = $chat->getType(); switch ($type) { case \Bitrix\Im\Chat::TYPE_GROUP: return 'GROUP'; case \Bitrix\Im\Chat::TYPE_OPEN: return 'CHANNEL'; } return ''; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings