includes/class/Parser.class.php
- Package
- Broker
\Broker\Parser
Properties
\Broker\ExpansionCache $expansionCache = null
null
Details- Type
- \Broker\ExpansionCache
Methods
__construct(object $request, array $configuration, \Broker\Cache $cache, \Broker\Collection $collection, \Broker\ExpansionCache $expansionCache, string $statusKey) : void
Constructor
Name | Type | Description |
---|---|---|
$request | object | |
$configuration | array | |
$cache | \Broker\Cache | |
$collection | \Broker\Collection | |
$expansionCache | \Broker\ExpansionCache | |
$statusKey | string |
Exception | Description |
---|---|
\Exception |
checkCache(object $object) : object
Check cache in request
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkCondition(object $object) : object
Check condition
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkDebug(object $object) : object
Check debug in request
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkFilter(object $object) : object
Check filter
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkFilters(object $object) : object
Check filters
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkMtasStats(object $object, string $prefixMessage = "") : object
Check mtas stats
Name | Type | Description |
---|---|---|
$object | object | |
$prefixMessage | string |
Type | Description |
---|---|
object |
checkMtasStatsFunction(object $object, string $prefixMessage = "") : object
Check mtas stats functions
Name | Type | Description |
---|---|---|
$object | object | |
$prefixMessage | string |
Type | Description |
---|---|
object |
checkPage(object $object, string $prefix) : void
Check page
Name | Type | Description |
---|---|---|
$object | object | |
$prefix | string |
|
checkResponse(object $object) : object
Check response in request
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseDocuments(object $object) : object
Check documents in response
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseDocumentsJoin(object $object) : object
Check documents join in response
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseFacetField(object $object, array $keyList) : array
Check facet field
Name | Type | Description |
---|---|---|
$object | object | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetFieldJoin(object $object) : object
Check join facet field
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseFacetFields(array $facetfields, array $keyList) : void
Check facet fields in response
Name | Type | Description |
---|---|---|
$facetfields | array | |
$keyList | array |
checkResponseFacetHeatmap(object $object, array $keyList) : array
Check facet pivot
Name | Type | Description |
---|---|---|
$object | object | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetHeatmaps(array $facetheatmaps, array $keyList) : array
Check facet heatmaps
Name | Type | Description |
---|---|---|
$facetheatmaps | array | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetPivot(object $object, array $keyList) : array
Check facet pivot
Name | Type | Description |
---|---|---|
$object | object | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetPivots(array $facetpivots, array $keyList) : array
Check facet pivots
Name | Type | Description |
---|---|---|
$facetpivots | array | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetQueries(array $facetqueries, array $keyList) : array
Check facet queries
Name | Type | Description |
---|---|---|
$facetqueries | array | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetQuery(object $object, array $keyList) : array
Check facet query
Name | Type | Description |
---|---|---|
$object | object | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetRange(object $object, array $keyList) : array
Check facet range
Name | Type | Description |
---|---|---|
$object | object | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacetRanges(array $facetranges, array $keyList) : array
Check facet ranges
Name | Type | Description |
---|---|---|
$facetranges | array | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseFacets(object $object) : object
Check facets in response
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtas(object $object) : object
Check mtas in response
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasBase(object $object, string $prefix) : object
Check mtas base (facets)
Name | Type | Description |
---|---|---|
$object | object | |
$prefix | string |
Type | Description |
---|---|
object |
checkResponseMtasCollection(object $object) : object
Check mtas collection
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasDistance(object $object, string $prefix) : object
Check mtas distance
Name | Type | Description |
---|---|---|
$object | object | |
$prefix | string |
Type | Description |
---|---|
object |
checkResponseMtasDocument(object $object) : object
Check mtas documents
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasFacet(object $object) : object
Check mtas facet
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasFunction(object $object, string $prefix) : object
Check mtas function
Name | Type | Description |
---|---|---|
$object | object | |
$prefix | string |
Type | Description |
---|---|
object |
checkResponseMtasGroup(object $object) : object
Check mtas group
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasHeatmap(object $object) : object
Check mtas heatmap
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasKwicAndList(string $type, object $object) : object
Check mtas kwic and list
Name | Type | Description |
---|---|---|
$type | string | |
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasPage(object $object) : object
Check mtas page
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasPrefix(object $object) : object
Check mtas prefix
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasQuery(object $object, string $prefix) : object
Check query mtas
Name | Type | Description |
---|---|---|
$object | object | |
$prefix | string |
Type | Description |
---|---|
object |
checkResponseMtasStats(object $object) : object
Check mtas stats
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasStatsPositions(object $object) : object
Check mtas stats positions
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasStatsSpans(object $object) : object
Check mtas stats spans
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasStatsTokens(object $object) : object
Check mtas stats tokens
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasTermvector(object $object) : object
Check mtas termvector
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseMtasVersion(object $object) : object
Check mtas collection
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseStats(object $object) : object
Check stats in response
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkResponseStatsField(object $object, array $keyList) : array
Check stats field
Name | Type | Description |
---|---|---|
$object | object | |
$keyList | array |
Type | Description |
---|---|
array |
checkResponseStatsFields(array $statsfields, array $keyList) : array
Check stats fields in response
Name | Type | Description |
---|---|---|
$statsfields | array | |
$keyList | array |
Type | Description |
---|---|
array |
checkSort(object $object) : object
Check sort in request
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkSortitem(object $object) : object
Check sortItem in sort
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkTimeAllowed(object $object) : object
Check timeAllowed in request
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
checkVariables(object $object, object $fromCondition, string $prefixMessage = "") : object
Check variables
Name | Type | Description |
---|---|---|
$object | object | |
$fromCondition | object | |
$prefixMessage | string |
Type | Description |
---|---|
object |
computeConfiguration(string $config) : object
Compute configuration
Name | Type | Description |
---|---|---|
$config | string |
Type | Description |
---|---|
object |
computeExpansionValues(array | string $value, object $expansion, string $prefixMessage = "") : array
Compute expansions values
Name | Type | Description |
---|---|---|
$value | array | string | |
$expansion | object | |
$prefixMessage | string |
Type | Description |
---|---|
array |
createCollectionIdFromJoin(object $object, object $configuration) : string
Create collectionId from join
Name | Type | Description |
---|---|---|
$object | object | |
$configuration | object |
Type | Description |
---|---|
string |
createVariableCombinations(array $variables, array $combinations) : array
Create variable combinations
Name | Type | Description |
---|---|---|
$variables | array | |
$combinations | array |
Type | Description |
---|---|
array |
createVariablesList(array $variables) : array
Create variables list
Name | Type | Description |
---|---|---|
$variables | array |
Type | Description |
---|---|
array |
createVariablesString(array $variables) : string
Create variables string
Name | Type | Description |
---|---|---|
$variables | array |
Type | Description |
---|---|
string |
finishCollectionIdFromJoin(object $collectionId, object $configuration) : string
Finish collectionId from join
Name | Type | Description |
---|---|---|
$collectionId | object | |
$configuration | object |
Type | Description |
---|---|
string |
getCollection() : \Broker\Collection
Get (or create) collection
Type | Description |
---|---|
\Broker\Collection |
getConfigurationsForField(object $field) : array
Get configurations for field
Name | Type | Description |
---|---|---|
$field | object |
Type | Description |
---|---|
array |
parseCache(object $object) : null
Parse cache
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
null |
parseCondition(object $object) : object
Parse condition
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
parseDebug(object $object) : string | NULL
Parse debug
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
string | NULL |
parseFilter(object $object, array $requestList, array $facetQueries, array $mtasStats) : array
Parse filter
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array | |
$facetQueries | array | |
$mtasStats | array |
Type | Description |
---|---|
array |
parseFilters(object $object) : array
Parse filters
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
array |
parseResponse(object $object, array $facetQueries, array $mtasStats) : object
Parse response
Name | Type | Description |
---|---|---|
$object | object | |
$facetQueries | array | |
$mtasStats | array |
Type | Description |
---|---|
object |
parseResponseDocuments(object $object) : object
Parse documents in response
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
parseResponseDocumentsJoin(object $object) : object
Parse join in documents
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
object |
parseResponseFacetField(object $object, \Broker\number $i) : object
Parse facet field
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseFacetFieldJoin(object $object, string $key, \Broker\number $i) : object
Parse join facet field
Name | Type | Description |
---|---|---|
$object | object | |
$key | string | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseFacetFields(object $object, array $requestList) : array
Parse facet fields
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array |
Type | Description |
---|---|
array |
parseResponseFacetHeatmap(object $object, \Broker\number $i) : object
Parse facet heatmap
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseFacetHeatmaps(object $object, array $requestList) : array
Parse facet heatmaps
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array |
Type | Description |
---|---|
array |
parseResponseFacetPivot(object $object, \Broker\number $i) : object
Parse facet pivot
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseFacetPivots(object $object, array $requestList) : array
Parse facet pivots
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array |
Type | Description |
---|---|
array |
parseResponseFacetQueries(object $object, array $requestList, array $keyListFacetQueries) : array
Parse facet queries
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array | |
$keyListFacetQueries | array |
Type | Description |
---|---|
array |
parseResponseFacetQuery(object $object, array $keyListFacetQueries, \Broker\number $i) : array
Parse facet query
Name | Type | Description |
---|---|---|
$object | object | |
$keyListFacetQueries | array | |
$i | \Broker\number |
Type | Description |
---|---|
array |
parseResponseFacetRange(object $object, \Broker\number $i) : object
Parse facet range
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseFacetRanges(object $object, array $requestList) : array
Parse facet range
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array |
Type | Description |
---|---|
array |
parseResponseFacets(object $object, object $facetqueries) : object
Parse facets in response
Name | Type | Description |
---|---|---|
$object | object | |
$facetqueries | object |
Type | Description |
---|---|
object |
parseResponseMtas(object $object, array $mtasStats) : object
Parse mtas in response
Name | Type | Description |
---|---|---|
$object | object | |
$mtasStats | array |
Type | Description |
---|---|
object |
parseResponseMtasCollection(object $object, \Broker\number $i) : object
Parse mtas collection
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasDocument(object $object, \Broker\number $i) : object
Parse mtas documents
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasFacet(object $object, \Broker\number $i) : object
Parse mtas facet
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasGroup(object $object, \Broker\number $i) : object
Parse mtas group
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasHeatmap(object $object, \Broker\number $i) : object
Parse mtas heatmap
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasKwicAndList(string $type, object $object, \Broker\number $i) : object
Parse mtas kwic and list
Name | Type | Description |
---|---|---|
$type | string | |
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasPage(object $object, \Broker\number $i) : object
Parse mtas page
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasPrefix(object $object, \Broker\number $i) : object
Parse mtas prefix
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasStats(object $object, array $mtasStats) : object
Parse mtas stats
Name | Type | Description |
---|---|---|
$object | object | |
$mtasStats | array |
Type | Description |
---|---|
object |
parseResponseMtasStatsPositions(object $object, \Broker\number $i) : object
Parse mtas stats positions
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasStatsSpans(object $object, \Broker\number $i) : object
Parse mtas stats spans
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasStatsTokens(object $object, \Broker\number $i) : object
Parse mtas stats tokens
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseMtasTermvector(object $object, \Broker\number $i) : object
Parse mtas termvector
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseStats(object $object) : void
Parse stats in response
Name | Type | Description |
---|---|---|
$object | object | return unknown |
parseResponseStatsField(object $object, \Broker\number $i) : object
Parse stats field
Name | Type | Description |
---|---|---|
$object | object | |
$i | \Broker\number |
Type | Description |
---|---|
object |
parseResponseStatsFields(object $object, array $requestList) : array
Parse stats fields
Name | Type | Description |
---|---|---|
$object | object | |
$requestList | array |
Type | Description |
---|---|
array |
parseSort(object $object) : string | NULL
parse Sort
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
string | NULL |
parseTimeAllowed(object $object) : null
Parse timeAllowed
Name | Type | Description |
---|---|---|
$object | object |
Type | Description |
---|---|
null |