include/SugarSearchEngine/Elastic/Elastica/Param.php

Show: inherited
Table of Contents

Class to handle params

This function can be used to handle params for queries, filter, facets

Author
Nicolas Ruflin  
Category
Xodoa  
Package
Elastica  

\Elastica_Param

Package: Elastica

Class to handle params

This function can be used to handle params for queries, filter, facets

Children
\Elastica_Facet_Abstract
\Elastica_Query_Abstract
\Elastica_Filter_Abstract
\Elastica_Query
Author
Nicolas Ruflin  
Category
Xodoa  

Properties

Propertyprotectedarray  $_params= 'array()'

Params

Default valuearray()Details
Type
array
Propertyprotected  $_rawParams= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodprotected_setRawParam( string $key, mixed $value ) : \Elastica_Param

Sets params not inside params array

Parameters
Name Type Description
$key string
$value mixed
Returns
Type Description
\Elastica_Param
methodpublicaddParam( string $key, mixed $value ) : \Elastica_Param

Adds a param to the list

This function can be used to add an array of params

Parameters
Name Type Description
$key string

Param key

$value mixed

Value to set

Returns
Type Description
\Elastica_Param
methodpublicgetParam( string $key ) : mixed

Returns a specific param

Parameters
Name Type Description
$key string

Key to return

Returns
Type Description
mixed Key value
Throws
Exception Description
\Elastica_Exception_Invalid If requested key is not set
methodpublicgetParams( ) : array

Returns the params array

Returns
Type Description
array Params
methodpublicsetParam( string $key, mixed $value ) : void

Sets (overwrites) the value at the given key

Parameters
Name Type Description
$key string

Key to set

$value mixed

Key Value

methodpublicsetParams( array $params ) : \Elastica_Param

Sets (overwrites) all params of this object

Parameters
Name Type Description
$params array

Parameter list

Returns
Type Description
\Elastica_Param
methodpublictoArray( ) : array

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
Type Description
array Filter array
Documentation was generated by DocBlox 0.18.1.