8namespace Bitrix\Socialnetwork;
11use Bitrix\Main\Entity;
12use Bitrix\Main\Localization\Loc;
13use Bitrix\Main\NotImplementedException;
15Loc::loadMessages(__FILE__);
37 return 'b_sonet_log_view';
44 'data_type' =>
'integer',
48 'data_type' =>
'string',
52 'data_type' =>
'boolean',
53 'values' => [
'N',
'Y' ],
62 $eventId = trim($eventId);
69 $eventId = \CSocNetLogTools::findFullSetByEventID($eventId);
72 $res = self::getList([
76 '=EVENT_ID' => \
Bitrix\
Main\Application::getConnection()->getSqlHelper()->forSql($eventId),
78 'select' => [
'TYPE' ],
81 if ($row =
$res->fetch())
93 $eventId = trim($eventId);
98 $eventId = \CSocNetLogTools::findFullSetByEventID($eventId);
103 foreach ($eventId as
$val)
108 'EVENT_ID' => $helper->forSql(
$val),
115 $merge = $helper->prepareMerge(
116 static::getTableName(),
117 [
'USER_ID',
'EVENT_ID' ],
122 if ($merge[0] !==
'')
134 $tasksNum = (int)$tasksNum;
150 $isAlreadyChecked = \CUserOptions::getOption(
'socialnetwork',
'~log_expertmode_checked',
'N',
$userId);
151 if ($isAlreadyChecked !==
'Y')
154 \CUserOptions::setOption(
'socialnetwork',
'~log_expertmode_checked',
'Y',
false,
$userId);
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
static getConnection($name="")
static set($userId, $eventId, $type)
static checkExpertModeAuto($userId, $tasksNum, $pageSize)
static getDefaultValue($eventId, $full=false)
static update($primary, array $data)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)