Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
basecontext.php
1<?php
3
5
6abstract class BaseContext
7{
8 const GUEST_USER_ID = 0;
9
11 protected $userId;
13 protected $userGroups = array();
14
15 protected $userGroupsHash = '';
16
20 public function getUserId()
21 {
22 return $this->userId;
23 }
24
28 public function getUserGroups()
29 {
30 return $this->userGroups;
31 }
32
33 public function getUserGroupsHash()
34 {
36 }
37
38 protected function setUserGroups(array $userGroups)
39 {
40 Main\Type\Collection::normalizeArrayValuesByInt($userGroups, true);
41 $this->userGroups = $userGroups;
42 $this->userGroupsHash = md5(serialize($this->userGroups));
43 }
44}