public static function add($thread)
    {
        if (Podium::getInstance()->user->isGuest) {
            return false;
        }
        $sub = new Subscription();
        $sub->thread_id = $thread;
        $sub->user_id = User::loggedId();
        $sub->post_seen = self::POST_SEEN;
        return $sub->save();
    }
public static function add($thread)
    {
        if (Podium::getInstance()->user->isGuest) {
            return false;
        }
        $sub = new Subscription();
        $sub->thread_id = $thread;
        $sub->user_id = User::loggedId();
        $sub->post_seen = self::POST_SEEN;
        return $sub->save();
    }
public static function add ( $ thread ) { if ( Podium :: getInstance ( ) -> user -> isGuest ) { return false ; } $ sub = new Subscription ( ) ; $ sub -> thread_id = $ thread ; $ sub -> user_id = User :: loggedId ( ) ; $ sub -> post_seen = self :: POST_SEEN ; return $ sub -> save ( ) ; }
Adds subscription for thread.
@param int $thread thread ID
@return bool
@since 0.2
Adds subscription for thread .