[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Amf/Adobe/ -> DbInspector.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 103 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Amf_Adobe_DbInspector:: (4 methods):
  _connect()
  describeTable()
  connect()
  getTables()


Class: Zend_Amf_Adobe_DbInspector  - X-Ref

This class implements authentication against XML file with roles for Flex Builder.

_connect($dbType, $dbDescription)   X-Ref
Connect to the database

param: string $dbType Database adapter type for Zend_Db
param: array|object $dbDescription Adapter-specific connection settings
return: Zend_Db_Adapter_Abstract

describeTable($dbType, $dbDescription, $tableName)   X-Ref
Describe database object.

Usage example:
$inspector->describeTable('Pdo_Mysql',
array(
'host'     => '127.0.0.1',
'username' => 'webuser',
'password' => 'xxxxxxxx',
'dbname'   => 'test'
),
'mytable'
);

param: string $dbType Database adapter type for Zend_Db
param: array|object $dbDescription Adapter-specific connection settings
param: string $tableName Table name
return: array Table description

connect($dbType, $dbDescription)   X-Ref
Test database connection

param: string $dbType Database adapter type for Zend_Db
param: array|object $dbDescription Adapter-specific connection settings
return: bool

getTables($dbType, $dbDescription)   X-Ref
Get the list of database tables

param: string $dbType Database adapter type for Zend_Db
param: array|object $dbDescription Adapter-specific connection settings
return: array List of the tables



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1