Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
base.php
1
<?php
2
3
namespace
Bitrix\Sale\Delivery\Tracking
;
4
5
use \Bitrix\Sale\Delivery\Services;
6
use
Bitrix\Sale\Result
;
7
14
abstract
class
Base
15
{
17
protected
$params
;
19
protected
$deliveryService
;
20
25
public
function
__construct
(array $params, Services\
Base
$deliveryService)
26
{
27
$this->params = $params;
28
$this->deliveryService = $deliveryService;
29
}
30
35
abstract
public
function
getClassTitle
();
36
41
abstract
public
function
getClassDescription
();
42
47
public
function
getStatus
($trackingNumber)
48
{
49
return
new
StatusResult
();
50
}
51
56
public
function
getStatusShipment
($shipmentData)
57
{
58
return
$this->
getStatus
($shipmentData[
'TRACKING_NUMBER'
]);
59
}
60
65
public
function
getStatuses
(array $trackingNumbers)
66
{
67
return
new
Result
();
68
}
69
74
public
function
getStatusesShipment
(array $shipmentsData)
75
{
76
$trackingNumbers = array_keys($shipmentsData);
77
return
$this->
getStatuses
($trackingNumbers);
78
}
79
84
abstract
public
function
getParamsStructure
();
85
92
public
function
getEditHtml
($paramKey, $inputName)
93
{
94
$paramsStructure = $this->
getParamsStructure
();
95
96
return \Bitrix\Sale\Internals\Input\Manager::getEditHtml(
97
$inputName,
98
$paramsStructure[$paramKey],
99
$this->params[$paramKey] ??
null
100
);
101
}
102
107
public
function
getTrackingUrl
($trackingNumber =
''
)
108
{
109
return
''
;
110
}
111
}
Bitrix\Main\DB\Result
Definition
result.php:19
Bitrix\Sale\Delivery\ExtraServices\Base
Definition
base.php:10
Bitrix\Sale\Delivery\Tracking\Base\$deliveryService
$deliveryService
Definition
base.php:19
Bitrix\Sale\Delivery\Tracking\Base\getStatusShipment
getStatusShipment($shipmentData)
Definition
base.php:56
Bitrix\Sale\Delivery\Tracking\Base\getStatusesShipment
getStatusesShipment(array $shipmentsData)
Definition
base.php:74
Bitrix\Sale\Delivery\Tracking\Base\getClassDescription
getClassDescription()
Bitrix\Sale\Delivery\Tracking\Base\__construct
__construct(array $params, Services\Base $deliveryService)
Definition
base.php:25
Bitrix\Sale\Delivery\Tracking\Base\getParamsStructure
getParamsStructure()
Bitrix\Sale\Delivery\Tracking\Base\getEditHtml
getEditHtml($paramKey, $inputName)
Definition
base.php:92
Bitrix\Sale\Delivery\Tracking\Base\getClassTitle
getClassTitle()
Bitrix\Sale\Delivery\Tracking\Base\getTrackingUrl
getTrackingUrl($trackingNumber='')
Definition
base.php:107
Bitrix\Sale\Delivery\Tracking\Base\getStatuses
getStatuses(array $trackingNumbers)
Definition
base.php:65
Bitrix\Sale\Delivery\Tracking\Base\getStatus
getStatus($trackingNumber)
Definition
base.php:47
Bitrix\Sale\Delivery\Tracking\Base\$params
$params
Definition
base.php:17
Bitrix\Sale\Delivery\Tracking\StatusResult
Definition
manager.php:45
Bitrix\Sale\Delivery\Tracking
Definition
base.php:3
modules
sale
lib
delivery
tracking
base.php
Создано системой
1.10.0