Menu

## Result
in package

Result.php : 9

### Table of Contents

#### Properties

$pdoStatement : PDOStatement|null

#### Methods

fetch() : mixed
  Fetches the next row from a result set and returns it according to the $fetch_parameters format
fetchAll() : mixed
  Fetches all rows from the result set.
reset() : void
  Resets the result object to its initial state.
set() : void
  Sets the PDOStatement result set.

### Properties

#### $pdoStatement

Result.php : 11
`private PDOStatement|null $pdoStatement = null`

### Methods

#### fetch()

Result.php : 40

Fetches the next row from a result set and returns it according to the $fetch_parameters format

`public fetch([int $fetch_parameters = PDO::FETCH_OBJ ]) : mixed`

##### Parameters

$fetch_parameters : int = PDO::FETCH_OBJ

  The PDO fetch style record options

##### Return values

mixed —

The next row of the result set or false if we reached the end

#### fetchAll()

Result.php : 55

Fetches all rows from the result set.

`public fetchAll([int $fetch_parameters = PDO::FETCH_OBJ ]) : mixed`

##### Parameters

$fetch_parameters : int = PDO::FETCH_OBJ

  The fetch style to use. Defaults to \PDO::FETCH_OBJ.

##### Return values

mixed —

An array containing all rows from the result set, or false on failure.

#### reset()

Result.php : 29

Resets the result object to its initial state.

`public reset() : void`

This method clears any stored result data and resets the internal pointer to the first row. After calling this method, the result object can be reused to execute another query.

#### set()

Result.php : 18

Sets the PDOStatement result set.

`public set(PDOStatement $pdoStatement) : void`

##### Parameters

$pdoStatement : PDOStatement

  The PDOStatement result set.

## Search results