->getDatabaseConnection()

->getDatabaseConnection() – Get the PEAR Database Object

Synopsis

object $DB_DataObject->getDatabaseConnection ( )

Описание

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

Замечание

This function can not be called statically.

Пример

getting the connection

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

Sample Output

        

1000_monkeys
    Поддержать сайт на родительском проекте КГБ