plugin.php 573 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. abstract class Plugin {
  3. const API_VERSION_COMPAT = 1;
  4. abstract function init($host);
  5. abstract function about();
  6. // return array(1.0, "plugin", "No description", "No author", false);
  7. function flags() {
  8. /* associative array, possible keys:
  9. needs_curl = boolean
  10. */
  11. return array();
  12. }
  13. /**
  14. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  15. */
  16. function is_public_method($method) {
  17. return false;
  18. }
  19. function get_js() {
  20. return "";
  21. }
  22. function get_prefs_js() {
  23. return "";
  24. }
  25. function api_version() {
  26. return Plugin::API_VERSION_COMPAT;
  27. }
  28. }