Fixed inheritance issue
This commit is contained in:
parent
377c319bd2
commit
7a47906743
@ -19,14 +19,17 @@
|
|||||||
*/
|
*/
|
||||||
abstract class DB_PDO extends PDO {
|
abstract class DB_PDO extends PDO {
|
||||||
|
|
||||||
protected $statement;
|
protected $statement, $manip;
|
||||||
|
|
||||||
function __construct($dsn, $username=NULL, $password=NULL, $driver_options=array())
|
function __construct($dsn, $username=NULL, $password=NULL, $driver_options=array())
|
||||||
{
|
{
|
||||||
parent::__construct($dsn, $username, $password, $driver_options);
|
parent::__construct($dsn, $username, $password, $driver_options);
|
||||||
|
|
||||||
$class = __CLASS__.'_manip';
|
if(__CLASS__ !== "DB_PDO")
|
||||||
$this->manip = new $class;
|
{
|
||||||
|
$class = __CLASS__.'_manip';
|
||||||
|
$this->manip = new $class;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user