IResult

interface OCP\DB\IResult
Implemented by:OC\DB\ResultAdapter
Source:lib/public/DB/IResult.php#33

Methods

public OCP\DB\IResult::closeCursor()
Source:lib/public/DB/IResult.php#40
Returns:bool
Since:21.0.0
public OCP\DB\IResult::fetch($fetchMode=\PDO::FETCH_ASSOC)
Source:

lib/public/DB/IResult.php#49

Parameters:
  • $fetchMode (int)
Returns:

mixed

Since:

21.0.0

public OCP\DB\IResult::fetchAll($fetchMode=\PDO::FETCH_ASSOC)
Source:

lib/public/DB/IResult.php#58

Parameters:
  • $fetchMode (int) (one of PDO::FETCH_ASSOC, PDO::FETCH_NUM or PDO::FETCH_COLUMN (2, 3 or 7)
Returns:

array

Since:

21.0.0

public OCP\DB\IResult::fetchColumn()
Source:lib/public/DB/IResult.php#66
Returns:mixed
Since:21.0.0
Deprecated:21.0.0 use \OCP\DB\IResult::fetchOne
public OCP\DB\IResult::fetchOne()
Returns the first value of the next row of the result or FALSE if there are no more rows.
Source:lib/public/DB/IResult.php#75
Returns:bool | mixed
Since:21.0.0
public OCP\DB\IResult::rowCount()
Source:lib/public/DB/IResult.php#82
Returns:int
Since:21.0.0