Nextcloud PHP API (master)

IResult

This interface represents the result of a database query.

Usage:

$qb = $this->db->getQueryBuilder();
$qb->select(...);
$result = $query->executeQuery();

This interface must not be implemented in your application.

Tags
since
21.0.0

Table of Contents

Methods

closeCursor()  : true
fetch()  : mixed
fetchAll()  : array<string|int, mixed>
fetchColumn()  : mixed
fetchOne()  : false|mixed
Returns the first value of the next row of the result or FALSE if there are no more rows.
rowCount()  : int

Methods

closeCursor()

public closeCursor() : true
Tags
since
21.0.0
Return values
true

fetch()

public fetch([int $fetchMode = PDO::FETCH_ASSOC ]) : mixed
Parameters
$fetchMode : int = PDO::FETCH_ASSOC
Tags
since
21.0.0

fetchAll()

public fetchAll([int $fetchMode = PDO::FETCH_ASSOC ]) : array<string|int, mixed>
Parameters
$fetchMode : int = PDO::FETCH_ASSOC

(one of PDO::FETCH_ASSOC, PDO::FETCH_NUM or PDO::FETCH_COLUMN (2, 3 or 7)

Tags
since
21.0.0
Return values
array<string|int, mixed>

fetchColumn()

public fetchColumn() : mixed
Tags
since
21.0.0
deprecated
21.0.0

use \OCP\DB\IResult::fetchOne

fetchOne()

Returns the first value of the next row of the result or FALSE if there are no more rows.

public fetchOne() : false|mixed
Tags
since
21.0.0
Return values
false|mixed

rowCount()

public rowCount() : int
Tags
since
21.0.0
Return values
int

        
On this page

Search results