previous->getDatabaseConnection() (Previous) (Next) DB_DataObject::debugLevelnext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

->getDatabaseResult()

->getDatabaseResult() – PEAR データベースの結果オブジェクトを取得する

Synopsis

object $DB_DataObject->getDatabaseResult ( )

Description

PEAR データベースの結果オブジェクトを取得します。 これにより、Pager クラスや HTML_Select クラスなどと連携することができます。

Note

This function can not be called statically.

Example

結果オブジェクトの取得

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

$res=  $person->getDatabaseResult();
$quickFormSelect->loadDbResult($res,'id','name');
?>
previous->getDatabaseConnection() (Previous) (Next) DB_DataObject::debugLevelnext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.