High-level class to help manage complex faceted navigation searches.
Typically a UI has more complicated "query management" needs than a plain-old search, particularly for faceted navigation. This class helps facilitate these needs.
The WFDieselSearchHelper object acts as a broker between the UI/Application Logic and the raw DP search backend.
Needs:
Located in /framework/WFDieselpoint.php (line 879)
WFObject | --WFDieselSearchHelper
Add a query for a given attribute.
Convert the query represented by this instance into DQL and set it up with the associated WFDieselSearch.
Clear all queries for the passed attribute ID.
Clear the simpleQuery part of the search.
Get the WFDieselSearch used by this instance.
Get a human-readable description of the current attribute selections for the passed attribute.
Get the queryState for the current instance.
The result is plain-text; it will need to be urlencode() as necessary.
Get the queryState for the current instance, WITHOUT the simpleQuery filter.
The result is plain-text; it will need to be urlencode() as necessary.
Get the queryState for the current instace with ONLY the restrictDQL filter.
This is useful for a "clear all filters" link.
Is there any filter on the passed attribute?
Based on the executed query, are we doing a "show all"?
Get a pretty "description" of the current query.
WFWidget subclasses that can interact with WFDieselSearch should register.
Objects must implement the WFDieselSearchHelperStateTracking interface.
Reset the query state to "empty".
Note that this does not clear the restrictDQL.
Get the "restrictDQL" query.
Set the "any/all" mode for EQ queries where there is more than one value for the attribute.
Set the WFDieselSearch instance to use with this WFDieselSearchHelper instance.
Set the query state to the passed state.
NOTE: if you are using WFDieselSearch with a paginator, and you get errors about "relevance" not being a sort option when restoring state with setQueryState, make sure that you call setQueryState BEFORE you call readPaginatorStateFromParams, as setQueryState will add the "relevance" sort option if the query state includes a simpleQuery.
Set the DQL query to be used to restrict the search results in ways IN ADDITION TO what the user selects in the UI.
Set the simpleQuery part of the search.
Note that if using a paginator, a "Relevance" sort option (-relevance) will be automatically added to the possible sort options.
Ge the DQL that is used to "show all".
Get the simpleQuery string.
Get the simpleQuery mode.
Inherited From WFObject
WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()
Documentation generated on Thu, 14 May 2009 16:19:56 -0400 by phpDocumentor 1.4.2