Result

Result implements Result

Methods to improve the intent and readability of database code.

Methods

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


Last updated : September 15, 2018 b92362d