Moodle  2.2.1
http://www.collinsharper.com
Zend_Amf_Adobe_DbInspector Class Reference

Public Member Functions

 describeTable ($dbType, $dbDescription, $tableName)
 connect ($dbType, $dbDescription)
 getTables ($dbType, $dbDescription)

Protected Member Functions

 _connect ($dbType, $dbDescription)

Detailed Description

Definition at line 30 of file DbInspector.php.


Member Function Documentation

_connect ( dbType,
dbDescription 
) [protected]

Connect to the database

Parameters:
string$dbTypeDatabase adapter type for Zend_Db
array | object$dbDescriptionAdapter-specific connection settings
Returns:
Zend_Db_Adapter_Abstract
See also:
Zend_Db::factory()

Definition at line 41 of file DbInspector.php.

Here is the caller graph for this function:

connect ( dbType,
dbDescription 
)

Test database connection

Parameters:
string$dbTypeDatabase adapter type for Zend_Db
array | object$dbDescriptionAdapter-specific connection settings
Returns:
bool
See also:
Zend_Db::factory()

Definition at line 84 of file DbInspector.php.

Here is the call graph for this function:

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' );

Parameters:
string$dbTypeDatabase adapter type for Zend_Db
array | object$dbDescriptionAdapter-specific connection settings
string$tableNameTable name
Returns:
array Table description
See also:
Zend_Db::describeTable()
Zend_Db::factory()

Definition at line 70 of file DbInspector.php.

Here is the call graph for this function:

getTables ( dbType,
dbDescription 
)

Get the list of database tables

Parameters:
string$dbTypeDatabase adapter type for Zend_Db
array | object$dbDescriptionAdapter-specific connection settings
Returns:
array List of the tables

Definition at line 98 of file DbInspector.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations