Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
statement.php
1
<?php
2
namespace
Bitrix\Perfmon\Php
;
3
4
class
Statement
5
{
6
public
$tableName
=
''
;
7
public
$dependOn
=
''
;
8
protected
$bodyLines
= [];
9
public
$conditions
= [];
10
18
public
function
addLine
($line)
19
{
20
$this->bodyLines[] = (string)$line;
21
return
$this;
22
}
23
31
public
function
addCondition
($predicate)
32
{
33
$this->conditions[] =
new
Condition
($predicate);
34
return
$this;
35
}
36
44
public
function
merge
(
Statement
$stmt)
45
{
46
foreach
($stmt->bodyLines as $line)
47
{
48
$this->
addLine
($line);
49
}
50
return
$this;
51
}
52
60
public
function
formatBodyLines
($level = 0)
61
{
62
$body =
''
;
63
foreach
($this->bodyLines as $line)
64
{
65
$body .= str_repeat(
"\t"
, $level) . $line .
"\n"
;
66
}
67
return
$body;
68
}
69
}
Bitrix\Perfmon\Php\Condition
Definition
condition.php:5
Bitrix\Perfmon\Php\Statement
Definition
statement.php:5
Bitrix\Perfmon\Php\Statement\$bodyLines
$bodyLines
Definition
statement.php:8
Bitrix\Perfmon\Php\Statement\$dependOn
$dependOn
Definition
statement.php:7
Bitrix\Perfmon\Php\Statement\merge
merge(Statement $stmt)
Definition
statement.php:44
Bitrix\Perfmon\Php\Statement\addCondition
addCondition($predicate)
Definition
statement.php:31
Bitrix\Perfmon\Php\Statement\addLine
addLine($line)
Definition
statement.php:18
Bitrix\Perfmon\Php\Statement\$conditions
$conditions
Definition
statement.php:9
Bitrix\Perfmon\Php\Statement\formatBodyLines
formatBodyLines($level=0)
Definition
statement.php:60
Bitrix\Perfmon\Php\Statement\$tableName
$tableName
Definition
statement.php:6
Bitrix\Perfmon\Php
Definition
codetree.php:2
modules
perfmon
lib
php
statement.php
Создано системой
1.10.0