]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler.php
article: start pdo
[tt-rss.git] / classes / handler.php
index d8e2a3025cfb47d329577391f6791868bbe47b28..483b573e39a3fb0faac481a59e8be65cbcfd77fb 100644 (file)
@@ -1,10 +1,12 @@
 <?php
 class Handler implements IHandler {
        protected $dbh;
+       protected $pdo;
        protected $args;
 
-       function __construct($dbh, $args) {
-               $this->dbh = $dbh;
+       function __construct($args) {
+               $this->dbh = Db::get();
+               $this->pdo = Db::pdo();
                $this->args = $args;
        }
 
@@ -20,5 +22,4 @@ class Handler implements IHandler {
                return true;
        }
 
-}
-?>
+}
\ No newline at end of file