plugin.php 634 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. function is_public_method($method) {
  21. return false;
  22. }
  23. function get_js() {
  24. return "";
  25. }
  26. function get_prefs_js() {
  27. return "";
  28. }
  29. function api_version() {
  30. return Plugin::API_VERSION_COMPAT;
  31. }
  32. }
  33. ?>