[RSS Feed/News] Understanding handlers

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hi,

Just hoping to get some clarification as to using handlers. The following is seen in the alert abstract handler:
PHP:

Code:
public function getTemplateName($action)
    {
        return 'public:alert_' . $this->contentType . '_' . $action;
    }

    public function getTemplateData($action, UserAlert $alert, Entity $content = null)
    {
        if (!$content)
        {
            $content = $alert->Content;
        }

        return [
            'alert' => $alert,
            'user' =>...

Read more

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