1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
pull_watch.php
См. документацию.
1
<?php
2
require(
$_SERVER
[
"DOCUMENT_ROOT"
].
BX_ROOT
.
"/modules/pull/classes/general/pull_watch.php"
);
3
4
class
CPullWatch
extends
CAllPullWatch
5
{
6
// check watch that are older than 30 minutes, remove them.
7
public
static
function
CheckExpireAgent
()
8
{
9
global
$DB
, $pPERIOD;
10
$pPERIOD = 1200;
11
12
$connection
=
\Bitrix\Main\Application::getConnection
();
13
14
$strSql =
"DELETE FROM b_pull_watch WHERE DATE_CREATE < "
.
$connection
->getSqlHelper()->addSecondsToDateTime(-32 * 60);
15
$result
=
$DB
->Query($strSql);
16
CAllPullWatch::cleanCache
();
17
18
if
(
19
$result
20
&& is_object(
$result
)
21
&&
$result
->AffectedRowsCount() == 1000
22
)
23
{
24
$pPERIOD = 180;
25
}
26
27
return
__METHOD__ .
'();'
;
28
}
29
}
$connection
$connection
Определения
actionsdefinitions.php:38
BX_ROOT
const BX_ROOT
Определения
bx_root.php:3
Bitrix\Main\Application\getConnection
static getConnection($name="")
Определения
application.php:638
CAllPullWatch
Определения
pull_watch.php:4
CAllPullWatch\cleanCache
static cleanCache()
Определения
pull_watch.php:321
CPullWatch
Определения
pull_watch.php:5
CPullWatch\CheckExpireAgent
static CheckExpireAgent()
Определения
pull_watch.php:7
$result
$result
Определения
get_property_values.php:14
$_SERVER
$_SERVER["DOCUMENT_ROOT"]
Определения
cron_frame.php:9
$DB
global $DB
Определения
cron_frame.php:29
bitrix
modules
pull
classes
mysql
pull_watch.php
Создано системой
1.14.0