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

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

Push

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

Nguồn: common/framework/Push.php

Phương thức công khai

  • static function addDriver(string $name, Drivers\PushInterface $driver)
  • Add a custom Push driver.
  • static function getDriver(string $name)
  • Get the default driver.
  • static function getSupportedDrivers()
  • Get the list of supported Push drivers.
  • function __construct()
  • The constructor.
  • function setFrom(int $member_srl)
  • Set the sender's member_srl.
  • function getFrom()
  • Get the sender's phone number.
  • function addTo(int $member_srl)
  • Add a recipient.
  • function getRecipients()
  • Get the list of recipients.
  • function addTopic(string $topic)
  • Add a topic.
  • function getTopics()
  • Get the list of topics.
  • function setSubject(string $subject)
  • Set the subject.
  • function getSubject()
  • Get the subject.
  • function setContent(string $content)
  • Set the content.
  • function getContent()
  • Get the content.
  • function setImage(string $url)
  • Set the image.
  • function getImage()
  • Get the image.
  • function setClickAction(string $click_action)
  • Set an click-action to associate with this push notification.
  • function getClickAction()
  • Get the click-action associated with this push notification.
  • function setSound(string $sound)
  • Set a sound to associate with this push notification.
  • function setBadge(string $badge)
  • Set a badge to associate with this push notification.
  • function setIcon(string $icon)
  • Set an icon to associate with this push notification.
  • function setTag(string $tag)
  • Set a tag to associate with this push notification.
  • function setColor(string $color)
  • Set a color to associate with this push notification.
  • function setAndroidChannelId(string $android_channel_id)
  • Set an android-channel-id to associate with this push notification.
  • function getMetadata()
  • Get notification array
  • function setData(array $data)
  • Set a data to associate with this push notification.
  • function getData()
  • Get the data associated with this push notification.
  • function setURL(string $url)
  • Set a URL to associate with this push notification.
  • function getURL()
  • Get the URL associated with this push notification.
  • function send(bool $sync = false)
  • Send the message.
  • static function sendAsync(self $push)
  • Send asynchronously (for Queue integration).
  • function isSent()
  • Check if the message was sent.
  • function getCaller()
  • Get caller information.
  • function getErrors()
  • Get errors.
  • function getSuccessTokens()
  • Get success tokens.
  • function getDeletedTokens()
  • Get deleted tokens.
  • function getUpdatedTokens()
  • Get updated tokens.
  • function addError(string $message)
  • Add an error message.