->getDatabaseResult()

->getDatabaseResult() – Get the PEAR Database Result Object

Synopsis

object $DB_DataObject->getDatabaseResult ( )

Description

Fetch the pear database result object - so you can use it with things like the Pager or HTML_Select classes

Note

This function can not be called statically.

Example

getting the result object

<?php
$person 
= new DataObjects_Person;
$person->hair 'green';
$person->selectAdd();
$person->selectAdd('id,name');
$person->find();

$res=  $person->getDatabaseResult();
$quickFormSelect->loadDbResult($res,'id','name');
?>
Get the PEAR Database Object (Previous) set the amount of debugging output (Next)
Last updated: Thu, 21 Aug 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.