ZenMagick 0.9.10


zenmagick.store.shared.model\ZMSearchCriteria
model\ZMSearchCriteria.php at line 30

Class ZMSearchCriteria

ZMObject
└─ZMSearchCriteria

public class ZMSearchCriteria
extends ZMObject

Search criteria.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

Create new instance.

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
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\ZMSearchCriteria.php at line 35

__construct

public void __construct()

Create new instance.


model\ZMSearchCriteria.php at line 74

getCategoryId

public integer getCategoryId(string default)

Get the category.

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

model\ZMSearchCriteria.php at line 160

getCountryId

public integer getCountryId()

Get the country for tax calculations (if required).

Returns:
The country id.

model\ZMSearchCriteria.php at line 98

getDateFrom

public string getDateFrom(string default)

Get the from date.

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

model\ZMSearchCriteria.php at line 106

getDateTo

public string getDateTo(string default)

Get the to date.

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

model\ZMSearchCriteria.php at line 58

getKeywords

public string getKeywords(string default)

Get the keyword(s).

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

model\ZMSearchCriteria.php at line 174

getLanguageId

public integer getLanguageId()

Get the language id.

Returns:
The language id.

model\ZMSearchCriteria.php at line 90

getManufacturerId

public integer getManufacturerId(string default)

Get the manufacturer.

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

model\ZMSearchCriteria.php at line 138

getPriceFrom

public string getPriceFrom(string default)

Set the price from.

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

model\ZMSearchCriteria.php at line 146

getPriceTo

public string getPriceTo(string default)

Get the price to.

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

model\ZMSearchCriteria.php at line 167

getZoneId

public integer getZoneId()

Get the zone for tax calculations (if required).

Returns:
The zone id.

model\ZMSearchCriteria.php at line 66

isIncludeDescription

public boolean isIncludeDescription(string default)

Get the include description flag.

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

model\ZMSearchCriteria.php at line 82

isIncludeSubcategories

public boolean isIncludeSubcategories(string default)

Get the include subcategories flag.

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

model\ZMSearchCriteria.php at line 153

isIncludeTax

public boolean isIncludeTax()

Check if prices are tax inclusive.

Returns:
true if included, false if not.

model\ZMSearchCriteria.php at line 113

setDateFrom

public void setDateFrom(string date)

Set the from date.

Parameters:
date - The from date.

model\ZMSearchCriteria.php at line 125

setDateTo

public void setDateTo(mixed date)

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


ZenMagick 0.9.10