tmgmt.plugin.interface.base.inc 577 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @file
  4. * Contains the base plugin interface.
  5. */
  6. /**
  7. * Base interface for Translation Management plugins.
  8. */
  9. interface TMGMTPluginBaseInterface {
  10. /**
  11. * Constructor.
  12. *
  13. * @param $type
  14. * The plugin type.
  15. * @param $plugin
  16. * The machine-readable name of the plugin.
  17. */
  18. public function __construct($type, $plugin);
  19. /**
  20. * Returns the info of the type of the plugin.
  21. *
  22. * @see tmgmt_source_plugin_info()
  23. */
  24. public function pluginInfo();
  25. /**
  26. * Returns the type of the plugin.
  27. */
  28. public function pluginType();
  29. }