Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
refreshfactory.php
1<?php
2
3namespace Bitrix\Sale\Basket;
4
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 {
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}
static createSingle($basketItemCode)
static create($type='', $params=null)