ObjectDatabaseAnalyzerSetting
extends _ObjectDatabaseGenericExtendedSetting
in package
Tags
Table of Contents
- DEFINITION_FLAGS = 'flags'
- DEFINITION_LOWERCASE = 'lowercase'
- DEFINITION_PATTERN = 'pattern'
- DEFINITION_STOPWORDS = 'stopwords'
- DEFINITION_STOPWORDS_PATH = 'stopwords_path'
- TYPE_CUSTOM = 9
- TYPE_FINTERPRINT = 8
- TYPE_KEYWORD = 5
- TYPE_PATTERN = 6
- TYPE_SIMPLE = 3
- TYPE_STANDARD = 1
- TYPE_STOP = 4
- TYPE_WHITESPACE = 2
- addParameter() : bool
- Adds a parameter for a given key to the tokenizer setting.
- getDefinition() : array<string|int, mixed>
- getName() : string
- getParameterForKey() : mixed|null
- Returns a value for the given parameter key.
- getParameters() : array<string|int, ObjectDatabaseParameter>
- Returns all added parameter.
- getType() : int|null
- removeParameterForKey() : bool
- Removes a parameter for a given key of the tokenizer settings.
- setName() : void
- setType() : void
Constants
DEFINITION_FLAGS
public
mixed
DEFINITION_FLAGS
= 'flags'
Tags
DEFINITION_LOWERCASE
public
mixed
DEFINITION_LOWERCASE
= 'lowercase'
Tags
DEFINITION_PATTERN
public
mixed
DEFINITION_PATTERN
= 'pattern'
Tags
DEFINITION_STOPWORDS
public
mixed
DEFINITION_STOPWORDS
= 'stopwords'
Tags
DEFINITION_STOPWORDS_PATH
public
mixed
DEFINITION_STOPWORDS_PATH
= 'stopwords_path'
Tags
TYPE_CUSTOM
public
mixed
TYPE_CUSTOM
= 9
Tags
TYPE_FINTERPRINT
public
mixed
TYPE_FINTERPRINT
= 8
Tags
TYPE_KEYWORD
public
mixed
TYPE_KEYWORD
= 5
Tags
TYPE_PATTERN
public
mixed
TYPE_PATTERN
= 6
Tags
TYPE_SIMPLE
public
mixed
TYPE_SIMPLE
= 3
Tags
TYPE_STANDARD
public
mixed
TYPE_STANDARD
= 1
Tags
TYPE_STOP
public
mixed
TYPE_STOP
= 4
Tags
TYPE_WHITESPACE
public
mixed
TYPE_WHITESPACE
= 2
Tags
Methods
addParameter()
Adds a parameter for a given key to the tokenizer setting.
public
addParameter(ObjectDatabaseParameter $oParameter) : bool
If a parameter with a key already exists in the tokenizer setting the method return false, otherwise true.
Parameters
- $oParameter : ObjectDatabaseParameter
Tags
Return values
bool —getDefinition()
public
getDefinition() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getName()
public
getName() : string
Tags
Return values
string —getParameterForKey()
Returns a value for the given parameter key.
public
getParameterForKey(string $sKey) : mixed|null
The method returns null if no value has been found for the given key.
Parameters
- $sKey : string
Tags
Return values
mixed|null —getParameters()
Returns all added parameter.
public
getParameters() : array<string|int, ObjectDatabaseParameter>
Tags
Return values
array<string|int, ObjectDatabaseParameter> —getType()
public
getType() : int|null
Tags
Return values
int|null —removeParameterForKey()
Removes a parameter for a given key of the tokenizer settings.
public
removeParameterForKey(string $sKey) : bool
If the parameter does not exist the method returns false, otherwise true.
Parameters
- $sKey : string
Tags
Return values
bool —setName()
public
setName(string $sName) : void
Parameters
- $sName : string
Tags
Return values
void —setType()
public
setType(int $iType) : void
Parameters
- $iType : int
