Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
orderdiscount.php
1<?php
2
3
5
6
9
11{
12 static public function getOrderedDiscounts(Order $order, $needRecalculate = true)
13 {
14 return static::prepare(
15 Admin\OrderEdit::getOrderedDiscounts($order, $needRecalculate));
16 }
17
18 static protected function prepare($list)
19 {
20 if(is_array($list) && count($list)>0)
21 {
22 if(isset($list['DISCOUNT_LIST']))
23 {
24 foreach ($list['DISCOUNT_LIST'] as $k => $item)
25 {
26 if(isset($item['EDIT_PAGE_URL']))
27 {
28 $params = static::getEditPageUrlParams();
29 if(is_null($params) == false)
30 {
31 $list['DISCOUNT_LIST'][$k]['EDIT_PAGE_URL_PARAMS'] = $params;
32 }
33 }
34 }
35 }
36 }
37 return $list;
38 }
39
40 static public function getEditPageUrlParams(array $items = null)
41 {
42 return null;
43 }
44}
static getOrderedDiscounts(Order $order, $needRecalculate=true)
static getOrderedDiscounts(Order $order, $needRecalculate=true)