controllers/UserPreferencesController.php
/**
     * Flush all user preference for given user Id
     * 
     * @param int $userId
     */
Flush all user preference for given user Id

@param int $userId
Flush all user preference for given user Id @param int $userId
private function flushAll($userId) {
        $query = 'DELETE FROM '.UserPreferences_DBTable::DB_TABLE_NAME.' WHERE ';
        $query .= UserPreferences_DBTable::USER_ID . '=?';
        if (DBManager::executeQuery($query, array($userId))) {
            Session::remove(Session::SESS_USER_PREF_KEY);
        }
    }
private function flushAll ( $ userId ) { $ query = 'DELETE FROM ' . UserPreferences_DBTable :: DB_TABLE_NAME . ' WHERE ' ; $ query .= UserPreferences_DBTable :: USER_ID . '=?' ; if ( DBManager :: executeQuery ( $ query , array ( $ userId ) ) ) { Session :: remove ( Session :: SESS_USER_PREF_KEY ) ; } }
Flush all user preference for given user Id
Flush all user preference for given user Id