public static function remove($threads = [])
    {
        try {
            if (!empty($threads)) {
                return Podium::getInstance()->db->createCommand()->delete(
                        Subscription::tableName(), ['id' => $threads, 'user_id' => User::loggedId()]
                    )->execute();
            }
        } catch (Exception $e) {
            Log::error($e->getMessage(), null, __METHOD__);
        }
        return false;
    }
public static function remove($threads = [])
    {
        try {
            if (!empty($threads)) {
                return Podium::getInstance()->db->createCommand()->delete(
                        Subscription::tableName(), ['id' => $threads, 'user_id' => User::loggedId()]
                    )->execute();
            }
        } catch (Exception $e) {
            Log::error($e->getMessage(), null, __METHOD__);
        }
        return false;
    }
public static function remove ( $ threads = [ ] ) { try { if ( ! empty ( $ threads ) ) { return Podium :: getInstance ( ) -> db -> createCommand ( ) -> delete ( Subscription :: tableName ( ) , [ 'id' => $ threads , 'user_id' => User :: loggedId ( ) ] ) -> execute ( ) ; } } catch ( Exception $ e ) { Log :: error ( $ e -> getMessage ( ) , null , __METHOD__ ) ; } return false ; }
Removes threads subscriptions of given IDs.
@param array $threads thread IDs
@return bool
@since 0.2
Removes threads subscriptions of given IDs .