Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
recipient.php
1<?php
9
10use Bitrix\Main;
13
32class RecipientTable extends Main\Entity\DataManager
33{
34 const SEND_RESULT_NONE = 'Y';
36 const SEND_RESULT_ERROR = 'E';
37 const SEND_RESULT_WAIT = 'W';
38 const SEND_RESULT_DENY = 'D';
40
46 public static function getTableName()
47 {
48 return 'b_sender_posting_recipient';
49 }
50
56 public static function getMap()
57 {
58 return array(
59 'ID' => array(
60 'data_type' => 'integer',
61 'primary' => true,
62 'autocomplete' => true,
63 ),
64 'POSTING_ID' => array(
65 'data_type' => 'integer',
66 ),
67 'STATUS' => array(
68 'data_type' => 'string',
69 'required' => true,
70 'default_value' => static::SEND_RESULT_NONE,
71 ),
72 'DATE_SENT' => array(
73 'data_type' => 'datetime',
74 ),
75 'DATE_DENY' => array(
76 'data_type' => 'datetime',
77 ),
78 'CONTACT_ID' => array(
79 'required' => true,
80 'data_type' => 'integer',
81 ),
82 'USER_ID' => array(
83 'data_type' => 'integer',
84 ),
85 'FIELDS' => array(
86 'data_type' => 'text',
87 'serialized' => true,
88 ),
89 'ROOT_ID' => array(
90 'data_type' => 'integer',
91 ),
92 'IS_READ' => array(
93 'data_type' => 'string',
94 ),
95 'IS_CLICK' => array(
96 'data_type' => 'string',
97 ),
98 'IS_UNSUB' => array(
99 'data_type' => 'string',
100 ),
101 'CONTACT' => array(
102 'data_type' => Sender\ContactTable::class,
103 'reference' => array('=this.CONTACT_ID' => 'ref.ID'),
104 ),
105 'POSTING' => array(
106 'data_type' => Model\PostingTable::class,
107 'reference' => array('=this.POSTING_ID' => 'ref.ID'),
108 ),
109 'POSTING_READ' => array(
110 'data_type' => ReadTable::class,
111 'reference' => array('=this.ID' => 'ref.RECIPIENT_ID'),
112 ),
113 'POSTING_CLICK' => array(
114 'data_type' => ClickTable::class,
115 'reference' => array('=this.ID' => 'ref.RECIPIENT_ID'),
116 ),
117 'POSTING_UNSUB' => array(
118 'data_type' => UnsubTable::class,
119 'reference' => array('=this.ID' => 'ref.RECIPIENT_ID'),
120 ),
121 );
122 }
123}