abstract class DatabaseResult implements DatabaseResultInterface (View source)

Supplies cached array and object projections over a driver-specific result cursor.

Methods

array
result(string $type = 'object')
array
array
array
array
array
array
custom_result_object(string $className)
array
mixed
row(int|string $n = 0, string $type = 'object')

Provides this part of the database contract while preserving the object's current state and driver semantics.

mixed
array|null
row_array(int $n = 0)
array|null
object|null
row_object(int $n = 0)

Provides this part of the database contract while preserving the object's current state and driver semantics.

object|null
mixed
first_row(string $type = 'object')

Retrieves the requested value without changing the current database state.

mixed
mixed
last_row(string $type = 'object')

Retrieves the requested value without changing the current database state.

mixed
mixed
next_row(string $type = 'object')

Provides this part of the database contract while preserving the object's current state and driver semantics.

mixed
mixed
previous_row(string $type = 'object')

Provides this part of the database contract while preserving the object's current state and driver semantics.

mixed
array|null
array|null

Details

result

array result(string $type = 'object')

No description

Parameters

string $type

Return Value

array

result_object

array result_object()

No description

Return Value

array

result_array

array result_array()

No description

Return Value

array

custom_result_object

array custom_result_object(string $className)

No description

Parameters

string $className

Return Value

array

row

mixed row(int|string $n = 0, string $type = 'object')

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

int|string $n
string $type

Return Value

mixed

row_array

array|null row_array(int $n = 0)

No description

Parameters

int $n

Return Value

array|null

row_object

object|null row_object(int $n = 0)

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

int $n

Return Value

object|null

first_row

mixed first_row(string $type = 'object')

Retrieves the requested value without changing the current database state.

Parameters

string $type

Return Value

mixed

last_row

mixed last_row(string $type = 'object')

Retrieves the requested value without changing the current database state.

Parameters

string $type

Return Value

mixed

next_row

mixed next_row(string $type = 'object')

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $type

Return Value

mixed

previous_row

mixed previous_row(string $type = 'object')

Provides this part of the database contract while preserving the object's current state and driver semantics.

Parameters

string $type

Return Value

mixed

fetchAssoc

abstract protected array|null fetchAssoc()

No description

Return Value

array|null