Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
base.php
1
<?php
2
namespace
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity
;
3
4
5
use
Bitrix\Sale\Exchange\Integration
;
6
use
Bitrix\Sale\Internals\Fields
;
7
8
abstract
class
Base
9
{
10
protected
$fields
;
11
protected
$relation
;
12
protected
$client
;
13
14
public
function
__construct
(array $values =
null
)
15
{
16
$this->fields =
new
Fields
($values);
17
}
18
19
abstract
function
getType
();
20
21
public
function
setOwnerTypeId
($value)
22
{
23
$this->fields->set(
'OWNER_TYPE_ID'
, $value);
24
return
$this;
25
}
26
27
public
function
getOwnerTypeId
()
28
{
29
return
$this->fields->get(
'OWNER_TYPE_ID'
);
30
}
31
32
public
function
setOwnerId
($value)
33
{
34
$this->fields->set(
'OWNER_ID'
, $value);
35
return
$this;
36
}
37
38
public
function
getOwnerId
()
39
{
40
return
$this->fields->get(
'OWNER_ID'
);
41
}
42
43
public
function
setOriginatorId
($value)
44
{
45
$this->fields->set(
'ORIGINATOR_ID'
, $value);
46
return
$this;
47
}
48
49
public
function
setOriginId
($value)
50
{
51
$this->fields->set(
'ORIGIN_ID'
, $value);
52
return
$this;
53
}
54
55
public
function
getFieldsValues
()
56
{
57
return
$this->fields->getValues();
58
}
59
60
public
function
setRelation
(Integration\
Relation
\
Relation
$relation)
61
{
62
$this->relation = $relation;
63
}
64
68
public
function
getRelation
()
69
{
70
return
$this->relation;
71
}
72
73
public
function
hasRelation
()
74
{
75
return
($this->relation instanceof Integration\
Relation
\
Relation
&& $this->relation->getDestinationEntityId()>0);
76
}
77
}
Bitrix\Main\ORM\Fields\Relations\Relation
Definition
relation.php:26
Bitrix\Sale\Exchange\Integration\CRM\Placement\Base
Definition
base.php:11
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\setOwnerId
setOwnerId($value)
Definition
base.php:32
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\setRelation
setRelation(Integration\Relation\Relation $relation)
Definition
base.php:60
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\setOwnerTypeId
setOwnerTypeId($value)
Definition
base.php:21
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\__construct
__construct(array $values=null)
Definition
base.php:14
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\$relation
$relation
Definition
base.php:11
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\getType
getType()
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\getFieldsValues
getFieldsValues()
Definition
base.php:55
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\setOriginId
setOriginId($value)
Definition
base.php:49
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\getOwnerTypeId
getOwnerTypeId()
Definition
base.php:27
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\$fields
$fields
Definition
base.php:10
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\getRelation
getRelation()
Definition
base.php:68
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\getOwnerId
getOwnerId()
Definition
base.php:38
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\$client
$client
Definition
base.php:12
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\hasRelation
hasRelation()
Definition
base.php:73
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity\Base\setOriginatorId
setOriginatorId($value)
Definition
base.php:43
Bitrix\Sale\Internals\Fields
Definition
fields.php:6
Bitrix\Sale\Exchange\Integration\Service\Internal\Entity
Definition
activity.php:2
Bitrix\Sale\Exchange\Integration
modules
sale
lib
exchange
integration
service
internal
entity
base.php
Создано системой
1.10.0