Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
}
Bitrix\Sale\Exchange\Integration\CRM\EntityType
Definition
entitytype.php:5
Bitrix\Sale\Exchange\Integration\CRM\EntityType\ACTIVITY
const ACTIVITY
Definition
entitytype.php:10
Bitrix\Sale\Exchange\Integration\CRM\Placement\Base
Definition
base.php:11
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault
Definition
placementdefault.php:10
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getEntityId
getEntityId()
Definition
placementdefault.php:18
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getAction
getAction()
Definition
placementdefault.php:37
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getType
getType()
Definition
placementdefault.php:13
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\getEntityTypeId
getEntityTypeId()
Definition
placementdefault.php:23
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault\VIEW_ACTION
const VIEW_ACTION
Definition
placementdefault.php:11
Bitrix\Sale\Exchange\Integration\CRM\Placement
Definition
base.php:4
modules
sale
lib
exchange
integration
crm
placement
placementdefault.php
Создано системой
1.10.0