getAdapter() getAdapter(mixed $config = null) : object Get a connection with Adapter If $config is string, this function will get config from Yesf::app()->getConfig If $config is array, this function will use it directly Parameters mixed $config Returns object
setDriver() setDriver(string $type, string $className) 注册自定义Driver Parameters string $type string $className 类名
setAdapter() setAdapter(string $type, string $className) 注册自定义Adapter Parameters string $type string $className 类名