Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
mysqliresult.php
1
<?php
2
namespace
Bitrix\Main\DB
;
3
4
class
MysqliResult
extends
Result
5
{
7
protected
$resource
;
8
10
private
$resultFields =
null
;
11
17
public
function
__construct
($result,
Connection
$dbConnection =
null
, \
Bitrix
\Main\Diag\
SqlTrackerQuery
$trackerQuery
=
null
)
18
{
19
parent::__construct($result, $dbConnection,
$trackerQuery
);
20
}
21
27
public
function
getSelectedRowsCount
()
28
{
29
return
$this->resource->num_rows;
30
}
31
37
public
function
getFields
()
38
{
39
if
($this->resultFields ==
null
)
40
{
41
$this->resultFields = array();
42
if
(is_object($this->resource))
43
{
44
$fields = $this->resource->fetch_fields();
45
if
($fields && $this->connection)
46
{
47
$helper = $this->connection->getSqlHelper();
48
foreach
($fields as $field)
49
{
50
$this->resultFields[$field->name] = $helper->getFieldByColumnType($field->name, $field->type);
51
}
52
}
53
}
54
}
55
56
return
$this->resultFields;
57
}
58
64
protected
function
fetchRowInternal
()
65
{
66
return
$this->resource->fetch_assoc();
67
}
68
}
Bitrix\Main\DB\MysqliResult
Definition
mysqliresult.php:5
Bitrix\Main\DB\MysqliResult\__construct
__construct($result, Connection $dbConnection=null, \Bitrix\Main\Diag\SqlTrackerQuery $trackerQuery=null)
Definition
mysqliresult.php:17
Bitrix\Main\DB\MysqliResult\getSelectedRowsCount
getSelectedRowsCount()
Definition
mysqliresult.php:27
Bitrix\Main\DB\MysqliResult\fetchRowInternal
fetchRowInternal()
Definition
mysqliresult.php:64
Bitrix\Main\DB\MysqliResult\$resource
$resource
Definition
mysqliresult.php:7
Bitrix\Main\DB\MysqliResult\getFields
getFields()
Definition
mysqliresult.php:37
Bitrix\Main\DB\Result
Definition
result.php:19
Bitrix\Main\DB\Result\$trackerQuery
$trackerQuery
Definition
result.php:25
Bitrix\Main\Data\Connection
Definition
connection.php:17
Bitrix\Main\Diag\SqlTrackerQuery
Definition
sqltrackerquery.php:5
Bitrix\Main\DB
Definition
arrayresult.php:2
Bitrix
modules
main
lib
db
mysqliresult.php
Создано системой
1.10.0