Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
crmentitylinkbuilder.php
1
<?php
2
3
namespace
Bitrix\Sale\Link\EntityLinkBuilder
;
4
5
use
Bitrix\Main\Loader
;
6
use
Bitrix\Sale\Link\EntityLinkBuilder
;
7
8
Loader::requireModule(
'crm'
);
9
13
class
CrmEntityLinkBuilder
implements
EntityLinkBuilder
14
{
15
private \Bitrix\Crm\Service\Sale\EntityLinkBuilder\EntityLinkBuilder $builder;
16
17
public
function
__construct
()
18
{
19
$this->builder = \Bitrix\Crm\Service\Sale\EntityLinkBuilder\EntityLinkBuilder::getInstance();
20
}
21
29
public
function
getEntityDetailUrl
(
int
$orderId): string
30
{
31
return
(
string
)$this->builder->getEntityDetailUrlByOrderId($orderId);
32
}
33
37
public
function
getOrderDetailUrl
(
int
$orderId): string
38
{
39
return
"/shop/orders/details/{$orderId}/"
;
40
}
41
45
public
function
getShipmentDetailsLink
(
int
$orderId,
int
$shipmentId): string
46
{
47
return
(
string
)$this->builder->getShipmentDetailsLink($shipmentId);
48
}
49
53
public
function
getPaymentDetailsLink
(
int
$orderId,
int
$paymentId): string
54
{
55
return
(
string
)$this->builder->getPaymentDetailsLink($paymentId);
56
}
57
}
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Sale\Link\EntityLinkBuilder\CrmEntityLinkBuilder
Definition
crmentitylinkbuilder.php:14
Bitrix\Sale\Link\EntityLinkBuilder\CrmEntityLinkBuilder\__construct
__construct()
Definition
crmentitylinkbuilder.php:17
Bitrix\Sale\Link\EntityLinkBuilder\CrmEntityLinkBuilder\getShipmentDetailsLink
getShipmentDetailsLink(int $orderId, int $shipmentId)
Definition
crmentitylinkbuilder.php:45
Bitrix\Sale\Link\EntityLinkBuilder\CrmEntityLinkBuilder\getOrderDetailUrl
getOrderDetailUrl(int $orderId)
Definition
crmentitylinkbuilder.php:37
Bitrix\Sale\Link\EntityLinkBuilder\CrmEntityLinkBuilder\getPaymentDetailsLink
getPaymentDetailsLink(int $orderId, int $paymentId)
Definition
crmentitylinkbuilder.php:53
Bitrix\Sale\Link\EntityLinkBuilder\CrmEntityLinkBuilder\getEntityDetailUrl
getEntityDetailUrl(int $orderId)
Definition
crmentitylinkbuilder.php:29
Bitrix\Sale\Link\EntityLinkBuilder
Definition
entitylinkbuilder.php:9
Bitrix\Sale\Link\EntityLinkBuilder
Definition
adminentitylinkbuilder.php:3
modules
sale
lib
link
entitylinkbuilder
crmentitylinkbuilder.php
Создано системой
1.10.0