API17

JDatabase::loadObject: Difference between revisions

From Joomla! Documentation

m See also: moving preparation
m clean up
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.  


{{Description:JDatabase::loadObject}}
{{subst:Description:JDatabase::loadObject}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[Description:JDatabase::loadObject|Edit Descripton]]<nowiki>]</nowiki>
</span>
<source lang="php">
<source lang="php">
public function loadObject ($class= 'stdClass')
public function loadObject ($class= 'stdClass')
Line 32: 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]]
{{SeeAlso:JDatabase::loadObject}}
{{subst:SeeAlso:JDatabase::loadObject}}
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDatabase::loadObject|Edit See Also]]<nowiki>]</nowiki>
</span>
===User contributed notes===
===User contributed notes===
<CodeExamplesForm />
<CodeExamplesForm />

Revision as of 14:59, 24 March 2017

Joomla 11.1 JDatabase::loadObject

Description

Method to get the first row of the result set from the database query as an object.

{{subst:Description:JDatabase::loadObject}}

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 Joomla 11.1

See also

{{subst:SeeAlso:JDatabase::loadObject}}

User contributed notes

<CodeExamplesForm />