1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
dbresult.php
См. документацию.
1
<?php
2
9
10
class
CDBResultMysql
extends
CAllDBResult
11
{
12
protected
function
FetchRow
()
13
{
14
if
(is_object($this->result))
15
{
16
return
mysqli_fetch_assoc($this->result);
17
}
18
return
false
;
19
}
20
21
function
SelectedRowsCount
()
22
{
23
if
($this->nSelectedCount !==
false
)
24
{
25
return
$this->nSelectedCount
;
26
}
27
28
if
(is_object($this->result))
29
{
30
return
mysqli_num_rows($this->result);
31
}
32
else
33
{
34
return
0;
35
}
36
}
37
38
function
AffectedRowsCount
()
39
{
40
if
(isset($this) && is_object($this) && is_object($this->DB))
41
{
42
$this->DB->DoConnect();
43
return
mysqli_affected_rows($this->DB->db_Conn);
44
}
45
else
46
{
47
global
$DB
;
48
$DB
->DoConnect();
49
return
mysqli_affected_rows(
$DB
->db_Conn);
50
}
51
}
52
53
function
FieldsCount
()
54
{
55
if
(is_object($this->result))
56
{
57
return
mysqli_num_fields($this->result);
58
}
59
else
60
{
61
return
0;
62
}
63
}
64
65
function
FieldName
($iCol)
66
{
67
$fieldInfo = mysqli_fetch_field_direct($this->result, $iCol);
68
return
$fieldInfo->name;
69
}
70
71
protected
function
GetRowsCount
(): ?int
72
{
73
if
(is_object($this->result))
74
{
75
return
mysqli_num_rows($this->result);
76
}
77
78
return
null
;
79
}
80
81
protected
function
Seek
(
int
$offset): void
82
{
83
mysqli_data_seek($this->result, $offset);
84
}
85
}
86
87
class
CDBResult
extends
CDBResultMysql
88
{
89
}
CAllDBResult
Определения
dbresult.php:15
CAllDBResult\$DB
$DB
Определения
dbresult.php:40
CAllDBResult\$nSelectedCount
$nSelectedCount
Определения
dbresult.php:31
CDBResult
Определения
dbresult.php:88
CDBResultMysql
Определения
dbresult.php:11
CDBResultMysql\Seek
Seek(int $offset)
Определения
dbresult.php:81
CDBResultMysql\AffectedRowsCount
AffectedRowsCount()
Определения
dbresult.php:38
CDBResultMysql\FieldName
FieldName($iCol)
Определения
dbresult.php:65
CDBResultMysql\SelectedRowsCount
SelectedRowsCount()
Определения
dbresult.php:21
CDBResultMysql\GetRowsCount
GetRowsCount()
Определения
dbresult.php:71
CDBResultMysql\FetchRow
FetchRow()
Определения
dbresult.php:12
CDBResultMysql\FieldsCount
FieldsCount()
Определения
dbresult.php:53
bitrix
modules
main
classes
mysql
dbresult.php
Создано системой
1.14.0