SmsPluginLibraryInterface.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Class SmsPluginLibraryInterface
  5. *
  6. * @author Julio Montoya
  7. *
  8. */
  9. interface SmsPluginLibraryInterface
  10. {
  11. /**
  12. * getMobilePhoneNumberById (retrieves a user mobile phone number by user id)
  13. *
  14. * @param int $userId
  15. *
  16. * @return int User's mobile phone number
  17. */
  18. public function getMobilePhoneNumberById($userId);
  19. /**
  20. * @param array $additionalParameters
  21. *
  22. * @return mixed
  23. */
  24. public function send($additionalParameters);
  25. /**
  26. * @param array $additionalParameters
  27. *
  28. * @return mixed
  29. */
  30. public function getSms($additionalParameters);
  31. /**
  32. * buildSms (builds an SMS from a template and data)
  33. * @param object $plugin ClockworksmsPlugin object
  34. * @param object $tpl Template object
  35. * @param string $templateName Template file name
  36. * @param string $messageKey Text key from lang file
  37. * @param array $parameters Data to fill message variables (if any)
  38. *
  39. * @return object Template object with message property updated
  40. */
  41. public function buildSms($plugin, $tpl, $templateName, $messageKey, $parameters = null);
  42. }