Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2011 at 03:06 UTC
Updated:
28 Jul 2011 at 02:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedComment #2
pwolanin commentedopps, getter should not be a static function
Comment #3
cpliakas commentedThis looks good. Reworked the patch a little to add a setter method, and I am also taking the opportunity to do a little refactoring based on this change. The adapter now has a getQueryString() method where you can explicitly pass in a facet definition. This might help with the work you are doing for the slider, as you may be able to use this as an API method to build the query string.
Comment #4
cpliakas commentedThinking about this further, maybe a setter method isn't appropriate. Maybe it should be set in the setParams method since the two are so closely tied to one another. I am thinking something like
public function setParams(array $params = array(), $filter_key = 'f') {. Setting the filter key after setting the params lead to unintended results and give developers too much rope to hang themselves with.Comment #5
cpliakas commentedHere is another patch, with the idea in #4.
Comment #6
cpliakas commentedSame patch, fixed error in a comment.
Comment #7
cpliakas commentedI think this is RTBC. Passed the tests, and I think it is a more flexible approach that doesn't seem to break anything.
Comment #8
cpliakas commentedCommitted at a7cd37b.