Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
orderdiscount.php
1
<?php
2
3
4
namespace
Bitrix\Sale\Helpers\Admin\Blocks
;
5
6
7
use
Bitrix\Sale\Helpers\Admin
;
8
use
Bitrix\Sale\Order
;
9
10
class
OrderDiscount
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
}
Bitrix\Sale\Helpers\Admin\Blocks\OrderDiscount
Definition
orderdiscount.php:11
Bitrix\Sale\Helpers\Admin\Blocks\OrderDiscount\getEditPageUrlParams
static getEditPageUrlParams(array $items=null)
Definition
orderdiscount.php:40
Bitrix\Sale\Helpers\Admin\Blocks\OrderDiscount\getOrderedDiscounts
static getOrderedDiscounts(Order $order, $needRecalculate=true)
Definition
orderdiscount.php:12
Bitrix\Sale\Helpers\Admin\Blocks\OrderDiscount\prepare
static prepare($list)
Definition
orderdiscount.php:18
Bitrix\Sale\Helpers\Admin\OrderEdit\getOrderedDiscounts
static getOrderedDiscounts(Order $order, $needRecalculate=true)
Definition
orderedit.php:1791
Bitrix\Sale\Helpers\Order
Definition
order.php:10
Bitrix\Sale\Helpers\Admin\Blocks
Bitrix\Sale\Helpers\Admin
modules
sale
lib
helpers
admin
blocks
orderdiscount.php
Создано системой
1.10.0