审查视图

simplewind/extend/alipay/lotusphp_runtime/DB/DbAdapterFactory.php 375 字节
lihan authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php
class LtDbAdapterFactory
{
	public function getConnectionAdapter($connectionAdapterType)
	{
		$LtDbConnectionAdapter = "LtDbConnectionAdapter" . ucfirst($connectionAdapterType);
		return new $LtDbConnectionAdapter;
	}

	public function getSqlAdapter($sqlAdapterType)
	{
		$LtDbSqlAdapter = "LtDbSqlAdapter" . ucfirst($sqlAdapterType);
		return new $LtDbSqlAdapter;
	}
}