8namespace Bitrix\Socialnetwork;
10use Bitrix\Main\ArgumentException;
11use Bitrix\Main\ObjectPropertyException;
13use Bitrix\Main\SystemException;
14use Bitrix\Socialnetwork\Internals\Log\Log;
15use Bitrix\Socialnetwork\Internals\Log\LogCollection;
16use Bitrix\Socialnetwork\Item\LogIndex;
51 'data_type' =>
'integer',
53 'autocomplete' =>
true,
56 'data_type' =>
'string',
59 'data_type' =>
'integer',
62 'data_type' =>
'string',
65 'data_type' =>
'integer',
68 'data_type' =>
'Bitrix\Main\UserTable',
69 'reference' => [
'=this.USER_ID' =>
'ref.ID'],
72 'data_type' =>
'string',
75 'data_type' =>
'text',
78 'data_type' =>
'text',
81 'data_type' =>
'string',
84 'data_type' =>
'string',
87 'data_type' =>
'text',
90 'data_type' =>
'integer',
93 'data_type' =>
'datetime',
96 'data_type' =>
'datetime',
99 'data_type' =>
'integer',
102 'data_type' =>
'boolean',
103 'values' => [
'N',
'Y'],
106 'data_type' =>
'boolean',
107 'values' => [
'N',
'Y'],
109 'RATING_TYPE_ID' => [
110 'data_type' =>
'string',
112 'RATING_ENTITY_ID' => [
113 'data_type' =>
'integer',
124 'INACTIVE' => (
$status ?
'Y' :
'N')
136 $primary =
$event->getParameter(
'primary');
137 $logId = (!empty($primary[
'ID']) ? (int)$primary[
'ID'] : 0);
142 [
'\Bitrix\Socialnetwork\LogCommentTable',
'LOG_ID' ],
143 [
'\Bitrix\Socialnetwork\LogRightTable',
'LOG_ID' ],
144 [
'\Bitrix\Socialnetwork\LogSiteTable',
'LOG_ID' ],
145 [
'\Bitrix\Socialnetwork\LogFavoritesTable',
'LOG_ID' ],
146 [
'\Bitrix\Socialnetwork\LogTagTable',
'LOG_ID' ]
149 foreach($tabletList as [$tablet, $fieldName])
152 $collection = $tablet::query()
153 ->where($fieldName, $logId)
156 foreach ($collection as
$entity)
169 $primary =
$event->getParameter(
'primary');
170 $logId = (!empty($primary[
'ID']) ? (int)$primary[
'ID'] : 0);
174 LogIndex::deleteIndex(
array(
190 return LogCollection::class;
static onDelete(Event $event)
static update($primary, array $data)
static onAfterDelete(ORM\Event $event)
static setInactive($id, $status=true)
static getCollectionClass()
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)