1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:55:55 +00:00

plugin base class: init pdo object

plugins/share: use PDO
This commit is contained in:
Andrew Dolgov
2017-12-03 09:43:18 +03:00
parent 187abfe732
commit b6f3562d1e
2 changed files with 32 additions and 20 deletions

View File

@@ -10,6 +10,10 @@ abstract class Plugin {
abstract function about();
// return array(1.0, "plugin", "No description", "No author", false);
function __construct() {
$this->pdo = Db::pdo();
}
function flags() {
/* associative array, possible keys:
needs_curl = boolean