mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Use private visibility
This commit is contained in:
@@ -115,7 +115,7 @@ if (isset($_GET["mssql"])) {
|
|||||||
// $this->num_rows = sqlsrv_num_rows($result); // available only in scrollable results
|
// $this->num_rows = sqlsrv_num_rows($result); // available only in scrollable results
|
||||||
}
|
}
|
||||||
|
|
||||||
function _convert($row) {
|
private function convert($row) {
|
||||||
foreach ((array) $row as $key => $val) {
|
foreach ((array) $row as $key => $val) {
|
||||||
if (is_a($val, 'DateTime')) {
|
if (is_a($val, 'DateTime')) {
|
||||||
$row[$key] = $val->format("Y-m-d H:i:s");
|
$row[$key] = $val->format("Y-m-d H:i:s");
|
||||||
@@ -126,11 +126,11 @@ if (isset($_GET["mssql"])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function fetch_assoc() {
|
function fetch_assoc() {
|
||||||
return $this->_convert(sqlsrv_fetch_array($this->result, SQLSRV_FETCH_ASSOC));
|
return $this->convert(sqlsrv_fetch_array($this->result, SQLSRV_FETCH_ASSOC));
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetch_row() {
|
function fetch_row() {
|
||||||
return $this->_convert(sqlsrv_fetch_array($this->result, SQLSRV_FETCH_NUMERIC));
|
return $this->convert(sqlsrv_fetch_array($this->result, SQLSRV_FETCH_NUMERIC));
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetch_field() {
|
function fetch_field() {
|
||||||
|
Reference in New Issue
Block a user