plugin.php 466 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. class Plugin {
  3. private $dbh;
  4. private $host;
  5. const API_VERSION_COMPAT = 1;
  6. function init($host) {
  7. $this->dbh = $host->get_dbh();
  8. $this->host = $host;
  9. }
  10. function about() {
  11. // version, name, description, author, is_system
  12. return array(1.0, "plugin", "No description", "No author", false);
  13. }
  14. function get_js() {
  15. return "";
  16. }
  17. function get_prefs_js() {
  18. return "";
  19. }
  20. function api_version() {
  21. return Plugin::API_VERSION_COMPAT;
  22. }
  23. }
  24. ?>