ZenMagick 0.9.6


org.zenmagick.model.ZMSearchCriteria

Class ZMSearchCriteria

ZMObject
|
+--ZMSearchCriteria

public class ZMSearchCriteria
extends ZMObject

Search criteria.

Author:
DerManoMann
Version:
$Id: ZMSearchCriteria.php 2072 2009-03-17 03:07:40Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMSearchCriteria()

Create new instance.

Method Summary
integer

getCategoryId(string default)

Get the category.

integer

getCountryId()

Get the country for tax calculations (if required).

string

getDateFrom(string default)

Get the from date.

string

getDateTo(string default)

Get the to date.

string

getKeywords(string default)

Get the keyword(s).

integer

getLanguageId()

Get the language id.

integer

getManufacturerId(string default)

Get the manufacturer.

string

getPriceFrom(string default)

Set the price from.

string

getPriceTo(string default)

Get the price to.

integer

getZoneId()

Get the zone for tax calculations (if required).

boolean

isIncludeDescription(string default)

Get the include description flag.

boolean

isIncludeSubcategories(string default)

Get the include subcategories flag.

boolean

isIncludeTax()

Check if prices are tax inclusive.

void

setDateFrom(string date)

Set the from date.

void

setDateTo(mixed date)

Set the to date.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMSearchCriteria

public ZMSearchCriteria()

Create new instance. /


Method Detail

getCategoryId

public integer getCategoryId(string default)

Get the category.

Parameters:
default - A default value.
Returns:
The category id.

getCountryId

public integer getCountryId()

Get the country for tax calculations (if required).

Returns:
The country id.

getDateFrom

public string getDateFrom(string default)

Get the from date.

Parameters:
default - A default value.
Returns:
The from date.

getDateTo

public string getDateTo(string default)

Get the to date.

Parameters:
default - A default value.
Returns:
The to date.

getKeywords

public string getKeywords(string default)

Get the keyword(s).

Parameters:
default - A default value.
Returns:
The search term.

getLanguageId

public integer getLanguageId()

Get the language id.

Returns:
The language id.

getManufacturerId

public integer getManufacturerId(string default)

Get the manufacturer.

Parameters:
default - A default value.
Returns:
The manufacturer id.

getPriceFrom

public string getPriceFrom(string default)

Set the price from.

Parameters:
default - A default value.
Returns:
The price from.

getPriceTo

public string getPriceTo(string default)

Get the price to.

Parameters:
default - A default value.
Returns:
The price to.

getZoneId

public integer getZoneId()

Get the zone for tax calculations (if required).

Returns:
The zone id.

isIncludeDescription

public boolean isIncludeDescription(string default)

Get the include description flag.

Parameters:
default - A default value.
Returns:
true if descriptions should be searched too.

isIncludeSubcategories

public boolean isIncludeSubcategories(string default)

Get the include subcategories flag.

Parameters:
default - A default value.
Returns:
true if subcategories should be searched too.

isIncludeTax

public boolean isIncludeTax()

Check if prices are tax inclusive.

Returns:
true if included, false if not.

setDateFrom

public void setDateFrom(string date)

Set the from date.

Parameters:
date - The from date.

setDateTo

public void setDateTo(mixed date)

Set the to date. param return string date The to date. /


ZenMagick 0.9.6