Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
tradebinding.php
1<?php
3
7
8Loc::loadMessages(__FILE__);
9
14class TradeBinding extends Base\TradeBindingRestriction
15{
20 protected static function getOrder(Sale\Internals\Entity $entity)
21 {
22 if ($entity instanceof Sale\Payment)
23 {
25 $collection = $entity->getCollection();
26
28 return $collection->getOrder();
29 }
30 elseif ($entity instanceof Sale\Order)
31 {
33 return $entity;
34 }
35
36 return null;
37 }
38}
static loadMessages($file)
Definition loc.php:64