ZMProductFinder
public class ZMProductFinder
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected mixed | |
| Method Summary | |
|---|---|
| void | __construct(ZMSearchCriteria criteria) Create a new instance. |
| protected ZMQueryDetails | buildQuery(ZMSearchCriteria criteria) Build the search SQL. |
| ZMQueryDetails | execute() Execute a product search for the given criteria. |
| void | setCriteria(ZMSearchCriteria criteria) Set the search criteria. |
| void | setDescending(boolean descending) Set the descending flag. |
| void | setSortId(string sortId) Set the sort id. |
protected mixed $criteria_ = false
protected mixed $descending_
protected mixed $sortId_
public void __construct(ZMSearchCriteria criteria)
Create a new instance.
null.protected ZMQueryDetails buildQuery(ZMSearchCriteria criteria)
Build the search SQL.
public ZMQueryDetails execute()
Execute a product search for the given criteria.
public void setCriteria(ZMSearchCriteria criteria)
Set the search criteria.
public void setDescending(boolean descending)
Set the descending flag.
public void setSortId(string sortId)
Set the sort id.
Product search.
Sorting and filtering is based on the corresponding result list support classes.
The setting 'apps.store.search.fulltext' may be set to true to make the search SQL use MySQL fulltext rather than simple LIKE queries.