Converts the params to an array. A default implementation exist to create
the an array out of the class name (last part of the class name)
and the params.
Returns
array
—
Filter array
setCached()
setCached(boolean $cached = true) : $this
Sets the filter cache.
Parameters
boolean
$cached
Cached
Returns
$this
setCacheKey()
setCacheKey(string $cacheKey) : $this
Sets the filter cache key.
Parameters
string
$cacheKey
Cache key
Throws
\Elastica\Exception\InvalidException
If given key is empty
Returns
$this
setName()
setName(string $name) : $this
Sets the filter name.
Parameters
string
$name
Name
Returns
$this
setParam()
setParam(string $key, mixed $value) : $this
Sets (overwrites) the value at the given key.
Parameters
string
$key
Key to set
mixed
$value
Key Value
Returns
$this
setParams()
setParams(array $params) : $this
Sets (overwrites) all params of this object.
Parameters
array
$params
Parameter list
Returns
$this
addParam()
addParam(string $key, mixed $value) : $this
Adds a param to the list.
This function can be used to add an array of params