->getDatabaseResult()
->getDatabaseResult() – Get the PEAR Database Result Object
Synopsis
object $DB_DataObject->getDatabaseResult (
)
Описание
Fetch the pear database result object - so you can use it with things like the Pager or HTML_Select classes
Замечание
This function can not be called statically.
Пример
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');
?>