Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventofflinequery.php
1
<?php
2
namespace
Bitrix\Rest
;
3
4
5
use Bitrix\Main\Entity\Query;
6
7
class
EventOfflineQuery
extends
Query
8
{
9
public
function
getMarkQuery
($processId)
10
{
11
// initialize all internal guts
12
$this->
getQuery
();
13
14
$connection = $this->entity->getConnection();
15
$helper = $connection->getSqlHelper();
16
17
$sqlWhere = $this->
buildWhere
();
18
$sqlOrder = $this->
buildOrder
();
19
20
21
$update = $helper->prepareUpdate($this->entity->getDBTableName(), array(
'PROCESS_ID'
=> $processId));
22
23
$queryParts = array_filter(array(
24
'UPDATE'
=> $this->
quoteTableSource
($this->entity->getDBTableName()).
' '
.$helper->quote($this->getInitAlias()),
25
'SET'
=> $update[0],
26
'WHERE'
=> $sqlWhere,
27
'ORDER BY'
=> $sqlOrder,
28
'LIMIT'
=> $this->getLimit(),
// we cannot use getTopSql here
29
));
30
31
foreach
($queryParts as $k => &$v)
32
{
33
$v = $k .
' '
. $v;
34
}
35
36
$sql = join(
"\n"
, $queryParts);
37
38
return
$sql;
39
}
40
}
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Main\ORM\Query\Query\quoteTableSource
quoteTableSource($source)
Definition
query.php:3702
Bitrix\Main\ORM\Query\Query\buildWhere
buildWhere()
Definition
query.php:2213
Bitrix\Main\ORM\Query\Query\buildOrder
buildOrder()
Definition
query.php:2363
Bitrix\Main\ORM\Query\Query\getQuery
getQuery($forceObjectPrimary=false)
Definition
query.php:3838
Bitrix\Rest\EventOfflineQuery
Definition
eventofflinequery.php:8
Bitrix\Rest\EventOfflineQuery\getMarkQuery
getMarkQuery($processId)
Definition
eventofflinequery.php:9
Bitrix\Rest
Definition
accessexception.php:2
modules
rest
lib
eventofflinequery.php
Создано системой
1.10.0