If you believe that database abstraction is a good think, but you don't want to join the religous fights about the best one out there, then we have a common interest. / This abstract wrapper class provides easy and simple class methods to access the most important db function. / Classes implementing the functionality for native PHP functions, PEAR, PHPLIB and METABASE enables you to switch between these db abstraction layers by changing only a single line of code. / Now you are able to use a unifed abstraction layer for database access and / switch between the underlaying layers. / CONSTRUCTOR: / function AbstractDB($libraryPath, $dbType, $resultType) / FUNCTIONS: / function connect($host, $db, $user, $password) / function disconnect() / function query($query, $resultType) / function nextResult() / function allResults() / function numRows() / function affectedRows() / function getIdentifier() / function getDbType() / PUBLIC VARS: / var $host / var $database / var $user / var $password / var $lastQuery / var $resType / var $error / var $db / var $result
|