includes/class/Configuration.class.php
Broker
- Package
- Broker
\Broker\Configuration
Package: Broker
Configuration
Properties
Methods
__construct(string $file) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$file | string | configuration file |
_checkField(string $field, array $configuration, string $type = null, boolean $indexed = null, boolean $required = null, boolean $stored = null, boolean $multivalued = null, boolean $mtas = null) : void
Check field
Parameters
Name | Type | Description |
---|---|---|
$field | string | |
$configuration | array | |
$type | string | |
$indexed | boolean | |
$required | boolean | |
$stored | boolean | |
$multivalued | boolean | |
$mtas | boolean |
_findExample(string $configSuggestion, array $configValuesSuggestion, array $configuration, array $solrConfiguration, array $hints = null, string $type = null, boolean $indexed = null, boolean $required = null, boolean $stored = null, boolean $multivalued = null, boolean $mtas = null) : void
Find example
Parameters
Name | Type | Description |
---|---|---|
$configSuggestion | string | |
$configValuesSuggestion | array | |
$configuration | array | |
$solrConfiguration | array | |
$hints | array | |
$type | string | |
$indexed | boolean | |
$required | boolean | |
$stored | boolean | |
$multivalued | boolean | |
$mtas | boolean |
_findMtasExamples(string $configSuggestion, array $configuration, array $solrConfiguration, array $hints) : void
Find Mtas examples
Parameters
Name | Type | Description |
---|---|---|
$configSuggestion | string | |
$configuration | array | |
$solrConfiguration | array | |
$hints | array |
_findMtasExamplesTermvector(array $solrConfiguration, string $field, array $shards, string $prefix, integer $number) : array
Find Mtas examples termvector
Parameters
Returns
Name | Type | Description |
---|---|---|
$solrConfiguration | array | |
$field | string | |
$shards | array | |
$prefix | string | |
$number | integer |
Type | Description |
---|---|
array |
_processSolrConfiguration(array $item, array $fieldTypes, array $configuration) : object
Process solr configuration
Parameters
Returns
Name | Type | Description |
---|---|---|
$item | array | |
$fieldTypes | array | |
$configuration | array |
Type | Description |
---|---|
object |
_sortLevenshtein(array $items, array $list) : void
Sort items by levenshtein distance
Parameters
Name | Type | Description |
---|---|---|
$items | array | |
$list | array |
getConfig(string $name) : object
Get configuration item
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
object |
getConfigTimestamp() : NULL | \Broker\number
Get timestamp configuration file
Returns
Type | Description |
---|---|
NULL | \Broker\number |
getSolrConfig(object $name) : void
Get solr configuration item
Parameters
Name | Type | Description |
---|---|---|
$name | object |
getSolrConfiguration(string $md5hash, \Broker\number $filetime) : void
Create solr configuration if necessary
Parameters
Name | Type | Description |
---|---|---|
$md5hash | string | |
$filetime | \Broker\number |
url(NULL | string $operation = null, NULL | string $suboperation = null, NULL | string $subsuboperation = null) : string
Create url based on optional operation and suboperation
Parameters
Returns
Name | Type | Description |
---|---|---|
$operation | NULL | string | |
$suboperation | NULL | string | |
$subsuboperation | NULL | string |
Type | Description |
---|---|
string |