]> git.wh0rd.org - tt-rss.git/blobdiff - classes/plugin.php
auth_internal: use PDO + other fixes
[tt-rss.git] / classes / plugin.php
index 5939d51c0c61345771ae8ca5e1cd5f31a1a9c612..fb4e08fb15d7f1a924e07d03b03d10901faa5e4a 100644 (file)
@@ -1,19 +1,14 @@
 <?php
-class Plugin {
-       private $dbh;
-       private $host;
-
+abstract class Plugin {
        const API_VERSION_COMPAT = 1;
 
-       function init($host) {
-               $this->dbh = $host->get_dbh();
-               $this->host = $host;
-       }
+       /** @var PDO */
+       protected $pdo;
 
-       function about() {
-               // version, name, description, author, is_system
-               return array(1.0, "plugin", "No description", "No author", false);
-       }
+       abstract function init($host);
+
+       abstract function about();
+       // return array(1.0, "plugin", "No description", "No author", false);
 
        function flags() {
                /* associative array, possible keys: