summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-03-19 21:01:55 +0100
committerTimothy Warren <tim@timshomepage.net>2012-03-19 21:01:55 +0100
commit7eeda537a1fa8dc3a60bbdb88a7e473cc909f590 (patch)
tree5f2a02e74b4f93171dc3c04225eb37c54711caec
parent6c9f06ff70b1d020a9554dc1eaae796f47988d8f (diff)
Made database parent classes and methods abstract
-rw-r--r--system/database/DB_active_rec.php2
-rw-r--r--system/database/DB_driver.php6
2 files changed, 3 insertions, 5 deletions
diff --git a/system/database/DB_active_rec.php b/system/database/DB_active_rec.php
index 35164a79c..89369f190 100644
--- a/system/database/DB_active_rec.php
+++ b/system/database/DB_active_rec.php
@@ -38,7 +38,7 @@
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/database/
*/
-class CI_DB_active_record extends CI_DB_driver {
+abstract class CI_DB_active_record extends CI_DB_driver {
protected $return_delete_sql = FALSE;
protected $reset_delete_data = FALSE;
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index bcff43392..79b7285bd 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -38,7 +38,7 @@
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/database/
*/
-class CI_DB_driver {
+abstract class CI_DB_driver {
public $dsn;
public $username;
@@ -1357,9 +1357,7 @@ class CI_DB_driver {
*
* @return void
*/
- protected function _reset_select()
- {
- }
+ abstract protected function _reset_select();
}