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