Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
refreshfactory.php
1
<?php
2
3
namespace
Bitrix\Sale\Basket
;
4
5
class
RefreshFactory
6
{
7
const
TYPE_FULL
=
'full'
;
8
const
TYPE_SINGLE
=
'single'
;
9
10
public
static
function
create
($type =
''
, $params =
null
)
11
{
12
switch
($type)
13
{
14
case
self::TYPE_SINGLE
:
15
$strategy =
new
SingleRefreshStrategy
($params);
16
break
;
17
18
case
self::TYPE_FULL
:
19
default
:
20
$strategy =
new
FullRefreshStrategy
($params);
21
}
22
23
return
$strategy;
24
}
25
26
public
static
function
createSingle
($basketItemCode)
27
{
28
return
static::create(self::TYPE_SINGLE, array(
29
'BASKET_ITEM_CODE'
=> $basketItemCode
30
));
31
}
32
}
Bitrix\Sale\Basket\FullRefreshStrategy
Definition
fullrefreshstrategy.php:8
Bitrix\Sale\Basket\RefreshFactory
Definition
refreshfactory.php:6
Bitrix\Sale\Basket\RefreshFactory\createSingle
static createSingle($basketItemCode)
Definition
refreshfactory.php:26
Bitrix\Sale\Basket\RefreshFactory\TYPE_SINGLE
const TYPE_SINGLE
Definition
refreshfactory.php:8
Bitrix\Sale\Basket\RefreshFactory\TYPE_FULL
const TYPE_FULL
Definition
refreshfactory.php:7
Bitrix\Sale\Basket\RefreshFactory\create
static create($type='', $params=null)
Definition
refreshfactory.php:10
Bitrix\Sale\Basket\SingleRefreshStrategy
Definition
singlerefreshstrategy.php:10
Bitrix\Sale\Basket
Definition
baserefreshstrategy.php:3
modules
sale
lib
basket
refreshfactory.php
Создано системой
1.10.0