Commit a3467d67 authored by Robert Elwell's avatar Robert Elwell

Add functionality to store and access collate params in spellcheck component

parent 5c7afe1c
......@@ -46,6 +46,12 @@
*/
class Solarium_Query_Select_Component_Spellcheck extends Solarium_Query_Select_Component
{
/**
* Used to further customize collation parameters
* @var array
*/
protected $_collateParams = array();
/**
* Component type
*
......@@ -338,4 +344,24 @@ class Solarium_Query_Select_Component_Spellcheck extends Solarium_Query_Select_C
return $this->getOption('accuracy');
}
/**
* Set a collation param
* @param string $param
* @param mixed $value
* @return Solarium_Query_Select_Component_Spellcheck Provides fluent interface
*/
public function setCollateParam($param, $value)
{
$this->_collateParams[$param] = $value;
return $this;
}
/**
* Returns the array of collate params
* @return array
*/
public function getCollateParams()
{
return $this->_collateParams;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment