SMS
Zittme\Framework\SMS 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.
소스: common/framework/SMS.php
공개 메서드
static function setDefaultDriver(Drivers\SMSInterface $driver)- Set the default driver.
static function getDefaultDriver()- Get the default driver.
static function addDriver(Drivers\SMSInterface $driver)- Add a custom mail driver.
static function getSupportedDrivers()- Get the list of supported mail drivers.
function __construct()- The constructor.
function setFrom(string $number)- Set the sender's phone number.
function getFrom()- Get the sender's phone number.
function addTo(string $number, string $country = '0')- Add a recipient.
function getRecipients()- Get the list of recipients without country codes.
function getRecipientsWithCountry()- Get the list of recipients with country codes.
function getRecipientsGroupedByCountry()- Get the list of recipients grouped by country code.
function setSubject(string $subject)- Set the subject.
function getSubject()- Get the subject.
function setTitle(string $subject)- Set the subject (alias to setSubject).
function getTitle()- Get the subject (alias to getSubject).
function setBody(string $content)- Set the content.
function getBody()- Get the content.
function setContent(string $content)- Set the content (alias to setBody).
function getContent()- Get the content (alias to getBody).
function attach(string $local_filename, ?string $display_filename = null)- Attach a file.
function getAttachments()- Get the list of attachments to this message.
function setExtraVar(string $key, $value)- Set an extra variable.
function getExtraVar(string $key)- Get an extra variable.
function getExtraVars()- Get all extra variables.
function setExtraVars(array $vars)- Set all extra variables.
function setDelay(int $when)- Delay sending the message.
function getDelay()- Get the Unix timestamp of when to send the message.
function forceSMS()- Force this message to use SMS (not LMS or MMS).
function unforceSMS()- Unforce this message to use SMS (not LMS or MMS).
function isForceSMS()- Check if this message is forced to use SMS.
function allowSplitSMS()- Allow this message to be split into multiple SMS.
function allowSplitLMS()- Allow this message to be split into multiple LMS.
function disallowSplitSMS()- Disallow this message to be split into multiple SMS.
function disallowSplitLMS()- Disallow this message to be split into multiple LMS.
function isSplitSMSAllowed()- Check if splitting this message into multiple SMS is allowed.
function isSplitLMSAllowed()- Check if splitting this message into multiple LMS is allowed.
function send(bool $sync = false)- Send the message.
static function sendAsync(self $sms)- Send an SMS asynchronously (for Queue integration).
function isSent()- Check if the message was sent.
function getCaller()- Get caller information.
function getErrors()- Get errors.
function addError(string $message)- Add an error message.