Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
byusergroup.php
1
<?php
2
namespace
Bitrix\Sale\Delivery\Restrictions
;
3
4
use
Bitrix\Sale
;
5
10
class
ByUserGroup
extends
\Bitrix\Sale\Services\Base\UserGroupRestriction
11
{
12
protected
static
function
getEntityTypeId
()
13
{
14
return \Bitrix\Sale\Internals\UserGroupRestrictionTable::ENTITY_TYPE_SHIPMENT;
15
}
16
21
protected
static
function
getOrder
(
Sale
\Internals\
Entity
$entity)
22
{
23
if
($entity instanceof
Sale
\
Shipment
)
24
{
26
$collection = $entity->getCollection();
27
29
return
$collection->getOrder();
30
}
31
elseif ($entity instanceof
Sale
\
Order
)
32
{
34
return
$entity;
35
}
36
37
return
null
;
38
}
39
}
Bitrix\Catalog\Model\Entity
Definition
entity.php:12
Bitrix\Sale\Delivery\Restrictions\ByUserGroup
Definition
byusergroup.php:11
Bitrix\Sale\Delivery\Restrictions\ByUserGroup\getEntityTypeId
static getEntityTypeId()
Definition
byusergroup.php:12
Bitrix\Sale\Helpers\Order
Definition
order.php:10
Bitrix\Sale\Services\Base\UserGroupRestriction
Definition
usergrouprestriction.php:19
Bitrix\Sale\Services\Base\UserGroupRestriction\getOrder
static getOrder(Entity $entity)
Definition
usergrouprestriction.php:66
Bitrix\Sale\Shipment
Definition
shipment.php:21
Bitrix\Sale\Delivery\Restrictions
Definition
base.php:2
Bitrix\Sale
Sale
modules
sale
lib
delivery
restrictions
byusergroup.php
Создано системой
1.10.0