common\services\NotificationService::newPostNotify PHP Метод

newPostNotify() публичный Метод

内容@用户会有通知
public newPostNotify ( User $fromUser, Post $post, [] $users )
$fromUser common\models\User
$post common\models\Post
$users []
    public function newPostNotify(User $fromUser, Post $post, $users)
    {
        $this->batchNotify('at_' . $post->type, $fromUser, $users, $post);
    }