3namespace Bitrix\Socialnetwork\Controller;
7use Bitrix\Main\Engine\ActionFilter;
8use Bitrix\Socialnetwork\Item\UserContentView;
14 $configureActions = parent::configureActions();
15 $configureActions[
'set'] = [
17 new ActionFilter\CloseSession(),
21 return $configureActions;
30 && is_array(
$params[
"viewXMLIdList"])
37 if (!Loader::includeModule(
'socialnetwork'))
39 $this->
addError(
new Error(
'Cannot include Socialnetwork module',
'SONET_CONTROLLER_CONTENTVIEW_NO_SOCIALNETWORK_MODULE'));
43 $signer = new \Bitrix\Main\Engine\ActionFilter\Service\Token(
$USER->getId());
47 if (empty($item[
'xmlId']))
53 if (!empty($item[
'signedKey']))
57 if ($signer->unsign($item[
'signedKey'], $item[
'xmlId']) === $item[
'xmlId'])
77 UserContentView::set([
80 'userId' => $this->getCurrentUser()->getId(),
92 && is_string(
$params[
'contentId'])
105 isset(
$params[
'pathToUserProfile'])
106 && is_string(
$params[
'pathToUserProfile'])
107 ? trim(
$params[
'pathToUserProfile'])
113 $this->
addError(
new Error(
'Empty Content ID',
'SONET_CONTROLLER_CONTENTVIEW_EMPTY_CONTENT_ID'));
117 if (!Loader::includeModule(
'socialnetwork'))
119 $this->
addError(
new Error(
'Cannot include Socialnetwork module',
'SONET_CONTROLLER_CONTENTVIEW_NO_SOCIALNETWORK_MODULE'));
123 $userList = UserContentView::getUserList([
getListAction(array $params=[])
setAction(array $params=[])
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']