ZenMagick 0.9.6


org.zenmagick.misc.ZMProductFinder

Class ZMProductFinder

ZMProductFinder

public class ZMProductFinder

Product search.

Soring and filtering is based on the corresponding result list support classes.

Author:
DerManoMann
Version:
$Id: ZMProductFinder.php 2220 2009-05-11 03:09:50Z dermanomann $

Field Summary
protected mixed

$criteria_

protected mixed

$descending_

protected mixed

$sortId_

Constructor Summary

ZMProductFinder(ZMSearchCriteria criteria)

Create a new instance.

Method Summary
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.

Field Detail

criteria_

protected mixed $criteria_

descending_

protected mixed $descending_

sortId_

protected mixed $sortId_

Constructor Detail

ZMProductFinder

public ZMProductFinder(ZMSearchCriteria criteria)

Create a new instance.

Parameters:
criteria - Optional search criteria; default is null.

Method Detail

buildQuery

protected ZMQueryDetails buildQuery(ZMSearchCriteria criteria)

Build the search SQL.

Parameters:
criteria - Search criteria.
Returns:
The search SQL.

execute

public ZMQueryDetails execute()

Execute a product search for the given criteria.

Returns:
Query details for a product id search.

setCriteria

public void setCriteria(ZMSearchCriteria criteria)

Set the search criteria.

Parameters:
criteria - Search criteria.

setDescending

public void setDescending(boolean descending)

Set the descending flag.

Parameters:
descending - The new value.

setSortId

public void setSortId(string sortId)

Set the sort id.

Parameters:
sortId - The sort id.

ZenMagick 0.9.6