Skip to content
Permalink
Browse files

Adding initial thoughts o an abstract driver class

  • Loading branch information...
lorenzo committed May 27, 2012
1 parent 121a06a commit 417ca215c6eca6a8b0a7bbd86a50869cf2cab0c0
Showing with 26 additions and 0 deletions.
  1. +26 −0 lib/Cake/Model/Datasource/Database/Driver.php
@@ -0,0 +1,26 @@
<?php
namespace Cake\Model\Datasource\Database;
/**
* Represents a database diver containing all specificities for
* a database engine including its SQL dialect
*
**/
abstract class Driver {
/**
* Establishes a conenction to the databse server
*
* @return boolean true con success
**/
public abstract function connect($config = array());
/**
* Returns wheter php is able to use this driver for connecting to database
*
* @return boolean true if it is valid to use this driver
**/
public abstract function enabled();
}

0 comments on commit 417ca21

Please sign in to comment.
You can’t perform that action at this time.