Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
3
4
7
8abstract 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}
setRelation(Integration\Relation\Relation $relation)
Definition base.php:60