[RSS Feed/News] Using the alert handler...

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I have setup the following content type for the alert handler class:

1641423288110.png

I then have this protected php function:

PHP:

Code:
    protected function sendAlert($alertType, $to, $fromUser)
    {
        /* Load the Alert Repo */
        $alertRepo = $this->repository('XF:UserAlert');

        $alertRepo->alert(
            $to,
            $fromUser->user_id,
            $fromUser->username,
            'tls_thoughts',
            '',
            $alertType,
            []...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom