Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
calculationresult.php
1
<?php
2
namespace
Bitrix\Sale\Delivery
;
3
4
use
Bitrix\Sale
;
5
11
class
CalculationResult
extends
Sale\ResultSerializable
12
{
13
const
PERIOD_TYPE_MIN
=
"MIN"
;
14
const
PERIOD_TYPE_HOUR
=
"H"
;
15
const
PERIOD_TYPE_DAY
=
"D"
;
16
const
PERIOD_TYPE_MONTH
=
"M"
;
17
19
protected
$description
=
""
;
21
protected
$periodDescription
=
""
;
23
protected
$periodFrom
=
null
;
25
protected
$periodTo
=
null
;
27
protected
$periodType
=
self::PERIOD_TYPE_DAY
;
29
protected
$nextStep
=
false
;
31
protected
$packsCount
= 0;
33
protected
$extraServicesPrice
= 0;
35
protected
$deliveryPrice
= 0;
37
protected
$tmpData
=
""
;
38
42
public
function
__construct
() { parent::__construct(); }
43
45
public
function
getDeliveryPrice
() {
return
$this->deliveryPrice
; }
46
48
public
function
setDeliveryPrice
($price) { $this->deliveryPrice = $price; }
49
51
public
function
getExtraServicesPrice
() {
return
$this->extraServicesPrice
; }
52
54
public
function
setExtraServicesPrice
($price) { $this->extraServicesPrice = $price; }
55
57
public
function
getPrice
() {
return
$this->deliveryPrice +
$this->extraServicesPrice
; }
58
60
public
function
setDescription
(
$description
) { $this->description =
$description
; }
61
63
public
function
getDescription
() {
return
$this->description
; }
64
66
public
function
setPeriodDescription
(
$description
) { $this->periodDescription =
$description
; }
67
69
public
function
getPeriodDescription
() {
return
$this->periodDescription
; }
70
74
public
function
setAsNextStep
() { $this->nextStep =
true
; }
75
77
public
function
isNextStep
() {
return
$this->nextStep
; }
78
80
public
function
getPacksCount
() {
return
$this->packsCount
; }
81
83
public
function
setPacksCount
(
$count
) { $this->packsCount =
$count
; }
84
86
public
function
getTmpData
() {
return
$this->tmpData
; }
87
89
public
function
setTmpData
($data) { $this->tmpData = $data; }
90
92
public
function
getPeriodFrom
() {
return
$this->periodFrom
; }
93
95
public
function
setPeriodFrom
(
$periodFrom
) { $this->periodFrom = intval(
$periodFrom
); }
96
98
public
function
getPeriodTo
() {
return
$this->periodTo
; }
99
101
public
function
setPeriodTo
(
$periodTo
) { $this->periodTo = intval(
$periodTo
); }
102
104
public
function
getPeriodType
() {
return
$this->periodType
; }
105
107
public
function
setPeriodType
(
$periodType
)
108
{
109
if
(in_array(
$periodType
, array(self::PERIOD_TYPE_DAY, self::PERIOD_TYPE_HOUR, self::PERIOD_TYPE_MIN, self::PERIOD_TYPE_MONTH)))
110
$this->periodType =
$periodType
;
111
}
112
}
Bitrix\Main\DB\Result\$count
$count
Definition
result.php:37
Bitrix\Sale\Delivery\CalculationResult
Definition
calculationresult.php:12
Bitrix\Sale\Delivery\CalculationResult\$periodFrom
$periodFrom
Definition
calculationresult.php:23
Bitrix\Sale\Delivery\CalculationResult\__construct
__construct()
Definition
calculationresult.php:42
Bitrix\Sale\Delivery\CalculationResult\setPeriodTo
setPeriodTo($periodTo)
Definition
calculationresult.php:101
Bitrix\Sale\Delivery\CalculationResult\getTmpData
getTmpData()
Definition
calculationresult.php:86
Bitrix\Sale\Delivery\CalculationResult\$periodType
$periodType
Definition
calculationresult.php:27
Bitrix\Sale\Delivery\CalculationResult\getDescription
getDescription()
Definition
calculationresult.php:63
Bitrix\Sale\Delivery\CalculationResult\setDescription
setDescription($description)
Definition
calculationresult.php:60
Bitrix\Sale\Delivery\CalculationResult\getPrice
getPrice()
Definition
calculationresult.php:57
Bitrix\Sale\Delivery\CalculationResult\isNextStep
isNextStep()
Definition
calculationresult.php:77
Bitrix\Sale\Delivery\CalculationResult\getPeriodTo
getPeriodTo()
Definition
calculationresult.php:98
Bitrix\Sale\Delivery\CalculationResult\$deliveryPrice
$deliveryPrice
Definition
calculationresult.php:35
Bitrix\Sale\Delivery\CalculationResult\setDeliveryPrice
setDeliveryPrice($price)
Definition
calculationresult.php:48
Bitrix\Sale\Delivery\CalculationResult\getExtraServicesPrice
getExtraServicesPrice()
Definition
calculationresult.php:51
Bitrix\Sale\Delivery\CalculationResult\setTmpData
setTmpData($data)
Definition
calculationresult.php:89
Bitrix\Sale\Delivery\CalculationResult\PERIOD_TYPE_DAY
const PERIOD_TYPE_DAY
Definition
calculationresult.php:15
Bitrix\Sale\Delivery\CalculationResult\PERIOD_TYPE_MIN
const PERIOD_TYPE_MIN
Definition
calculationresult.php:13
Bitrix\Sale\Delivery\CalculationResult\setPeriodType
setPeriodType($periodType)
Definition
calculationresult.php:107
Bitrix\Sale\Delivery\CalculationResult\$extraServicesPrice
$extraServicesPrice
Definition
calculationresult.php:33
Bitrix\Sale\Delivery\CalculationResult\PERIOD_TYPE_MONTH
const PERIOD_TYPE_MONTH
Definition
calculationresult.php:16
Bitrix\Sale\Delivery\CalculationResult\getPeriodFrom
getPeriodFrom()
Definition
calculationresult.php:92
Bitrix\Sale\Delivery\CalculationResult\getDeliveryPrice
getDeliveryPrice()
Definition
calculationresult.php:45
Bitrix\Sale\Delivery\CalculationResult\$description
$description
Definition
calculationresult.php:19
Bitrix\Sale\Delivery\CalculationResult\getPacksCount
getPacksCount()
Definition
calculationresult.php:80
Bitrix\Sale\Delivery\CalculationResult\PERIOD_TYPE_HOUR
const PERIOD_TYPE_HOUR
Definition
calculationresult.php:14
Bitrix\Sale\Delivery\CalculationResult\$packsCount
$packsCount
Definition
calculationresult.php:31
Bitrix\Sale\Delivery\CalculationResult\setAsNextStep
setAsNextStep()
Definition
calculationresult.php:74
Bitrix\Sale\Delivery\CalculationResult\setExtraServicesPrice
setExtraServicesPrice($price)
Definition
calculationresult.php:54
Bitrix\Sale\Delivery\CalculationResult\$nextStep
$nextStep
Definition
calculationresult.php:29
Bitrix\Sale\Delivery\CalculationResult\$periodTo
$periodTo
Definition
calculationresult.php:25
Bitrix\Sale\Delivery\CalculationResult\getPeriodDescription
getPeriodDescription()
Definition
calculationresult.php:69
Bitrix\Sale\Delivery\CalculationResult\$periodDescription
$periodDescription
Definition
calculationresult.php:21
Bitrix\Sale\Delivery\CalculationResult\setPeriodFrom
setPeriodFrom($periodFrom)
Definition
calculationresult.php:95
Bitrix\Sale\Delivery\CalculationResult\setPacksCount
setPacksCount($count)
Definition
calculationresult.php:83
Bitrix\Sale\Delivery\CalculationResult\getPeriodType
getPeriodType()
Definition
calculationresult.php:104
Bitrix\Sale\Delivery\CalculationResult\setPeriodDescription
setPeriodDescription($description)
Definition
calculationresult.php:66
Bitrix\Sale\Delivery\CalculationResult\$tmpData
$tmpData
Definition
calculationresult.php:37
Bitrix\Sale\ResultSerializable
Definition
resultserializable.php:18
Bitrix\Sale\Delivery
Definition
calculationresult.php:2
Bitrix\Sale
modules
sale
lib
delivery
calculationresult.php
Создано системой
1.10.0