->getDatabaseConnection()

->getDatabaseConnection() – Get the PEAR Database Object

Synopsis

object $DB_DataObject->getDatabaseConnection ( )

Description

Fetch the pear database connection that the object uses - so you can find information or send queries directly to it.

Note

This function can not be called statically.

Example

getting the connection

<?php
$person 
= new DataObjects_Person;
$db=  &$person->getDatabaseConnection();
echo 
$db->phptype;
?>

Sample Output

        

1000_monkeys
Get or set the table keys (Previous) Get the PEAR Database Result Object (Next)
Last updated: Tue, 29 Jul 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.