Result
Result implements Result
Methods to improve the intent and readability of database code.
- Full name: \Gibbon\Database\Result
- Parent class:
- This class implements: Warning: strrchr() expects parameter 1 to be string, object given in /Users/sankuipe/Desktop/Localhost/documentor/src/Extension/TwigMarkdownAnchorLink.php on line 108
Methods
- isEmpty — Does the result contain no database rows?
- isNotEmpty — Does the result contain any database rows?
- fetchGrouped — Fetches all as an array, grouped by key using the first column in the result set.
- fetchGroupedUnique — Fetches all as an array, grouped by key where the contents
- fetchKeyPair — Fetches all as an associative array of key => value pairs. The query may only have two columns.
- toDataSet — Fetches all results and returns it as a DataSet object.
isEmpty
Does the result contain no database rows?
Result::isEmpty( ): boolean
Return Value:
boolean
isNotEmpty
Does the result contain any database rows?
Result::isNotEmpty( ): boolean
Return Value:
boolean
fetchGrouped
Fetches all as an array, grouped by key using the first column in the result set.
Result::fetchGrouped( ): array
Return Value:
array
fetchGroupedUnique
Fetches all as an array, grouped by key where the contents
Result::fetchGroupedUnique( ): array
Return Value:
array
fetchKeyPair
Fetches all as an associative array of key => value pairs. The query may only have two columns.
Result::fetchKeyPair( ): array
Return Value:
array
toDataSet
Fetches all results and returns it as a DataSet object.
Result::toDataSet( ): array
Return Value:
array