1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
MobileUserProvider.php
См. документацию.
1<?php
2
4
6use Bitrix\Mobile\Provider\UserRepository;
9
11{
12 public function isAvailable(): bool
13 {
14 return Loader::includeModule('mobile')
15 && class_exists('\Bitrix\Mobile\Provider\UserRepository')
16 && method_exists(UserRepository::class, 'getByIds')
17 ;
18 }
19
25 public function getByUserIds(array $ids): UserDtoByIdMap
26 {
27 $map = new UserDtoByIdMap();
28 if (!$this->isAvailable())
29 {
30 return $map;
31 }
32
33 $users = UserRepository::getByIds($ids);
34 foreach ($users as $user)
35 {
36 $map->add($user->id, $user);
37 }
38
39 return $map;
40 }
41}
Определения loader.php:13
static includeModule($moduleName)
Определения loader.php:67
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$map
Определения config.php:5
$user
Определения mysql_to_pgsql.php:33