3require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/socialnetwork/classes/general/subscription.php");
20 $arInsert =
$DB->PrepareInsert(
"b_sonet_subscription",
$arFields);
24 if ($arInsert[0] <>
'')
26 $sql =
$connection->getSqlHelper()->getInsertIgnore(
27 'b_sonet_subscription',
29 "VALUES(".$arInsert[1].
")"
37 if(defined(
"BX_COMP_MANAGED_CACHE"))
43 public static function GetList($arOrder = Array(
"ID" =>
"DESC"),
$arFilter = Array(), $arGroupBy =
false, $arNavStartParams =
false, $arSelectFields =
array())
47 if (
count($arSelectFields) <= 0)
48 $arSelectFields =
array(
"ID",
"USER_ID",
"CODE");
52 "ID" => Array(
"FIELD" =>
"SS.ID",
"TYPE" =>
"int"),
53 "USER_ID" => Array(
"FIELD" =>
"SS.USER_ID",
"TYPE" =>
"int"),
54 "CODE" => Array(
"FIELD" =>
"SS.CODE",
"TYPE" =>
"string"),
58 $arSqls = CSocNetGroup::PrepareSql(
$arFields, $arOrder,
$arFilter, $arGroupBy, $arSelectFields);
59 $arSqls[
"SELECT"] = str_replace(
"%%_DISTINCT_%%",
"", $arSqls[
"SELECT"]);
61 if (is_array($arGroupBy) &&
count($arGroupBy)==0)
64 "SELECT ".$arSqls[
"SELECT"].
" ".
65 "FROM b_sonet_subscription SS ".
66 " ".$arSqls[
"FROM"].
" ";
67 if ($arSqls[
"WHERE"] <>
'')
68 $strSql .=
"WHERE ".$arSqls[
"WHERE"].
" ";
69 if ($arSqls[
"GROUPBY"] <>
'')
70 $strSql .=
"GROUP BY ".$arSqls[
"GROUPBY"].
" ";
82 "SELECT ".$arSqls[
"SELECT"].
" ".
83 "FROM b_sonet_subscription SS ".
84 " ".$arSqls[
"FROM"].
" ";
85 if ($arSqls[
"WHERE"] <>
'')
86 $strSql .=
"WHERE ".$arSqls[
"WHERE"].
" ";
87 if ($arSqls[
"GROUPBY"] <>
'')
88 $strSql .=
"GROUP BY ".$arSqls[
"GROUPBY"].
" ";
89 if ($arSqls[
"ORDERBY"] <>
'')
90 $strSql .=
"ORDER BY ".$arSqls[
"ORDERBY"].
" ";
92 if (is_array($arNavStartParams) && intval($arNavStartParams[
"nTopCount"]) <= 0)
95 "SELECT COUNT('x') as CNT ".
96 "FROM b_sonet_subscription SS ".
97 " ".$arSqls[
"FROM"].
" ";
98 if ($arSqls[
"WHERE"] <>
'')
99 $strSql_tmp .=
"WHERE ".$arSqls[
"WHERE"].
" ";
100 if ($arSqls[
"GROUPBY"] <>
'')
101 $strSql_tmp .=
"GROUP BY ".$arSqls[
"GROUPBY"].
" ";
107 if ($arSqls[
"GROUPBY"] ==
'')
115 $cnt =
$dbRes->SelectedRowsCount();
122 $dbRes->NavQuery($strSql, $cnt, $arNavStartParams);
126 if (is_array($arNavStartParams) && intval($arNavStartParams[
"nTopCount"]) > 0)
127 $strSql .=
"LIMIT ".intval($arNavStartParams[
"nTopCount"]);
static getConnection($name="")
static getEqualityFields(&$fields)
static processEqualityFieldsToInsert($fields1, &$insert)
static CheckFields($ACTION, &$arFields, $ID=0)
static GetList($arOrder=Array("ID"=> "DESC"), $arFilter=Array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
</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."%"
$GLOBALS['_____370096793']