tmgmt.plugin.base.inc 607 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * Contains the base plugin class.
  5. */
  6. /**
  7. * Base class for Translation Management plugins.
  8. */
  9. class TMGMTPluginBase implements TMGMTPluginBaseInterface {
  10. protected $pluginType;
  11. protected $pluginInfo;
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function __construct($type, $plugin) {
  16. $this->pluginType = $plugin;
  17. $this->pluginInfo = _tmgmt_plugin_info($type, $plugin);
  18. }
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public function pluginInfo() {
  23. return $this->pluginInfo;
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function pluginType() {
  29. return $this->pluginType;
  30. }
  31. }