﻿function SQLFilter(uniqueId,prefix)
{
    this.uniqueId = uniqueId;
    this.prefix = prefix;
    
    this.getValue = function(key)
    {
        var id = this.uniqueId + ":" + this.prefix + key
        var idVal = this.uniqueId + ":" + this.prefix + key + "VAL"
        var valSource = $get(idVal);
        var source = $get(id)
        if(valSource != null)
        {
            return valSource.value;
        }
        else if(source != null)
        {
            return source.value;
        }
    }
}
