3namespace Bitrix\Calendar\Core\Role;
5use Bitrix\Calendar\Core\Base\BaseException;
6use Bitrix\Calendar\Core\Event\Tools\Dictionary;
7use Bitrix\Main\UserTable;
21 case Dictionary::CALENDAR_TYPE[
'open_event']:
29 throw new BaseException(
'you should send type from Dictionary');
56 return new Role($roleEntity);
65 return new Role($company);
70 $group =
new Group(
'');
72 return new Role($group);
114 return UserTable::query()
115 ->addFilter(
'=ID', $id)
116 ->setSelect([
'NAME',
'LAST_NAME',
'ID',
'NOTIFICATION_LANGUAGE_ID',
'EMAIL',
'ACTIVE',
'EXTERNAL_AUTH_ID'])
130 ->setId(
$user->getId())
131 ->setLanguageId(
$user->get(
'NOTIFICATION_LANGUAGE_ID') ?? LANGUAGE_ID)
static getCompanyRole(int $id)
static getGroupRole(int $id)
static getUserRole(int $id)
static getAttendeeRole(int $id)
static getRole(int $id, string $type)
static getUserObject(int $id)
static createUserRoleEntity(Main\EO_User $user)
setLastName(string $lastName=null)