From Joomla! Documentation

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDatabase::loadObjectList


Method to get an array of the result set rows from the database query where each row is an object.

public function loadObjectList (
        $class= 'stdClass'
Parameter Type Default Description
$class 'stdClass'
  • Returns
  • Defined on line 707 of libraries/joomla/database/database.php

See also

  • Joomla 11.1 JDatabase::loadObjectList source code on BitBucket
  • Joomla 11.1 Class JDatabase
  • Joomla 11.1 Subpackage Database
  • Other versions of JDatabase::loadObjectList

User contributed notes


// Create a new query object.		
$db = &JFactory::getDBO();
$query = $db->getQuery(true);
$query->select('cats.description AS description, cats.title AS titel');
$query->from('#__categories AS cats');
$Category = $db->loadObjectList();

Code Examples