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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user