2namespace Bitrix\Im\Model;
4use Bitrix\Im\V2\Common\MultiplyInsertTrait;
5use Bitrix\Im\V2\Common\UpdateByFilterTrait;
37 use \Bitrix\Main\ORM\Data\Internal\DeleteByFilterTrait;
38 use UpdateByFilterTrait;
39 use MultiplyInsertTrait;
40 use Main\ORM\Data\Internal\MergeTrait;
60 'data_type' =>
'integer',
65 'data_type' =>
'string',
67 'validation' =>
array(__CLASS__,
'validateItemType'),
71 'data_type' =>
'integer',
76 'data_type' =>
'integer',
81 'data_type' =>
'integer',
85 'data_type' =>
'integer',
89 'data_type' =>
'integer',
93 'data_type' =>
'boolean',
94 'values' =>
array(
'N',
'Y'),
95 'default_value' =>
'N',
98 'data_type' =>
'boolean',
99 'values' =>
array(
'N',
'Y'),
100 'default_value' =>
'N',
102 'DATE_MESSAGE' =>
array(
103 'data_type' =>
'datetime',
105 'default_value' =>
array(__CLASS__,
'getCurrentDate'),
107 'DATE_UPDATE' =>
array(
108 'data_type' =>
'datetime',
110 'default_value' =>
array(__CLASS__,
'getCurrentDate'),
112 'DATE_LAST_ACTIVITY' =>
array(
113 'data_type' =>
'datetime',
115 'default_value' =>
array(__CLASS__,
'getCurrentDate'),
118 'data_type' =>
'Bitrix\Im\Model\RelationTable',
119 'reference' =>
array(
'=this.ITEM_RID' =>
'ref.ID'),
120 'join_type' =>
'LEFT',
123 'data_type' =>
'Bitrix\Im\Model\ChatTable',
124 'reference' =>
array(
'=this.ITEM_CID' =>
'ref.ID'),
125 'join_type' =>
'LEFT',
128 'data_type' =>
'Bitrix\Im\Model\MessageTable',
129 'reference' =>
array(
'=this.ITEM_MID' =>
'ref.ID'),
130 'join_type' =>
'LEFT',
132 'MESSAGE_UUID' =>
array(
133 'data_type' =>
'Bitrix\Im\Model\MessageUuidTable',
134 'reference' =>
array(
'=this.ITEM_MID' =>
'ref.MESSAGE_ID'),
135 'join_type' =>
'LEFT',
137 'MARKED_ID' =>
array(
138 'data_type' =>
'integer',
139 'default_value' => 0,
142 'data_type' =>
'integer',
166 return new \Bitrix\Main\Type\DateTime();
static validateItemType()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)