Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
a3467d67
Commit
a3467d67
authored
Dec 12, 2012
by
Robert Elwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add functionality to store and access collate params in spellcheck component
parent
5c7afe1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
library/Solarium/Query/Select/Component/Spellcheck.php
library/Solarium/Query/Select/Component/Spellcheck.php
+26
-0
No files found.
library/Solarium/Query/Select/Component/Spellcheck.php
View file @
a3467d67
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment