API16

JDatabase/loadObjectList

From Joomla! Documentation

< API16:JDatabase

The "API16" 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.

Description[edit]

Load a list of database objects


<! removed transcluded page call, red link never existed >

Syntax[edit]

loadObjectList($key='')
Parameter Name Default Value Description
$key The field name of a primary key

Returns[edit]

array If $key is empty as sequential list of returned records. If $key is not empty then the returned array is indexed by the value the database key. Returns null if the query fails.

Defined in[edit]

libraries/joomla/database/database.php

Importing[edit]

jimport( 'joomla.database.database' );

Source Body[edit]


<! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]