move around some methods in base plugins class

This commit is contained in:
Andrew Dolgov 2021-03-02 12:15:42 +03:00
parent 20d0cbff77
commit 1a7f724bfa
1 changed files with 6 additions and 6 deletions

View File

@ -2,11 +2,10 @@
abstract class Plugin {
const API_VERSION_COMPAT = 1;
/** @var PDO */
/** @var PDO $pdo */
protected $pdo;
/* @var PluginHost $host */
abstract function init($host);
abstract function init(PluginHost $host);
abstract function about();
// return array(1.0, "plugin", "No description", "No author", false);
@ -26,6 +25,10 @@ abstract class Plugin {
return false;
}
function csrf_ignore($method) {
return false;
}
function get_js() {
return "";
}
@ -55,7 +58,4 @@ abstract class Plugin {
return vsprintf($this->__($msgid), $args);
}
function csrf_ignore($method) {
return false;
}
}