Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
helper.php
1<?php
2namespace Bitrix\Im;
3
4class Helper
5{
6 public static function getOnlineIntranetUsers()
7 {
8 $users = \Bitrix\Main\UserTable::getList([
9 'select' => ['ID'],
10 'filter' => [
11 '=IS_REAL_USER' => 'Y',
12 '=IS_ONLINE' => 'Y',
13 '!=UF_DEPARTMENT' => false
14 ]
15 ])->fetchAll();
16
17 return array_map(function($item) { return $item['ID']; }, $users);
18 }
19}
20
21
static getOnlineIntranetUsers()
Definition helper.php:6