You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
![]()
11 years ago
|
<?php
|
||
|
/* For licensing terms, see /license.txt */
|
||
|
|
||
|
/**
|
||
![]()
8 years ago
|
* Class SmsPluginLibraryInterface.
|
||
![]()
11 years ago
|
*
|
||
|
* @author Julio Montoya
|
||
|
*/
|
||
|
interface SmsPluginLibraryInterface
|
||
|
{
|
||
|
/**
|
||
![]()
8 years ago
|
* getMobilePhoneNumberById (retrieves a user mobile phone number by user id).
|
||
![]()
11 years ago
|
*
|
||
|
* @param int $userId
|
||
|
*
|
||
![]()
8 years ago
|
* @return int User's mobile phone number
|
||
![]()
11 years ago
|
*/
|
||
|
public function getMobilePhoneNumberById($userId);
|
||
|
|
||
|
/**
|
||
|
* @param array $additionalParameters
|
||
![]()
10 years ago
|
*
|
||
![]()
11 years ago
|
* @return mixed
|
||
|
*/
|
||
|
public function send($additionalParameters);
|
||
|
|
||
|
/**
|
||
|
* @param array $additionalParameters
|
||
![]()
10 years ago
|
*
|
||
![]()
11 years ago
|
* @return mixed
|
||
|
*/
|
||
|
public function getSms($additionalParameters);
|
||
|
|
||
|
/**
|
||
![]()
8 years ago
|
* buildSms (builds an SMS from a template and data).
|
||
|
*
|
||
|
* @param object $plugin ClockworksmsPlugin object
|
||
|
* @param object $tpl Template object
|
||
|
* @param string $templateName Template file name
|
||
|
* @param string $messageKey Text key from lang file
|
||
|
* @param array $parameters Data to fill message variables (if any)
|
||
![]()
10 years ago
|
*
|
||
![]()
8 years ago
|
* @return object Template object with message property updated
|
||
![]()
11 years ago
|
*/
|
||
|
public function buildSms($plugin, $tpl, $templateName, $messageKey, $parameters = null);
|
||
|
}
|