Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16511 программистов и 1766 роботов. Сейчас ищут 1698 программистов ...
->getDatabaseConnection()
Вернуться к: DB_DataObject
->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.
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
Вернуться к: DB_DataObject