1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
factory.php
См. документацию.
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity;
5
6
7
use Bitrix\Sale\Exchange\Integration\CRM\EntityType;
8
9
class
Factory
10
{
11
static
public
function
create
(
$type
,
array
$values =
null
)
12
{
13
if
(
$type
==
EntityType::ACTIVITY
)
14
{
15
return
new
Activity
($values);
16
}
17
elseif
(
$type
==
EntityType::DEAL
)
18
{
19
return
new
Deal
($values);
20
}
21
elseif
(
$type
==
EntityType::COMPANY
)
22
{
23
return
new
Company
($values);
24
}
25
elseif
(
$type
==
EntityType::CONTACT
)
26
{
27
return
new
Contact
($values);
28
}
29
else
30
{
31
throw
new \Bitrix\Main\NotSupportedException(
"BuilderEntity type: '"
.
$type
.
"' is not supported in current context"
);
32
}
33
}
34
}
$type
$type
Определения
options.php:106
Bitrix\Sale\Exchange\Integration\CRM\EntityType\ACTIVITY
const ACTIVITY
Определения
entitytype.php:10
Bitrix\Sale\Exchange\Integration\CRM\EntityType\DEAL
const DEAL
Определения
entitytype.php:7
Bitrix\Sale\Exchange\Integration\CRM\EntityType\COMPANY
const COMPANY
Определения
entitytype.php:9
Bitrix\Sale\Exchange\Integration\CRM\EntityType\CONTACT
const CONTACT
Определения
entitytype.php:8
Bitrix\Sale\Exchange\Integration\CRM\Placement\Factory
Определения
factory.php:8
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Activity
Определения
activity.php:8
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Company
Определения
company.php:8
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Contact
Определения
contact.php:8
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Deal
Определения
deal.php:10
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Factory\create
static create($type, array $values=null)
Определения
factory.php:11
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
bitrix
modules
sale
lib
exchange
integration
service
internal
entity
factory.php
Создано системой
1.14.0