Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
contact.php
1<?php
3
4
6
7class Contact extends Base
8{
9 function getType()
10 {
11 return CRM\EntityType::CONTACT;
12 }
13
14 public function getName()
15 {
16 return $this->fields->get('NAME');
17 }
18
19 public function setName($value)
20 {
21 $this->fields->set('NAME', $value);
22 return $this;
23 }
24
25 public function getLastName()
26 {
27 return $this->fields->get('LAST_NAME');
28 }
29
30 public function setLastName($value)
31 {
32 $this->fields->set('LAST_NAME', $value);
33 return $this;
34 }
35
36 public function getEmail()
37 {
38 return $this->fields->get('EMAIL');
39 }
40
41 public function setEmail($value)
42 {
43 $this->fields->set('EMAIL', $value);
44 return $this;
45 }
46
47 public function getPhone()
48 {
49 return $this->fields->get('PHONE');
50 }
51
52 public function setPhone($value)
53 {
54 $this->fields->set('PHONE', $value);
55 return $this;
56 }
57
58 public function getAddressPostalCode()
59 {
60 return $this->fields->get('ADDRESS_POSTAL_CODE');
61 }
62
63 public function setAddressPostalCode($value)
64 {
65 $this->fields->set('ADDRESS_POSTAL_CODE', $value);
66 return $this;
67 }
68
69 public function getAddressCity()
70 {
71 return $this->fields->get('ADDRESS_CITY');
72 }
73
74 public function setAddressCity($value)
75 {
76 $this->fields->set('ADDRESS_CITY', $value);
77 return $this;
78 }
79
80 public function getAddress()
81 {
82 return $this->fields->get('ADDRESS');
83 }
84
85 public function setAddress($value)
86 {
87 $this->fields->set('ADDRESS', $value);
88 return $this;
89 }
90}