search Class Reference

Inheritance diagram for search:

Inheritance graph
[legend]
Collaboration diagram for search:

Collaboration graph
[legend]

List of all members.


Detailed Description

Articles searching class. Performs searching through articles in database.

Public Member Functions

 init ()
 render ()
 getAddUrlParams ()
 setItemSorting ($sCnid, $sSortBy, $sSortOrder=null)
 getSorting ($sCnid)
 isEmptySearch ()
 getArticleList ()
 getSimilarRecommLists ()
 getSearchParamForHtml ()
 getSearchParam ()
 getSearchCatId ()
 getSearchVendor ()
 getPageNavigation ()
 getActiveCategory ()

Protected Member Functions

 _isSearchClass ()

Protected Attributes

 $_iAllArtCnt = 0
 $_iCntPages = null
 $_sThisTemplate = 'search.tpl'
 $_sListType = 'search'
 $_blShowSorting = true
 $_blEmptySearch = null
 $_oRecommList = null
 $_sSearchParamForHtml = null
 $_sSearchParam = null
 $_sSearchCatId = null
 $_sSearchVendor = null
 $_blSearchClass = null
 $_oPageNavigation = null
 $_iViewIndexState = 1

Member Function Documentation

search.init (  ) 

Fetches search parameter from GET/POST/session, prepares search SQL (search.GetWhere()), and executes it forming the list of found articles. Article list is stored at search._aArticleList array.

Session variables: searchparam

Template variables: emptysearch

Returns:
null

Reimplemented from oxUBase.

search.render (  ) 

Forms serach navigation URLs, executes parent.render() and returns name of template to render search._sThisTemplate.

Template variables: articlelist, searchparam, searchparamforhtml searchcnid, searchvendor, searchlink, pageNavigation, searchlink, articlebargainlist, additionalparams

Returns:
string current template file name

Reimplemented from oxUBase.

search.getAddUrlParams (  ) 

Returns additional URL paramerets which must be added to list products urls

Returns:
string

Reimplemented from oxUBase.

search.setItemSorting ( sCnid,
sSortBy,
sSortOrder = null 
)

Sets search sorting config

Parameters:
string $sCnid sortable item id
string $sSortBy sort field
string $sSortOrder sort order
Returns:
null

Reimplemented from oxView.

search.getSorting ( sCnid  ) 

Returns search sorting config

Parameters:
string $sCnid sortable item id
Returns:
string

Reimplemented from oxView.

search._isSearchClass (  )  [protected]

Template variable getter. Returns similar recommendation lists

Returns:
object

search.isEmptySearch (  ) 

Template variable getter. Returns if searched was empty

Returns:
bool

search.getArticleList (  ) 

Template variable getter. Returns searched article list

Returns:
array

search.getSimilarRecommLists (  ) 

Template variable getter. Returns similar recommendation lists

Returns:
object

Reimplemented from oxView.

search.getSearchParamForHtml (  ) 

Template variable getter. Returns search parameter for Html

Returns:
string

search.getSearchParam (  ) 

Template variable getter. Returns search parameter

Returns:
string

search.getSearchCatId (  ) 

Template variable getter. Returns searched category id

Returns:
string

search.getSearchVendor (  ) 

Template variable getter. Returns searched vendor id

Returns:
string

search.getPageNavigation (  ) 

Template variable getter. Returns page navigation

Returns:
object

search.getActiveCategory (  ) 

Template variable getter. Returns active search

Returns:
object

Reimplemented from oxView.


Member Data Documentation

search.$_iAllArtCnt = 0 [protected]

search.$_iCntPages = null [protected]

search.$_sThisTemplate = 'search.tpl' [protected]

Reimplemented from oxView.

search.$_sListType = 'search' [protected]

Reimplemented from oxView.

search.$_blShowSorting = true [protected]

Reimplemented from oxView.

search.$_blEmptySearch = null [protected]

search.$_oRecommList = null [protected]

search.$_sSearchParamForHtml = null [protected]

search.$_sSearchParam = null [protected]

search.$_sSearchCatId = null [protected]

search.$_sSearchVendor = null [protected]

search.$_blSearchClass = null [protected]

search.$_oPageNavigation = null [protected]

search.$_iViewIndexState = 1 [protected]

Current view search engine indexing state: 0 - index without limitations 1 - no index / no follow 2 - no index / follow

Reimplemented from oxView.


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

Generated on Wed Oct 29 23:47:28 2008 for OXID eShop CE by  doxygen 1.5.5