tmgmt.ui.interface.translator.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Interface for translator ui controllers.
  4. *
  5. * @ingroup tmgmt_translator
  6. */
  7. interface TMGMTTranslatorUIControllerInterface extends TMGMTPluginBaseInterface {
  8. /**
  9. * Form callback for the plugin settings form.
  10. */
  11. public function pluginSettingsForm($form, &$form_state, TMGMTTranslator $translator, $busy = FALSE);
  12. /**
  13. * Form callback for the checkout settings form.
  14. */
  15. public function checkoutSettingsForm($form, &$form_state, TMGMTJob $job);
  16. /**
  17. * Retrieves information about a translation job.
  18. *
  19. * Services based translators with remote states should place a Poll button
  20. * here to sync the job state.
  21. *
  22. * @param TMGMTJob $job
  23. * The translation job.
  24. */
  25. public function checkoutInfo(TMGMTJob $job);
  26. /**
  27. * Form callback for the job item review form.
  28. */
  29. public function reviewForm($form, &$form_state, TMGMTJobItem $item);
  30. /**
  31. * Form callback for the data item element form.
  32. */
  33. public function reviewDataItemElement($form, &$form_state, $data_item_key, $parent_key, array $data_item, TMGMTJobItem $item);
  34. /**
  35. * Validation callback for the job item review form.
  36. */
  37. public function reviewFormValidate($form, &$form_state, TMGMTJobItem $item);
  38. /**
  39. * Submit callback for the job item review form.
  40. */
  41. public function reviewFormSubmit($form, &$form_state, TMGMTJobItem $item);
  42. }