|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| describeTable ($dbType, $dbDescription, $tableName) | |
| connect ($dbType, $dbDescription) | |
| getTables ($dbType, $dbDescription) | |
Protected Member Functions | |
| _connect ($dbType, $dbDescription) | |
Definition at line 30 of file DbInspector.php.
| _connect | ( | $ | dbType, |
| $ | dbDescription | ||
| ) | [protected] |
Connect to the database
| string | $dbType | Database adapter type for Zend_Db |
| array | object | $dbDescription | Adapter-specific connection settings |
Definition at line 41 of file DbInspector.php.

| connect | ( | $ | dbType, |
| $ | dbDescription | ||
| ) |
Test database connection
| string | $dbType | Database adapter type for Zend_Db |
| array | object | $dbDescription | Adapter-specific connection settings |
Definition at line 84 of file DbInspector.php.

| describeTable | ( | $ | dbType, |
| $ | dbDescription, | ||
| $ | tableName | ||
| ) |
Describe database object.
Usage example: $inspector->describeTable('Pdo_Mysql', array( 'host' => '127.0.0.1', 'username' => 'webuser', 'password' => 'xxxxxxxx', 'dbname' => 'test' ), 'mytable' );
| string | $dbType | Database adapter type for Zend_Db |
| array | object | $dbDescription | Adapter-specific connection settings |
| string | $tableName | Table name |
Definition at line 70 of file DbInspector.php.

| getTables | ( | $ | dbType, |
| $ | dbDescription | ||
| ) |
Get the list of database tables
| string | $dbType | Database adapter type for Zend_Db |
| array | object | $dbDescription | Adapter-specific connection settings |
Definition at line 98 of file DbInspector.php.
