CONST MAX_SMS_CHAR = 460;
/**
- * singleton function used to manage this object
+ * Singleton function used to manage this object
*
* @param array $providerParams
* @param bool $force
* @return object
* @static
*/
- static function &singleton($providerParams = array(
- ), $force = FALSE) {
+ static function &singleton($providerParams = array(), $force = FALSE) {
$mailingID = CRM_Utils_Array::value('mailing_id', $providerParams);
$providerID = CRM_Utils_Array::value('provider_id', $providerParams);
$providerName = CRM_Utils_Array::value('provider', $providerParams);
abstract function send($recipients, $header, $message, $dncID = NULL);
/**
- * Function to return message text. Child class could override this function to have better control over the message being sent.
+ * Return message text. Child class could override this function to have better control over the message being sent.
*
* @access public
*/
}
/**
- * @param $apiMsgID
+ * @param int $apiMsgID
* @param $message
* @param array $headers
- * @param null $jobID
- * @param null $userID
+ * @param int $jobID
+ * @param int $userID
*
* @return $this|null|object
* @throws CRM_Core_Exception
*/
- function createActivity($apiMsgID, $message, $headers = array(
- ), $jobID = NULL, $userID = NULL) {
+ function createActivity($apiMsgID, $message, $headers = array(), $jobID = NULL, $userID = NULL) {
if ($jobID) {
$sql = "
SELECT scheduled_id FROM civicrm_mailing m
}
/**
- * @param $name
+ * @param string $name
* @param $type
* @param bool $abort
* @param null $default
* @param $from
* @param $body
* @param null $to
- * @param null $trackID
+ * @param int $trackID
*
* @return $this|null|object
* @throws CRM_Core_Exception