Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
orderanalysis.php
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\Admin\Blocks
;
5
6
7
use
Bitrix\Main\Localization\Loc
;
8
use
Bitrix\Sale\Exchange\Integration\Admin\Factory
;
9
use
Bitrix\Sale\Exchange\Integration\Admin\ModeType
;
10
use
Bitrix\Sale\Exchange\Integration\Admin\Registry
;
11
12
class
OrderAnalysis
extends
\Bitrix\Sale\Helpers\Admin\Blocks\OrderAnalysis
13
{
14
protected
static
function
renderResponsibleLink
($data)
15
{
16
return
'<a class="adm-bus-orderdocs-threelist-block-responsible-name" href="/bitrix/admin/user_edit.php?ID='
.$data[
'RESPONSIBLE_ID'
].
'" target="_blank">'
.htmlspecialcharsbx($data[
'RESPONSIBLE'
]).
'</a>'
;
17
}
18
19
protected
static
function
renderDeliveryRequestView
($data)
20
{
21
$id = $data[
'ID'
];
22
23
$url =
Factory::create
(
ModeType::DEFAULT_TYPE
)
24
->setPageByType(
Registry::SALE_DELIVERY_REQUEST_VIEW
)
25
->setFilterParams(
false
)
26
->setField(
'ID'
, $id)
27
->fill()
28
->build();
29
30
return
'<a href="'
.$url.
'" class="adm-bus-orderdocs-threelist-block-title-link" target="_blank">'
.
31
Loc::getMessage
(
'SALE_OANALYSIS_DELIVERY_REQUEST'
, array(
32
'#REQUEST_ID#'
=> $id
33
)).
'</a>'
;
34
}
35
36
protected
static
function
renderShipmentItemLink
($item)
37
{
38
if
(!isset($item[
'EDIT_PAGE_URL'
]))
39
{
40
return
htmlspecialcharsEx($item[
'NAME'
]);
41
}
42
return
43
'<a class="fwb" href="'
. htmlspecialcharsbx($item[
'EDIT_PAGE_URL'
]) .
'" target="_blank">'
44
. htmlspecialcharsEx($item[
'NAME'
])
45
.
'</a>'
46
;
47
}
48
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Sale\Exchange\Integration\Admin\Blocks\Factory\create
static create($type, $params=[])
Definition
factory.php:11
Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderAnalysis
Definition
orderanalysis.php:13
Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderAnalysis\renderResponsibleLink
static renderResponsibleLink($data)
Definition
orderanalysis.php:14
Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderAnalysis\renderDeliveryRequestView
static renderDeliveryRequestView($data)
Definition
orderanalysis.php:19
Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderAnalysis\renderShipmentItemLink
static renderShipmentItemLink($item)
Definition
orderanalysis.php:36
Bitrix\Sale\Exchange\Integration\Admin\Factory
Definition
factory.php:5
Bitrix\Sale\Exchange\Integration\Admin\ModeType
Definition
modetype.php:5
Bitrix\Sale\Exchange\Integration\Admin\ModeType\DEFAULT_TYPE
const DEFAULT_TYPE
Definition
modetype.php:6
Bitrix\Sale\Exchange\Integration\Admin\Registry
Definition
registry.php:8
Bitrix\Sale\Exchange\Integration\Admin\Registry\SALE_DELIVERY_REQUEST_VIEW
const SALE_DELIVERY_REQUEST_VIEW
Definition
registry.php:20
Bitrix\Sale\Helpers\Admin\Blocks\OrderAnalysis
Definition
orderanalysis.php:20
Bitrix\Sale\Exchange\Integration\Admin\Blocks
Definition
factory.php:4
modules
sale
lib
exchange
integration
admin
blocks
orderanalysis.php
Создано системой
1.10.0