2011-12-12 20:32:29 +01:00
|
|
|
<?php
|
2012-12-23 20:05:51 +01:00
|
|
|
class Handler implements IHandler {
|
2013-04-17 14:23:15 +02:00
|
|
|
protected $dbh;
|
2017-12-01 13:31:16 +01:00
|
|
|
protected $pdo;
|
2011-12-12 20:32:29 +01:00
|
|
|
protected $args;
|
|
|
|
|
2013-04-18 21:19:14 +02:00
|
|
|
function __construct($args) {
|
|
|
|
$this->dbh = Db::get();
|
2017-12-01 13:31:16 +01:00
|
|
|
$this->pdo = Db::pdo();
|
2011-12-12 20:32:29 +01:00
|
|
|
$this->args = $args;
|
|
|
|
}
|
|
|
|
|
2011-12-26 09:02:52 +01:00
|
|
|
function csrf_ignore($method) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-07-05 20:43:44 +02:00
|
|
|
function before($method) {
|
2011-12-12 20:32:29 +01:00
|
|
|
return true;
|
|
|
|
}
|
2011-12-12 21:20:53 +01:00
|
|
|
|
|
|
|
function after() {
|
|
|
|
return true;
|
|
|
|
}
|
2012-09-10 17:01:06 +02:00
|
|
|
|
2017-04-26 19:24:18 +02:00
|
|
|
}
|