JDatabaseMySQLi::loadObject: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
This global function loads the first row of a query into an object. | This global function loads the first row of a query into an object. | ||
===Synopsis=== | ===Synopsis=== | ||
<source lang="php"> | <source lang="php"> | ||
public | public JDatabaseMySQLi::loadObject ($className= 'stdClass') | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 28: | Line 26: | ||
object | object | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/database/database/mysqli.php | libraries/joomla/database/database/mysqli.php (line 432) | ||
* see source code in [[jplatform:database/database/mysqli.php#cl-432|BitBucket]] | |||
===Referenced by=== | ===Referenced by=== | ||
===See also=== | ===See also=== | ||
* [[API17:JDatabaseMySQLi|JDatabaseMySQLi]] | |||
* [[API17:JDatabaseMySQLi::loadObject|Other versions of this method]] | |||
* [[JDatabaseMySQLi::loadObject|Other versions of this method]] | |||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JDatabaseMySQLi::loadObject | category=JDatabaseMySQLi::loadObject | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 02:41, 25 March 2017
JDatabaseMySQLi::loadObject
Description
This global function loads the first row of a query into an object.
Synopsis
public JDatabaseMySQLi::loadObject ($className= 'stdClass')
| Parameter | Type | Default | Description |
|---|---|---|---|
| $className | string | 'stdClass' | The name of the class to return (stdClass by default). |
Returns
object
Defined in
libraries/joomla/database/database/mysqli.php (line 432)
- see source code in BitBucket
Referenced by
See also
Examples
Code Examples