1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
entityimportfactory.php
См. документацию.
1<?php
3
6
13{
21 public static function create($entityTypeID, $parentEntityContext = null)
22 {
23 if(!is_int($entityTypeID))
24 {
25 $entityTypeID = (int)$entityTypeID;
26 }
27
28 if(!Exchange\EntityType::IsDefined($entityTypeID))
29 {
31 }
32
33 if($entityTypeID === Exchange\EntityType::ORDER)
34 {
36 }
37 elseif($entityTypeID === Exchange\EntityType::SHIPMENT)
38 {
39 return new Exchange\Entity\SubordinateSale\Shipment($parentEntityContext);
40 }
42 {
43 return new Exchange\Entity\PaymentCashImport($parentEntityContext);
44 }
46 {
47 return new Exchange\Entity\PaymentCashLessImport($parentEntityContext);
48 }
50 {
51 return new Exchange\Entity\PaymentCardImport($parentEntityContext);
52 }
54 {
56 }
57 else
58 {
59 throw new Main\NotSupportedException("Entity type: '".Exchange\EntityType::ResolveName($entityTypeID)."' is not supported in current context");
60 }
61 }
62}
static create($entityTypeID, $parentEntityContext=null)
Определения entityimportfactory.php:21
const PAYMENT_CASH_LESS
Определения entitytype.php:11
const PAYMENT_CASH
Определения entitytype.php:10
const USER_PROFILE
Определения entitytype.php:14
const PAYMENT_CARD_TRANSACTION
Определения entitytype.php:12
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения prolog_main_admin.php:393