Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Amf/Adobe/DbInspector.php
Go to the documentation of this file.
00001 <?php
00030 class Zend_Amf_Adobe_DbInspector
00031 {
00032 
00041     protected function _connect($dbType, $dbDescription)
00042     {
00043         if(is_object($dbDescription)) {
00044             $dbDescription = get_object_vars($dbDescription);
00045         }
00046         return Zend_Db::factory($dbType, $dbDescription);
00047     }
00048 
00070     public function describeTable($dbType, $dbDescription, $tableName)
00071     {
00072         $db = $this->_connect($dbType, $dbDescription);
00073         return $db->describeTable($tableName);
00074     }
00075 
00084     public function connect($dbType, $dbDescription)
00085     {
00086         $db = $this->_connect($dbType, $dbDescription);
00087         $db->listTables();
00088         return true;
00089     }
00090 
00098     public function getTables($dbType, $dbDescription)
00099     {
00100         $db = $this->_connect($dbType, $dbDescription);
00101         return $db->listTables();
00102     }
00103 }
 All Data Structures Namespaces Files Functions Variables Enumerations