33 lines
459 B
PHP
33 lines
459 B
PHP
|
<?php
|
||
|
/**
|
||
|
* Created by PhpStorm.
|
||
|
* User: liujin834
|
||
|
* Date: 14/12/13
|
||
|
* Time: 上午11:41
|
||
|
*/
|
||
|
|
||
|
namespace Westdc\Service\ServiceAgent;
|
||
|
|
||
|
use Westdc\Db as WestdcDb;
|
||
|
|
||
|
class Db {
|
||
|
|
||
|
public function getZendDb(){
|
||
|
|
||
|
$dbObject = new WestdcDb\Db($adapter);
|
||
|
|
||
|
return $dbObject->getAdapter();
|
||
|
}
|
||
|
|
||
|
public function getPdo()
|
||
|
{
|
||
|
return new WestdcDb\Pdo;
|
||
|
}
|
||
|
|
||
|
public function getDbh()
|
||
|
{
|
||
|
return new WestdcDb\Dbh;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|