Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

SMS

Danh sách các phương thức công khai của lớp Zittme\Framework\SMS. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/SMS.php

Phương thức công khai

  • 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.