plugin.php 691 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 flags() {
  15. /* associative array, possible keys:
  16. needs_curl = boolean
  17. */
  18. return array();
  19. }
  20. /**
  21. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  22. */
  23. function is_public_method($method) {
  24. return false;
  25. }
  26. function get_js() {
  27. return "";
  28. }
  29. function get_prefs_js() {
  30. return "";
  31. }
  32. function api_version() {
  33. return Plugin::API_VERSION_COMPAT;
  34. }
  35. }