No Description

DbAdapterFactory.php 375B

123456789101112131415
  1. <?php
  2. class LtDbAdapterFactory
  3. {
  4. public function getConnectionAdapter($connectionAdapterType)
  5. {
  6. $LtDbConnectionAdapter = "LtDbConnectionAdapter" . ucfirst($connectionAdapterType);
  7. return new $LtDbConnectionAdapter;
  8. }
  9. public function getSqlAdapter($sqlAdapterType)
  10. {
  11. $LtDbSqlAdapter = "LtDbSqlAdapter" . ucfirst($sqlAdapterType);
  12. return new $LtDbSqlAdapter;
  13. }
  14. }