1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
guest.php
См. документацию.
1
<?php
2
require_once(
$_SERVER
[
"DOCUMENT_ROOT"
].
"/bitrix/modules/statistic/classes/general/guest.php"
);
3
4
class
CGuest
extends
CAllGuest
5
{
6
public
static
function
GetLastByID
(
$ID
)
7
{
8
$DB
= CDatabase::GetModuleConnection(
'statistic'
);
9
$ID
= intval(
$ID
);
10
if
(
$ID
>0)
11
{
12
$strSql =
"
13
SELECT
14
G.ID,
15
G.FAVORITES,
16
G.LAST_USER_ID,
17
A.ID as LAST_ADV_ID,
18
if(to_days(curdate())=to_days(G.LAST_DATE), 'Y', 'N') LAST
19
FROM b_stat_guest G
20
LEFT JOIN b_stat_adv A ON A.ID = G.LAST_ADV_ID
21
WHERE G.ID='$ID'
22
"
;
23
$res
=
$DB
->Query($strSql);
24
}
25
else
26
{
27
$res
=
new
CDBResult;
28
$res
->InitFromArray(
array
());
29
}
30
return
$res
;
31
}
32
}
CAllGuest
Определения
guest.php:3
CGuest
Определения
guest.php:5
CGuest\GetLastByID
static GetLastByID($ID)
Определения
guest.php:6
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$res
$res
Определения
filter_act.php:7
$ID
if($ajaxMode) $ID
Определения
get_user.php:27
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$DB
global $DB
Определения
cron_frame.php:29
bitrix
modules
statistic
classes
mysql
guest.php
Создано системой
1.14.0