PATH:
home
/
centosnipponia
/
public_html
/
apptt-oldgit
/
vendor
/
doctrine
/
dbal
/
lib
/
Doctrine
/
DBAL
/
Driver
<?php declare(strict_types=1); namespace Doctrine\DBAL\Driver; /** * @internal */ final class FetchUtils { /** * @return mixed|false * * @throws Exception */ public static function fetchOne(Result $result) { $row = $result->fetchNumeric(); if ($row === false) { return false; } return $row[0]; } /** * @return array<int,array<int,mixed>> * * @throws Exception */ public static function fetchAllNumeric(Result $result): array { $rows = []; while (($row = $result->fetchNumeric()) !== false) { $rows[] = $row; } return $rows; } /** * @return array<int,array<string,mixed>> * * @throws Exception */ public static function fetchAllAssociative(Result $result): array { $rows = []; while (($row = $result->fetchAssociative()) !== false) { $rows[] = $row; } return $rows; } /** * @return array<int,mixed> * * @throws Exception */ public static function fetchFirstColumn(Result $result): array { $rows = []; while (($row = $result->fetchOne()) !== false) { $rows[] = $row; } return $rows; } }
[+]
..
[-] AbstractDB2Driver.php
[edit]
[-] AbstractDriverException.php
[edit]
[-] AbstractException.php
[edit]
[-] AbstractMySQLDriver.php
[edit]
[-] AbstractOracleDriver.php
[edit]
[+]
AbstractOracleDriver
[-] AbstractPostgreSQLDriver.php
[edit]
[-] AbstractSQLAnywhereDriver.php
[edit]
[-] AbstractSQLServerDriver.php
[edit]
[+]
AbstractSQLServerDriver
[-] AbstractSQLiteDriver.php
[edit]
[-] Connection.php
[edit]
[-] DriverException.php
[edit]
[+]
DrizzlePDOMySql
[-] Exception.php
[edit]
[-] ExceptionConverterDriver.php
[edit]
[-] FetchUtils.php
[edit]
[+]
IBMDB2
[+]
Mysqli
[+]
OCI8
[+]
PDO
[-] PDOConnection.php
[edit]
[-] PDOException.php
[edit]
[+]
PDOIbm
[+]
PDOMySql
[+]
PDOOracle
[+]
PDOPgSql
[-] PDOQueryImplementation.php
[edit]
[+]
PDOSqlite
[+]
PDOSqlsrv
[-] PDOStatement.php
[edit]
[-] PDOStatementImplementations.php
[edit]
[-] PingableConnection.php
[edit]
[-] Result.php
[edit]
[-] ResultStatement.php
[edit]
[+]
SQLAnywhere
[+]
SQLSrv
[-] ServerInfoAwareConnection.php
[edit]
[-] Statement.php
[edit]
[-] StatementIterator.php
[edit]
[-] .htaccess.disabled
[edit]