SmsPluginLibraryInterface.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. * @return mixed
  22. */
  23. public function send($additionalParameters);
  24. /**
  25. * @param array $additionalParameters
  26. * @return mixed
  27. */
  28. public function getSms($additionalParameters);
  29. /**
  30. * buildSms (builds an SMS from a template and data)
  31. * @param object ClockworksmsPlugin object
  32. * @param object Template object
  33. * @param string Template file name
  34. * @param string Text key from lang file
  35. * @param array Data to fill message variables (if any)
  36. * @return object Template object with message property updated
  37. */
  38. public function buildSms($plugin, $tpl, $templateName, $messageKey, $parameters = null);
  39. }