move around some methods in base plugins class

master
Andrew Dolgov 4 years ago
parent 20d0cbff77
commit 1a7f724bfa

@ -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;
}
}

Loading…
Cancel
Save