13 protected static array $relations = [];
28 'userId' => $currentUserId,
47 if (!isset(self::$relations[
$key]))
49 self::$relations[
$key] = UserToGroupTable::query()
50 ->setSelect([
'ID',
'ROLE',
'USER_ID',
'GROUP_ID',
'INITIATED_BY_TYPE',
'INITIATED_BY_USER_ID',
'AUTO_MEMBER'])
51 ->where(
'GROUP_ID', $groupId)
56 return self::$relations[
$key];
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
static wakeUpObject(null|array|Arrayable $data)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
getEntityByModel(GroupModel $item)
getAccessManager(GroupModel $item, ?int $targetUserId, ?int $currentUserId)
getRelation(int $groupId, ?int $userId)
if(empty($signedUserToken)) $key