plugin.php 576 B

12345678910111213141516171819202122232425262728293031323334353637
  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 get_js() {
  21. return "";
  22. }
  23. function get_prefs_js() {
  24. return "";
  25. }
  26. function api_version() {
  27. return Plugin::API_VERSION_COMPAT;
  28. }
  29. }
  30. ?>