oxSearch Class Reference

Inheritance diagram for oxSearch:

Inheritance graph
[legend]
Collaboration diagram for oxSearch:

Collaboration graph
[legend]

List of all members.


Detailed Description

Implements search

Definition at line 6 of file oxsearch.php.


Public Member Functions

 __construct ()
 setLanguage ($iLanguage=null)
 getSearchArticles ($sSearchParamForQuery=false, $sInitialSearchCat=false, $sInitialSearchVendor=false, $sInitialSearchManufacturer=false, $sSortBy=false)
 getSearchArticleCount ($sSearchParamForQuery=false, $sInitialSearchCat=false, $sInitialSearchVendor=false, $sInitialSearchManufacturer=false)

Protected Member Functions

 _getSearchSelect ($sSearchParamForQuery=false, $sInitialSearchCat=false, $sInitialSearchVendor=false, $sInitialSearchManufacturer=false, $sSortBy=false)
 _getWhere ($sSearchString)

Protected Attributes

 $_iLanguage = 0

Constructor & Destructor Documentation

oxSearch.__construct (  ) 

Class constructor. Executes search lenguage setter

Returns:
null

Definition at line 20 of file oxsearch.php.


Member Function Documentation

oxSearch.setLanguage ( iLanguage = null  ) 

Search language setter. If no param is passed, will be taken default shop language

Parameters:
string $iLanguage string (default null)
Returns:
null;

Definition at line 32 of file oxsearch.php.

oxSearch.getSearchArticles ( sSearchParamForQuery = false,
sInitialSearchCat = false,
sInitialSearchVendor = false,
sInitialSearchManufacturer = false,
sSortBy = false 
)

Returns a list of articles according to search parameters. Returns matched

Parameters:
string $sSearchParamForQuery query parameter
string $sInitialSearchCat initial category to seearch in
string $sInitialSearchVendor initial vendor to seearch for
string $sInitialSearchManufacturer initial Manufacturer to seearch for
string $sSortBy sort by
Returns:
oxarticlelist

Definition at line 52 of file oxsearch.php.

oxSearch.getSearchArticleCount ( sSearchParamForQuery = false,
sInitialSearchCat = false,
sInitialSearchVendor = false,
sInitialSearchManufacturer = false 
)

Returns the amount of articles according to search parameters.

Parameters:
string $sSearchParamForQuery query parameter
string $sInitialSearchCat initial category to seearch in
string $sInitialSearchVendor initial vendor to seearch for
string $sInitialSearchManufacturer initial Manufacturer to seearch for
Returns:
int

Definition at line 83 of file oxsearch.php.

oxSearch._getSearchSelect ( sSearchParamForQuery = false,
sInitialSearchCat = false,
sInitialSearchVendor = false,
sInitialSearchManufacturer = false,
sSortBy = false 
) [protected]

Returns the appropriate SQL select for a search according to search parameters

Parameters:
string $sSearchParamForQuery query parameter
string $sInitialSearchCat initial category to search in
string $sInitialSearchVendor initial vendor to search for
string $sInitialSearchManufacturer initial Manufacturer to search for
string $sSortBy sort by
Returns:
string

Definition at line 108 of file oxsearch.php.

oxSearch._getWhere ( sSearchString  )  [protected]

Forms and returns SQL query string for search in DB.

Parameters:
string $sSearchString searching string
Returns:
string

Definition at line 214 of file oxsearch.php.


Member Data Documentation

oxSearch.$_iLanguage = 0 [protected]

Definition at line 13 of file oxsearch.php.


The documentation for this class was generated from the following file:

Generated on Wed Apr 22 12:32:21 2009 for OXID eShop CE by  doxygen 1.5.5