2namespace Bitrix\Im\Model;
4use Bitrix\Im\Internals\Query;
5use Bitrix\Im\V2\Common\UpdateByFilterTrait;
6use Bitrix\Main\Application;
8use Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
53 use DeleteByFilterTrait;
54 use UpdateByFilterTrait;
63 return 'b_im_relation';
75 'data_type' =>
'integer',
77 'autocomplete' =>
true,
81 'data_type' =>
'integer',
85 'MESSAGE_TYPE' =>
array(
86 'data_type' =>
'string',
87 'validation' =>
array(__CLASS__,
'validateMessageType'),
91 'data_type' =>
'integer',
96 'data_type' =>
'integer',
100 'data_type' =>
'integer',
103 'UNREAD_ID' =>
array(
104 'data_type' =>
'integer',
108 'LAST_SEND_ID' =>
array(
109 'data_type' =>
'integer',
112 'LAST_SEND_MESSAGE_ID' =>
array(
113 'data_type' =>
'integer',
116 'data_type' =>
'string',
117 'default_value' =>
'',
118 'validation' =>
array(__CLASS__,
'validateReason'),
120 'IS_HIDDEN' =>
array(
121 'data_type' =>
'boolean',
122 'values' =>
array(
'N',
'Y'),
123 'default_value' =>
'N',
125 'LAST_FILE_ID' =>
array(
126 'data_type' =>
'integer',
129 'LAST_READ' =>
array(
130 'data_type' =>
'datetime',
134 'data_type' =>
'integer',
137 'CALL_STATUS' =>
array(
138 'data_type' =>
'integer',
141 'MESSAGE_STATUS' =>
array(
142 'data_type' =>
'string',
144 'validation' =>
array(__CLASS__,
'validateMessageStatus'),
146 'NOTIFY_BLOCK' =>
array(
147 'data_type' =>
'boolean',
148 'values' =>
array(
'N',
'Y'),
152 'data_type' =>
'boolean',
153 'values' =>
array(
'N',
'Y'),
154 'default_value' =>
'N',
157 'data_type' =>
'integer',
158 'default_value' => 0,
160 'START_COUNTER' =>
array(
161 'data_type' =>
'integer',
162 'default_value' => 0,
165 'data_type' =>
'Bitrix\Im\Model\ChatTable',
166 'reference' =>
array(
'=this.CHAT_ID' =>
'ref.ID'),
169 'data_type' =>
'Bitrix\Im\Model\MessageTable',
170 'reference' =>
array(
'=this.START_ID' =>
'ref.ID'),
172 'LAST_SEND' =>
array(
173 'data_type' =>
'Bitrix\Im\Model\MessageTable',
174 'reference' =>
array(
'=this.LAST_SEND_ID' =>
'ref.ID'),
177 'data_type' =>
'Bitrix\Im\Model\MessageTable',
178 'reference' =>
array(
'=this.LAST_ID' =>
'ref.ID'),
181 'data_type' =>
'Bitrix\Im\Model\UserTable',
182 'reference' =>
array(
'=this.USER_ID' =>
'ref.ID'),
195 new Entity\Validator\Length(
null, 1),
207 new Entity\Validator\Length(
null, 50),
219 new Entity\Validator\Length(
null, 50),
264 static::deleteByFilter(
$filter);
static validateMessageStatus()
static deleteBatch(array $filter, $limit=0)
static validateMessageType()
static generateSearchContent(array $fields)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
const IM_MESSAGE_STATUS_RECEIVED