Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
basecontext.php
1
<?php
2
namespace
Bitrix\Sale\Discount\Context
;
3
4
use
Bitrix\Main
;
5
6
abstract
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
{
35
return
$this->userGroupsHash
;
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
}
Bitrix\Sale\Discount\Context\BaseContext
Definition
basecontext.php:7
Bitrix\Sale\Discount\Context\BaseContext\getUserId
getUserId()
Definition
basecontext.php:20
Bitrix\Sale\Discount\Context\BaseContext\setUserGroups
setUserGroups(array $userGroups)
Definition
basecontext.php:38
Bitrix\Sale\Discount\Context\BaseContext\getUserGroupsHash
getUserGroupsHash()
Definition
basecontext.php:33
Bitrix\Sale\Discount\Context\BaseContext\getUserGroups
getUserGroups()
Definition
basecontext.php:28
Bitrix\Sale\Discount\Context\BaseContext\$userId
$userId
Definition
basecontext.php:11
Bitrix\Sale\Discount\Context\BaseContext\GUEST_USER_ID
const GUEST_USER_ID
Definition
basecontext.php:8
Bitrix\Sale\Discount\Context\BaseContext\$userGroupsHash
$userGroupsHash
Definition
basecontext.php:15
Bitrix\Sale\Discount\Context\BaseContext\$userGroups
$userGroups
Definition
basecontext.php:13
Bitrix\Main
Bitrix\Sale\Discount\Context
Definition
basecontext.php:2
modules
sale
lib
discount
context
basecontext.php
Создано системой
1.10.0