]> git.wh0rd.org - tt-rss.git/blobdiff - classes/handler.php
article: start pdo
[tt-rss.git] / classes / handler.php
index 53b52ea032c113fc6986e495cb206896d5746e79..483b573e39a3fb0faac481a59e8be65cbcfd77fb 100644 (file)
@@ -1,19 +1,25 @@
 <?php
-class Handler {
-       protected $link;
+class Handler implements IHandler {
+       protected $dbh;
+       protected $pdo;
        protected $args;
 
-       function __construct($link, $args) {
-               $this->link = $link;
+       function __construct($args) {
+               $this->dbh = Db::get();
+               $this->pdo = Db::pdo();
                $this->args = $args;
        }
 
-       function before() {
+       function csrf_ignore($method) {
+               return true;
+       }
+
+       function before($method) {
                return true;
        }
 
        function after() {
                return true;
        }
-}
-?>
+
+}
\ No newline at end of file