Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс NewToAutomatic

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

 __construct (Base $service)
 
 Init ()
 
 compatibility ($arOrder, $arConfig)
 
 calculate ($profile, $arConfig, $arOrder, $STEP, $TEMP=false)
 

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

static convertNewServiceToOld ($service)
 

Открытые атрибуты

const HANDLER = __FILE__
 

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

 $service = null
 

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

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

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

◆ __construct()

__construct ( Base $service)
Аргументы
Base$service

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

Методы

◆ calculate()

calculate ( $profile,
$arConfig,
$arOrder,
$STEP,
$TEMP = false )
Аргументы
string$profileUseless.
array$arConfigUseless.
array$arOrderOrder details.
int$STEPUseless.
bool | false$TEMPUseless.
Возвращает
array Delivery price.

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

◆ compatibility()

compatibility ( $arOrder,
$arConfig )

Check if this service is compatible.

Аргументы
array$arOrderOrder details.
array$arConfigUseless.
Возвращает
array with profile.

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

◆ convertNewServiceToOld()

static convertNewServiceToOld ( $service)
static

Converts new service fields to old.

Аргументы
array$serviceDelivery service fields from new table.
Возвращает
array Service fields as it was in old API.
Исключения

Bitrix\Main\ArgumentNullException

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

◆ Init()

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

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

Данные класса

◆ $service

$service = null
protected

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

◆ HANDLER

const HANDLER = __FILE__

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