1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Manager

Открытые члены

 getTrackingUrl ($deliveryId, $trackingNumber='')
 getStatusByShipmentId ($shipmentId, $trackingNumber='')
 getTrackingObjectByDeliveryId ($deliveryId)
 getClassNames ()
 updateShipment ($shipmentId, StatusResult $params)
 createClone (\SplObjectStorage $cloneEntity)
 isClone ()

Открытые статические члены

static getInstance ()
static getStatusName ($status)
static getStatusesList ()
static startRefreshingStatuses ()

Защищенные члены

 __clone ()
 __construct ()
 getStatus ($shipment)
 createTrackingObject ($className, array $params, Services\Base $deliveryService)
 updateStatuses ()
 sendOnStatusesChangedEvent (array $params)
 initClassNames ()

Защищенные статические члены

static getMappedStatuses ()
static getCheckPeriod ()

Защищенные данные

 $isClone = false

Статические защищенные данные

static $instance = null
static $classNames = null
static $activeStatusLiveTime = 5184000

Подробное описание

См. определение в файле manager.php строка 86

Конструктор(ы)

◆ __construct()

__construct ( )
protected

См. определение в файле manager.php строка 98

Методы

◆ __clone()

__clone ( )
protected

См. определение в файле manager.php строка 96

◆ createClone()

createClone ( \SplObjectStorage $cloneEntity)

См. определение в файле manager.php строка 861

◆ createTrackingObject()

createTrackingObject ( $className,
array $params,
Services\Base $deliveryService )
protected
Аргументы
string$classNameClass name delivered from \Bitrix\Sale\Delivery\Tracking\Base
array$params
Services\Base$deliveryService
Возвращает
Base
Исключения
ArgumentNullException
SystemException

См. определение в файле manager.php строка 310

◆ getCheckPeriod()

getCheckPeriod ( )
staticprotected

См. определение в файле manager.php строка 242

◆ getClassNames()

getClassNames ( )

Returns list of known class names

Возвращает
array

См. определение в файле manager.php строка 809

◆ getInstance()

getInstance ( )
static
Возвращает
static

См. определение в файле manager.php строка 106

◆ getMappedStatuses()

getMappedStatuses ( )
staticprotected

Returns mapping tracking statuses to shipment statuses.

Возвращает
array
Исключения
ArgumentNullException

См. определение в файле manager.php строка 232

◆ getStatus()

getStatus ( $shipment)
protected
Аргументы
arrayshipment
Возвращает
StatusResult
Исключения
ArgumentNullException
SystemException

См. определение в файле manager.php строка 253

◆ getStatusByShipmentId()

getStatusByShipmentId ( $shipmentId,
$trackingNumber = '' )
Аргументы
int$shipmentId
string$trackingNumberif changed
Возвращает
StatusResult
Исключения
ArgumentNullException
SystemException

Bitrix\Main\ArgumentException

См. определение в файле manager.php строка 173

◆ getStatusesList()

getStatusesList ( )
static
Возвращает
array

См. определение в файле manager.php строка 132

◆ getStatusName()

getStatusName ( $status)
static
Аргументы
int$status
Возвращает
string

См. определение в файле manager.php строка 118

◆ getTrackingObjectByDeliveryId()

getTrackingObjectByDeliveryId ( $deliveryId)
Аргументы
$deliveryId
Возвращает
Base|null
Исключения
ArgumentNullException
SystemException

Bitrix\Main\ArgumentException

См. определение в файле manager.php строка 276

◆ getTrackingUrl()

getTrackingUrl ( $deliveryId,
$trackingNumber = '' )
Аргументы
int$deliveryIdDelivery service id.
string$trackingNumberTrcking number.
Возвращает
string Url were we can see tracking information.
Исключения
ArgumentNullException

См. определение в файле manager.php строка 152

◆ initClassNames()

initClassNames ( )
protected
Исключения
SystemException

Bitrix\Main\LoaderException

For custom handlers use (for example in init.php) paste code like this:

function addCustomDeliveryTrackingServices() { return new \Bitrix\Main\EventResult( \Bitrix\Main\EventResult::SUCCESS, array( '\Custom\Name\Space\TrackingHandlerClass' => '/custom/path/tracking_handler_class.php' ), 'sale' ); }

$eventManager->addEventHandler('sale', 'onSaleDeliveryTrackingClassNamesBuildList', 'addCustomDeliveryTrackingServices');

См. определение в файле manager.php строка 765

◆ isClone()

isClone ( )
Возвращает
bool

См. определение в файле manager.php строка 882

◆ sendOnStatusesChangedEvent()

sendOnStatusesChangedEvent ( array $params)
protected
Аргументы
StatusChangeEventParam[]$params

См. определение в файле manager.php строка 739

◆ startRefreshingStatuses()

startRefreshingStatuses ( )
static

Starts statuses refreshing

См. определение в файле manager.php строка 327

◆ updateShipment()

updateShipment ( $shipmentId,
StatusResult $params )
Аргументы
int$shipmentId
StatusResult$params
Возвращает
UpdateResult
Исключения
ArgumentNullException

Exception

См. определение в файле manager.php строка 821

◆ updateStatuses()

updateStatuses ( )
protected
Возвращает
Result todo: timelimit

См. определение в файле manager.php строка 372

Поля

◆ $activeStatusLiveTime

$activeStatusLiveTime = 5184000
staticprotected

См. определение в файле manager.php строка 91

◆ $classNames

$classNames = null
staticprotected

См. определение в файле manager.php строка 89

◆ $instance

$instance = null
staticprotected

См. определение в файле manager.php строка 88

◆ $isClone

$isClone = false
protected

См. определение в файле manager.php строка 94


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/sale/lib/delivery/tracking/manager.php