\ThinkDb

ThinkPHP 数据库中间层实现类

Summary

Methods
Properties
Constants
getInstance()
__callStatic()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
parseConfig()
parseDsn()
$instance
$_instance
N/A

Properties

$instance

$instance : 

Type

$_instance

$_instance : 

Type

Methods

getInstance()

getInstance(mixed  $config = array()) : Object

取得数据库类实例

Parameters

mixed $config

连接配置

Returns

Object —

返回数据库驱动类

__callStatic()

__callStatic(  $method,   $params) 

Parameters

$method
$params

parseConfig()

parseConfig(mixed  $config) : array

数据库连接参数解析

Parameters

mixed $config

Returns

array

parseDsn()

parseDsn(string  $dsnStr) : array

DSN解析 格式: mysql://username:passwd@localhost:3306/DbName?param1=val1&param2=val2#utf8

Parameters

string $dsnStr

Returns

array