API17

Difference between revisions of "JDatabaseSQLSrv::fetchObject"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
 
m (preparing for archive only)
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
Method to fetch a row from the result set cursor as an object.  
 
Method to fetch a row from the result set cursor as an object.  
  
{{Description:JDatabaseSQLSrv::fetchObject}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JDatabaseSQLSrv::fetchObject|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<source lang="php">
 
<source lang="php">
 
protected function fetchObject (
 
protected function fetchObject (
Line 37: Line 35:
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JDatabaseSQLSrv::fetchObject source code''' on [[jplatform:database/database/sqlsrv.php#cl-630|BitBucket]]
 
* {{JVer|11.1}} '''JDatabaseSQLSrv::fetchObject source code''' on [[jplatform:database/database/sqlsrv.php#cl-630|BitBucket]]
* {{JVer|11.1}} Class [[JDatabaseSQLSrv/11.1|JDatabaseSQLSrv]]
+
* {{JVer|11.1}} Class [[API17:JDatabaseSQLSrv|JDatabaseSQLSrv]]
* {{JVer|11.1}} Subpackage [[Subpackage_Database/11.1|Database]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[JDatabaseSQLSrv::fetchObject|Other versions of JDatabaseSQLSrv::fetchObject]]
+
* [[API17:JDatabaseSQLSrv::fetchObject|Other versions of JDatabaseSQLSrv::fetchObject]]
{{SeeAlso:JDatabaseSQLSrv::fetchObject}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JDatabaseSQLSrv::fetchObject|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
<CodeExamplesForm />
+
=== Code Examples ===
 
<dpl>
 
<dpl>
 
noresultsheader=\n
 
noresultsheader=\n
 
category=JDatabaseSQLSrv::fetchObject
 
category=JDatabaseSQLSrv::fetchObject
category=CodeExample
+
namespace=CodeExample
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
Line 55: Line 51:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JDatabaseSQLSrv]][[Category:JDatabaseSQLSrv::fetchObject]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:49, 24 March 2017

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JDatabaseSQLSrv::fetchObject[edit]

Description[edit]

Method to fetch a row from the result set cursor as an object.


protected function fetchObject (
        $cursor=null
        $class= 'stdClass'
)
Parameter Type Default Description
$cursor mixed null The optional result set cursor from which to fetch the row.
$class string 'stdClass' The class name to use for the returned row object.
  • Returns mixed Either the next row from the result set or false if there are no more rows.
  • Defined on line 638 of libraries/joomla/database/database/sqlsrv.php
  • Since Joomla 11.1

See also[edit]


User contributed notes[edit]

Code Examples[edit]