Difference between revisions of "JDatabase::loadObjectList"

From Joomla! Documentation

(addes small example)
m (See also: moving preparation)
(2 intermediate revisions by the same user not shown)
Line 36: Line 36:
===See also===
===See also===
* {{JVer|11.1}} '''JDatabase::loadObjectList source code''' on [[jplatform:database/database.php#cl-699|BitBucket]]
* {{JVer|11.1}} '''JDatabase::loadObjectList source code''' on [[jplatform:database/database.php#cl-699|BitBucket]]
* {{JVer|11.1}} Class [[JDatabase/11.1|JDatabase]]
* {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]]
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[JDatabase::loadObjectList|Other versions of JDatabase::loadObjectList]]
* [[API17:JDatabase::loadObjectList|Other versions of JDatabase::loadObjectList]]
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
Line 69: Line 69:
format= ,,,
format= ,,,
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 20:02, 11 May 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

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.

Description:JDatabase::loadObjectList [Edit Descripton]

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

SeeAlso:JDatabase::loadObjectList [Edit See Also]

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();

<CodeExamplesForm />