DatabaseResult
abstract class DatabaseResult implements DatabaseResultInterface (View source)
Supplies cached array and object projections over a driver-specific result cursor.
Methods
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Retrieves the requested value without changing the current database state.
Retrieves the requested value without changing the current database state.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Provides this part of the database contract while preserving the object's current state and driver semantics.
Details
result
array
result(string $type = 'object')
No description
result_object
array
result_object()
No description
result_array
array
result_array()
No description
custom_result_object
array
custom_result_object(string $className)
No description
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.
row_array
array|null
row_array(int $n = 0)
No description
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.
first_row
mixed
first_row(string $type = 'object')
Retrieves the requested value without changing the current database state.
last_row
mixed
last_row(string $type = 'object')
Retrieves the requested value without changing the current database state.
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.
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.
fetchAssoc
abstract protected array|null
fetchAssoc()
No description