PdoResult
final class PdoResult extends ArrayDatabaseResult (View source)
Provides the pdo result contract for the database subsystem.
Properties
| protected list<array<string, mixed>> | $rows | from ArrayDatabaseResult | |
| protected int | $pointer | from ArrayDatabaseResult |
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.
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.
Releases resources retained by this database object so they cannot be reused.
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
protected array|null
fetchAssoc()
No description
__construct
protected
__construct(array $rows)
No description
num_rows
int
num_rows()
Provides this part of the database contract while preserving the object's current state and driver semantics.
data_seek
bool
data_seek(int $n = 0)
Provides this part of the database contract while preserving the object's current state and driver semantics.
free_result
void
free_result()
Releases resources retained by this database object so they cannot be reused.
num_fields
int
num_fields()
Provides this part of the database contract while preserving the object's current state and driver semantics.
list_fields
array
list_fields()
No description
field_data
array
field_data()
No description