includes/class/Configuration.class.php
Broker
- Package
- Broker
\Broker\Configuration
Package: Broker











Configuration
Properties
Methods

__construct(string $file) : voidConstructor
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) : voidCheck 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) : voidFind 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) : voidFind 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) : arrayFind 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) : objectProcess solr configuration
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $item | array | |
| $fieldTypes | array | |
| $configuration | array |
| Type | Description |
|---|---|
| object |

_sortLevenshtein(array $items, array $list) : voidSort items by levenshtein distance
Parameters
| Name | Type | Description |
|---|---|---|
| $items | array | |
| $list | array |

getConfig(string $name) : objectGet configuration item
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| object |

getConfigTimestamp() : NULL | \Broker\numberGet timestamp configuration file
Returns
| Type | Description |
|---|---|
| NULL | \Broker\number |

getSolrConfig(object $name) : voidGet solr configuration item
Parameters
| Name | Type | Description |
|---|---|---|
| $name | object |

getSolrConfiguration(string $md5hash, \Broker\number $filetime) : voidCreate 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) : stringCreate url based on optional operation and suboperation
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $operation | NULL | string | |
| $suboperation | NULL | string | |
| $subsuboperation | NULL | string |
| Type | Description |
|---|---|
| string |