JDatabase::loadObject: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Method to get the first row of the result set from the database query as an object. | Method to get the first row of the result set from the database query as an object. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 30: | Line 30: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]] | ||
* [[API17:JDatabase::loadObject|Other versions of JDatabase::loadObject]] | * [[API17:JDatabase::loadObject|Other versions of JDatabase::loadObject]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabase::loadObject | category=JDatabase::loadObject | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 02:34, 25 March 2017
JDatabase::loadObject
Description
Method to get the first row of the result set from the database query as an object.
public function loadObject ($class= 'stdClass')
| Parameter | Type | Default | Description |
|---|---|---|---|
| $class | 'stdClass' |
- Returns mixed The return value or null if the query failed.
- Defined on line 671 of libraries/joomla/database/database.php
- Since

See also
JDatabase::loadObject source code on BitBucket
Class JDatabase
Subpackage Database- Other versions of JDatabase::loadObject
User contributed notes
Code Examples