1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
pay_system_tarif.php
См. документацию.
1<?
6abstract class CSalePaySystemTarif
7{
8 private static $arItems = array();
14 abstract public static function getPrice(&$arPaySystem, $orderPrice, $deliveryPrice, $buyerLocationId);
15
21 abstract public static function getStructure($psId, $persId);
22
28 abstract public static function checkCompability(&$arOrder, $orderPrice, $deliveryPrice, $buyerLocationId);
29
30 public static function extractFromField($strFieldContent)
31 {
32 return unserialize($strFieldContent, ['allowed_classes' => false]);
33 }
34
35 public static function prepareToField($arTarif)
36 {
37 return serialize($arTarif);
38 }
39
45 protected static function getValuesByPSAId($psaId)
46 {
47 $arResult = array();
48
49 if(isset(self::$arItems[$psaId]))
50 {
51 $arResult = self::$arItems[$psaId];
52 }
53 else
54 {
55 $psa = CSalePaySystemAction::GetByID($psaId);
56
57 if(is_array($psa) && isset($psa['TARIF']) && is_array($psa['TARIF']))
58 $arResult = self::$arItems[$psaId] = unserialize($psa['TARIF'], ['allowed_classes' => false]);
59 }
60
61 return $arResult;
62 }
63}
64?>
$arResult
Определения generate_coupon.php:16
static GetByID($id)
Определения pay_system_action.php:14
static getStructure($psId, $persId)
static checkCompability(&$arOrder, $orderPrice, $deliveryPrice, $buyerLocationId)
static getPrice(&$arPaySystem, $orderPrice, $deliveryPrice, $buyerLocationId)
static prepareToField($arTarif)
Определения pay_system_tarif.php:35
static getValuesByPSAId($psaId)
Определения pay_system_tarif.php:45
static extractFromField($strFieldContent)
Определения pay_system_tarif.php:30
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804