1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
chat.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Controller;
4
5
use Bitrix\Im;
6
use Bitrix\Main\Loader;
7
8
class
Chat
extends
Base
9
{
10
public
function
createAction
(
array
$userIds): int
11
{
12
if
(!Loader::includeModule(
'im'
))
13
{
14
return
0;
15
}
16
17
$result
=
Im\V2\Chat\ChatFactory::getInstance
()->addChat([
18
'TYPE'
=>
Im
\
V2
\Chat::IM_TYPE_CHAT,
19
'SKIP_ADD_MESSAGE'
=>
'Y'
,
20
'AUTHOR_ID'
=> $this->userId,
21
'USERS'
=> $userIds,
22
]);
23
24
return
$result
->getData()[
'RESULT'
][
'CHAT_ID'
];
25
}
26
}
Bitrix\Im\V2\Chat\ChatFactory\getInstance
static getInstance()
Определения
ChatFactory.php:37
Bitrix\Main\Engine\ActionFilter\Base
Определения
base.php:15
Bitrix\Socialnetwork\Controller\Chat\createAction
createAction(array $userIds)
Определения
chat.php:10
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$result
$result
Определения
get_property_values.php:14
Bitrix\Im\V2\Chat
Bitrix\Im\V2
Определения
ActionUuid.php:3
Bitrix\Im
bitrix
modules
socialnetwork
lib
controller
chat.php
Создано системой
1.14.0