10namespace Bitrix\Socialnetwork;
12use Bitrix\Main\Application;
13use Bitrix\Main\ArgumentException;
14use Bitrix\Main\Entity;
15use Bitrix\Main\ModuleManager;
16use Bitrix\Main\NotImplementedException;
17use Bitrix\Main\ObjectPropertyException;
18use Bitrix\Main\ORM\Data\Internal\MergeTrait;
19use Bitrix\Main\SystemException;
20use Bitrix\Main\DB\SqlExpression;
21use Bitrix\Main\UserTable;
56 return 'b_sonet_user_content_view';
63 'data_type' =>
'integer',
67 'data_type' =>
'Bitrix\Main\UserTable',
68 'reference' => [
'=this.USER_ID' =>
'ref.ID'],
71 'data_type' =>
'string',
74 'RATING_ENTITY_ID' => [
75 'data_type' =>
'integer',
79 'data_type' =>
'string',
82 'data_type' =>
'datetime',
94 static $controllerUser = [];
97 $typeId = (isset(
$params[
'typeId']) ? trim(
$params[
'typeId']) :
false);
112 if (ModuleManager::isModuleInstalled(
'bitrix24'))
114 if (!isset($controllerUser[
$userId]))
116 $res = UserTable::getList([
119 '=EXTERNAL_AUTH_ID' =>
'__controller',
125 $controllerUser[
$userId] =
true;
129 $controllerUser[
$userId] =
false;
137 'savedInDB' =>
false,
147 $nowDate =
new SqlExpression($helper->getCurrentDateTimeFunction());
151 "RATING_TYPE_ID" => $typeId,
153 "CONTENT_ID" => $typeId .
"-" .
$entityId,
154 "DATE_VIEW" => $nowDate,
158 'DATE_VIEW' => $nowDate,
161 static::merge($insertFields, $updateFields);
167 'savedInDB' => $saved,
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
static update($primary, array $data)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']