Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
site.php
1
<?php
2
namespace
Bitrix\Sale\Services\Company\Restrictions
;
3
4
use
Bitrix\Sale\Order
;
5
use
Bitrix\Sale\Payment
;
6
use
Bitrix\Sale\PaymentCollection
;
7
use Bitrix\Sale\Services;
8
use
Bitrix\Sale\Internals
;
9
use
Bitrix\Sale\Shipment
;
10
use
Bitrix\Sale\ShipmentCollection
;
11
16
class
Site
extends
Services\Base\SiteRestriction
17
{
22
protected
static
function
getOrder
(Internals\
Entity
$entity)
23
{
24
if
(!($entity instanceof
Payment
) && !($entity instanceof
Shipment
) && !($entity instanceof
Order
))
25
{
26
return
null
;
27
}
28
29
if
($entity instanceof
Order
)
30
{
31
return
$entity;
32
}
33
else
34
{
36
$collection = $entity->getCollection();
37
39
return
$collection->
getOrder
();
40
}
41
}
42
}
Bitrix\Catalog\Model\Entity
Definition
entity.php:12
Bitrix\Main\Context\Site
Definition
site.php:14
Bitrix\Sale\Helpers\Order
Definition
order.php:10
Bitrix\Sale\PaymentCollection
Definition
paymentcollection.php:18
Bitrix\Sale\Payment
Definition
payment.php:19
Bitrix\Sale\Services\Base\SiteRestriction
Definition
siterestriction.php:17
Bitrix\Sale\Services\Base\SiteRestriction\getOrder
static getOrder(Entity $entity)
Definition
siterestriction.php:62
Bitrix\Sale\ShipmentCollection
Definition
shipmentcollection.php:20
Bitrix\Sale\Shipment
Definition
shipment.php:21
Bitrix\Sale\Internals
Definition
accountnumber.php:3
Bitrix\Sale\Services\Company\Restrictions
Definition
currency.php:2
modules
sale
lib
services
company
restrictions
site.php
Создано системой
1.10.0