33 lines
451 B
PHP
33 lines
451 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();
|
|
|
|
return $dbObject->getAdapter();
|
|
}
|
|
|
|
public function getPdo()
|
|
{
|
|
return new WestdcDb\Pdo;
|
|
}
|
|
|
|
public function getDbh()
|
|
{
|
|
return new WestdcDb\Dbh;
|
|
}
|
|
|
|
|
|
}
|