1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
site.php
См. документацию.
1<?php
2namespace Bitrix\Sale\Services\Company\Restrictions;
3
4use Bitrix\Sale\Order;
5use Bitrix\Sale\Payment;
6use Bitrix\Sale\PaymentCollection;
7use Bitrix\Sale\Services;
8use Bitrix\Sale\Internals;
9use Bitrix\Sale\Shipment;
10use Bitrix\Sale\ShipmentCollection;
11
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}
Определения payment.php:19
static getOrder(Entity $entity)
Определения siterestriction.php:62
$entity
Определения ufield.php:9