Remove some useless code, extract an exception into its own class

This commit is contained in:
Timothy Warren 2014-08-08 12:48:14 -04:00
parent 676f432d2d
commit 0a0548d754
4 changed files with 27 additions and 12 deletions

View File

@ -35,6 +35,7 @@ define('QDRIVER_PATH', QBASE_PATH.'drivers/');
// Require some common functions
require(QBASE_PATH.'common.php');
require(QBASE_PATH.'core/BadDBDriverException.php');
// Load Query Classes
spl_autoload_register(function ($class)

View File

@ -0,0 +1,26 @@
<?php
/**
* Query
*
* Free Query Builder / Database Abstraction Layer
*
* @package Query
* @author Timothy J. Warren
* @copyright Copyright (c) 2012 - 2014
* @link https://github.com/aviat4ion/Query
* @license http://philsturgeon.co.uk/code/dbad-license
*/
// --------------------------------------------------------------------------
namespace Query;
/**
* Generic exception for bad drivers
*
* @package Query
* @subpackage Core
*/
class BadDBDriverException extends \InvalidArgumentException {}
// End of BadDBDriverException.php

View File

@ -15,8 +15,6 @@
namespace Query\Driver;
use Query\Table\Table_Builder;
// --------------------------------------------------------------------------
/**

View File

@ -15,16 +15,6 @@
namespace Query;
/**
* Generic exception for bad drivers
*
* @package Query
* @subpackage Core
*/
class BadDBDriverException extends \InvalidArgumentException {}
// --------------------------------------------------------------------------
/**
* Connection manager class to manage connections for the
* Query method