API17

JDatabase::loadObjectList: Difference between revisions

From Joomla! Documentation

m JoomlaWikiBot moved page JDatabase::loadObjectList/11.1 to API17:JDatabase::loadObjectList without leaving a redirect: Robot: Moved page
m preparing for archive only
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
Method to get an array of the result set rows from the database query where each row is an object.  
Method to get an array of the result set rows from the database query where each row is an object.  


{{Description:JDatabase::loadObjectList}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDatabase::loadObjectList|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public function loadObjectList (
public function loadObjectList (
Line 36: Line 34:
===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]]
{{SeeAlso:JDatabase::loadObjectList}}
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::loadObjectList|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===


Line 59: Line 55:




<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JDatabase::loadObjectList
category=JDatabase::loadObjectList
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
Line 69: Line 65:
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JDatabase]][[Category:JDatabase::loadObjectList]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:34, 25 March 2017

Joomla 11.1 JDatabase::loadObjectList

Description

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


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

See also


User contributed notes

Examples

// 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');
$query->where('cats.id="1"');
$db->setQuery($query);
$Category = $db->loadObjectList();


Code Examples