Class Mage_CatalogSearch_Model_Query

Description

Catalog search query model

Located in /CatalogSearch/Model/Query.php (line 32)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_CatalogSearch_Model_Query
Class Constant Summary
CACHE_TAG = 'SEARCH_QUERY'
XML_PATH_MAX_QUERY_LENGTH = 'catalog/search/max_query_length'
XML_PATH_MAX_QUERY_WORDS = 'catalog/search/max_query_words'
XML_PATH_MIN_QUERY_LENGTH = 'catalog/search/min_query_length'
Variable Summary
Method Summary
Variables
string $_eventObject = 'catalogsearch_query' (line 46)

Event object key name

  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_eventObject
Parameter name in event
string $_eventPrefix = 'catalogsearch_query' (line 39)

Event prefix

  • access: protected

Redefinition of:
Mage_Core_Model_Abstract::$_eventPrefix
Prefix of model events names

Inherited Variables

Inherited from Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::$_cacheTag
Mage_Core_Model_Abstract::$_dataSaveAllowed
Mage_Core_Model_Abstract::$_isObjectNew
Mage_Core_Model_Abstract::$_resource
Mage_Core_Model_Abstract::$_resourceCollectionName
Mage_Core_Model_Abstract::$_resourceName
Methods
getMaxQueryLenght (line 209)

Retrieve maximum query length

  • deprecated: after 1.3.2.3 use getMaxQueryLength() instead
  • access: public
int getMaxQueryLenght ()
getMaxQueryLength (line 219)

Retrieve maximum query length

  • access: public
int getMaxQueryLength ()
getMaxQueryWords (line 229)

Retrieve maximum query words for like search

  • access: public
int getMaxQueryWords ()
getMinQueryLenght (line 189)

Retrieve minimum query length

  • deprecated: after 1.3.2.3 use getMinQueryLength() instead
  • access: public
int getMinQueryLenght ()
getMinQueryLength (line 199)

Retrieve minimum query length

  • access: public
int getMinQueryLength ()
getResultCollection (line 77)

Retrieve collection of search results

  • access: public
getSearchCollection (line 67)

Retrieve search collection

  • access: public
getStoreId (line 158)

Retrieve store Id

  • access: public
int getStoreId ()
getSuggestCollection (line 102)

Retrieve collection of suggest queries

  • access: public
loadByQuery (line 120)

Load Query object by query string

  • access: public
Mage_CatalogSearch_Model_Query loadByQuery (string $text)
  • string $text
loadByQueryText (line 134)

Load Query object only by query text (skip 'synonym For')

  • access: public
Mage_CatalogSearch_Model_Query loadByQueryText (string $text)
  • string $text
prepare (line 171)

Prepare save query for result

  • access: public
setStoreId (line 148)

Set Store Id

  • access: public
Mage_CatalogSearch_Model_Query setStoreId (int $storeId)
  • int $storeId
_construct (line 57)

Init resource model

  • access: protected
void _construct ()

Inherited Methods

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Class Constants
CACHE_TAG = 'SEARCH_QUERY' (line 48)
XML_PATH_MAX_QUERY_LENGTH = 'catalog/search/max_query_length' (line 50)
XML_PATH_MAX_QUERY_WORDS = 'catalog/search/max_query_words' (line 51)
XML_PATH_MIN_QUERY_LENGTH = 'catalog/search/min_query_length' (line 49)

Documentation generated on Fri, 11 Feb 2011 17:10:44 +0200 by phpDocumentor 1.4.3