JDatabaseDriver::loadObjectList
Method to get an array of the result set rows from the database query where each row is an object. The array of objects can optionally be keyed by a field name, but defaults to a sequential numeric array.
NOTE: Choosing to key the result array by a non-unique field name can result in unwanted behavior and should be avoided.
Signature
public function loadObjectList([string
$key = '',
[string
$class = 'stdClass']] )
Parameters
-
$key
- The name of a field on which to key the result array.
-
$class
- The class name to use for the returned row objects.
Returns
- mixed
- The return value or null if the query failed.