1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
usergroupservice.php
См. документацию.
1<?php
2
3namespace Bitrix\Calendar\Integration\SocialNetwork;
4
5use Bitrix\Main\Loader;
6use Bitrix\Socialnetwork\Internals\Registry\UserRegistry;
7
8final class UserGroupService
9{
10 private static ?self $instance;
11
12 public static function getInstance(): self
13 {
14 self::$instance ??= new self();
15
16 return self::$instance;
17 }
18
24 public function getUserGroups(int $userId): array
25 {
26 if (!$this->isAvailable())
27 {
28 return [];
29 }
30
31 return UserRegistry::getInstance($userId)->getUserGroups();
32 }
33
34 private function isAvailable(): bool
35 {
36 return Loader::includeModule('socialnetwork');
37 }
38
39 private function __construct()
40 {
41 }
42}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804