SmsPluginLibraryInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. }