ZenMagick 0.9.8


org.zenmagick.store.model.ZMSearchCriteria
\store\model\ZMSearchCriteria.php at line 34

Class ZMSearchCriteria

ZMObject
└─ZMSearchCriteria

public class ZMSearchCriteria
extends ZMObject

Search criteria.

Author:
DerManoMann
Version:
$Id: ZMSearchCriteria.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.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.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\ZMSearchCriteria.php at line 39

ZMSearchCriteria

public ZMSearchCriteria()

Create new instance.


Method Detail

\store\model\ZMSearchCriteria.php at line 78

getCategoryId

public integer getCategoryId(string default)

Get the category.

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

\store\model\ZMSearchCriteria.php at line 164

getCountryId

public integer getCountryId()

Get the country for tax calculations (if required).

Returns:
The country id.

\store\model\ZMSearchCriteria.php at line 102

getDateFrom

public string getDateFrom(string default)

Get the from date.

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

\store\model\ZMSearchCriteria.php at line 110

getDateTo

public string getDateTo(string default)

Get the to date.

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

\store\model\ZMSearchCriteria.php at line 62

getKeywords

public string getKeywords(string default)

Get the keyword(s).

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

\store\model\ZMSearchCriteria.php at line 178

getLanguageId

public integer getLanguageId()

Get the language id.

Returns:
The language id.

\store\model\ZMSearchCriteria.php at line 94

getManufacturerId

public integer getManufacturerId(string default)

Get the manufacturer.

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

\store\model\ZMSearchCriteria.php at line 142

getPriceFrom

public string getPriceFrom(string default)

Set the price from.

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

\store\model\ZMSearchCriteria.php at line 150

getPriceTo

public string getPriceTo(string default)

Get the price to.

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

\store\model\ZMSearchCriteria.php at line 171

getZoneId

public integer getZoneId()

Get the zone for tax calculations (if required).

Returns:
The zone id.

\store\model\ZMSearchCriteria.php at line 70

isIncludeDescription

public boolean isIncludeDescription(string default)

Get the include description flag.

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

\store\model\ZMSearchCriteria.php at line 86

isIncludeSubcategories

public boolean isIncludeSubcategories(string default)

Get the include subcategories flag.

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

\store\model\ZMSearchCriteria.php at line 157

isIncludeTax

public boolean isIncludeTax()

Check if prices are tax inclusive.

Returns:
true if included, false if not.

\store\model\ZMSearchCriteria.php at line 117

setDateFrom

public void setDateFrom(string date)

Set the from date.

Parameters:
date - The from date.

\store\model\ZMSearchCriteria.php at line 129

setDateTo

public void setDateTo(mixed date)

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


ZenMagick 0.9.8