westdc-core/Westdc/Service/ServiceAgent/Db.php

33 lines
509 B
PHP
Raw Normal View History

<?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(){
2015-01-24 08:37:09 +00:00
return WestdcDb\Db::getInstance();
}
public function getPdo()
{
return WestdcDb\Pdo::getInstance();
}
public function getDbh()
{
return new WestdcDb\Dbh;
}
public function getRecordHandle()
{
return new WestdcDb\Record;
}
}