1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
placementdefault.php
См. документацию.
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\CRM\Placement;
5
6
7
use Bitrix\Sale\Exchange\Integration\CRM\EntityType;
8
9
class
PlacementDefault
extends
Base
10
{
11
const
VIEW_ACTION
=
'view_activity'
;
12
13
public
function
getType
()
14
{
15
return
Type::DEFAULT_TOOLBAR;
16
}
17
18
public
function
getEntityId
()
19
{
20
return
$this->fields->get(
'PLACEMENT_OPTIONS'
)[
'activity_id'
];
21
}
22
23
public
function
getEntityTypeId
()
24
{
25
$type
= $this->
getAction
();
26
27
if
(
$type
== static::VIEW_ACTION)
28
{
29
return
EntityType::ACTIVITY
;
30
}
31
else
32
{
33
throw
new \Bitrix\Main\NotSupportedException(
"Action AppPlacementType: '"
.
$type
.
"' is not supported in current context"
);
34
}
35
}
36
37
protected
function
getAction
()
38
{
39
return
$this->fields->get(
'PLACEMENT_OPTIONS'
)[
'action'
];
40
}
41
}
$type
$type
Определения
options.php:106
Bitrix\Sale\Exchange\Integration\CRM\EntityType\ACTIVITY
const ACTIVITY
Определения
entitytype.php:10
Bitrix\Sale\Exchange\Integration\CRM\Placement\Base
Определения
base.php:11
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault
Определения
placementdefault.php:10
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getEntityId
getEntityId()
Определения
placementdefault.php:18
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getAction
getAction()
Определения
placementdefault.php:37
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getType
getType()
Определения
placementdefault.php:13
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getEntityTypeId
getEntityTypeId()
Определения
placementdefault.php:23
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\VIEW_ACTION
const VIEW_ACTION
Определения
placementdefault.php:11
bitrix
modules
sale
lib
exchange
integration
crm
placement
placementdefault.php
Создано системой
1.14.0