OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxSearch Class Reference
+ Inheritance diagram for oxSearch:
+ Collaboration diagram for oxSearch:

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)
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

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

Protected Attributes

 $_iLanguage = 0

Additional Inherited Members

- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

Implements search

Definition at line 7 of file oxsearch.php.

Constructor & Destructor Documentation

oxSearch::__construct ( )

Class constructor. Executes search lenguage setter

Returns
null

Reimplemented from oxSuperCfg.

Definition at line 22 of file oxsearch.php.

Member Function Documentation

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$sSearchParamForQueryquery parameter
string$sInitialSearchCatinitial category to search in
string$sInitialSearchVendorinitial vendor to search for
string$sInitialSearchManufacturerinitial Manufacturer to search for
string$sSortBysort by
Returns
string

Definition at line 110 of file oxsearch.php.

oxSearch::_getWhere (   $sSearchString)
protected

Forms and returns SQL query string for search in DB.

Parameters
string$sSearchStringsearching string
Returns
string

Definition at line 224 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$sSearchParamForQueryquery parameter
string$sInitialSearchCatinitial category to seearch in
string$sInitialSearchVendorinitial vendor to seearch for
string$sInitialSearchManufacturerinitial Manufacturer to seearch for
Returns
int

Definition at line 84 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$sSearchParamForQueryquery parameter
string$sInitialSearchCatinitial category to seearch in
string$sInitialSearchVendorinitial vendor to seearch for
string$sInitialSearchManufacturerinitial Manufacturer to seearch for
string$sSortBysort by
Returns
oxarticlelist

Definition at line 52 of file oxsearch.php.

oxSearch::setLanguage (   $iLanguage = null)

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

Parameters
string$iLanguagestring (default null)

Definition at line 32 of file oxsearch.php.

Member Data Documentation

oxSearch::$_iLanguage = 0
protected

Definition at line 15 of file oxsearch.php.


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