includes/class/Parser.class.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Broker
Package
Broker  

\Broker\Parser

Package: Broker
Parser json request

Properties

>VPropertyprivatearray $__configurations = array()
Configurations
Default valuearray()Details
Type
array
>VPropertyprivatestring $brokerRequest = null
Request to broker
Default valuenullDetails
Type
string
>VPropertyprivate\Broker\Cache $cache = null
Cache
Default valuenullDetails
Type
\Broker\Cache
>VPropertyprivateboolean $cacheEnabled = true
Cache enables
Default valuetrueDetails
Type
boolean
>VPropertyprivate\Broker\Collection $collection = null
Collection
Default valuenullDetails
Type
\Broker\Collection
>VPropertyprivatearray $collectionIds = array()
Collection ids
Default valuearray()Details
Type
array
>VPropertyprivateobject $configuration = null
Configuration
Default valuenullDetails
Type
object
>VPropertyprivatearray $errors = array()
Errors
Default valuearray()Details
Type
array
>VPropertyprivate\Broker\ExpansionCache $expansionCache = null
Expansion cache
Default valuenullDetails
Type
\Broker\ExpansionCache
>VPropertyprivatearray $responseJoins = null
Response joins
Default valuenullDetails
Type
array
>VPropertyprivatestring $solrConfiguration = null
Solr configuration
Default valuenullDetails
Type
string
>VPropertyprivatestring $solrRequest = null
Solr request
Default valuenullDetails
Type
string
>VPropertyprivatestring $solrRequestAddition = null
Solr request addition
Default valuenullDetails
Type
string
>VPropertyprivatearray $solrShards = null
Solr shards
Default valuenullDetails
Type
array
>VPropertyprivatestring $solrUrl = null
Url solr
Default valuenullDetails
Type
string
>VPropertyprivatestring $statusKey = null
Status key
Default valuenullDetails
Type
string
>VPropertyprivatearray $warnings = array()
Warnings
Default valuearray()Details
Type
array

Methods

methodpublic__construct(object $request, array $configuration, \Broker\Cache $cache, \Broker\Collection $collection, \Broker\ExpansionCache $expansionCache, string $statusKey) : void

Constructor

Parameters
NameTypeDescription
$requestobject
$configurationarray
$cache\Broker\Cache
$collection\Broker\Collection
$expansionCache\Broker\ExpansionCache
$statusKeystring
Throws
ExceptionDescription
\Exception
methodprivatecheckCache(object $object) : object

Check cache in request

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckCondition(object $object) : object

Check condition

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckDebug(object $object) : object

Check debug in request

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckFilter(object $object) : object

Check filter

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckFilters(object $object) : object

Check filters

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckMtasStats(object $object, string $prefixMessage = "") : object

Check mtas stats

Parameters
NameTypeDescription
$objectobject
$prefixMessagestring
Returns
TypeDescription
object
methodprivatecheckMtasStatsFunction(object $object, string $prefixMessage = "") : object

Check mtas stats functions

Parameters
NameTypeDescription
$objectobject
$prefixMessagestring
Returns
TypeDescription
object
methodprivatecheckPage(object $object, string $prefix) : void

Check page

Parameters
NameTypeDescription
$objectobject
$prefixstring
  • @return object
methodprivatecheckResponse(object $object) : object

Check response in request

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseDocuments(object $object) : object

Check documents in response

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseDocumentsJoin(object $object) : object

Check documents join in response

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseFacetField(object $object, array $keyList) : array

Check facet field

Parameters
NameTypeDescription
$objectobject
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetFieldJoin(object $object) : object

Check join facet field

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseFacetFields(array $facetfields, array $keyList) : void

Check facet fields in response

Parameters
NameTypeDescription
$facetfieldsarray
$keyListarray
methodprivatecheckResponseFacetHeatmap(object $object, array $keyList) : array

Check facet pivot

Parameters
NameTypeDescription
$objectobject
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetHeatmaps(array $facetheatmaps, array $keyList) : array

Check facet heatmaps

Parameters
NameTypeDescription
$facetheatmapsarray
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetPivot(object $object, array $keyList) : array

Check facet pivot

Parameters
NameTypeDescription
$objectobject
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetPivots(array $facetpivots, array $keyList) : array

Check facet pivots

Parameters
NameTypeDescription
$facetpivotsarray
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetQueries(array $facetqueries, array $keyList) : array

Check facet queries

Parameters
NameTypeDescription
$facetqueriesarray
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetQuery(object $object, array $keyList) : array

Check facet query

Parameters
NameTypeDescription
$objectobject
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetRange(object $object, array $keyList) : array

Check facet range

Parameters
NameTypeDescription
$objectobject
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacetRanges(array $facetranges, array $keyList) : array

Check facet ranges

Parameters
NameTypeDescription
$facetrangesarray
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseFacets(object $object) : object

Check facets in response

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtas(object $object) : object

Check mtas in response

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasBase(object $object, string $prefix) : object

Check mtas base (facets)

Parameters
NameTypeDescription
$objectobject
$prefixstring
Returns
TypeDescription
object
methodprivatecheckResponseMtasCollection(object $object) : object

Check mtas collection

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasDistance(object $object, string $prefix) : object

Check mtas distance

Parameters
NameTypeDescription
$objectobject
$prefixstring
Returns
TypeDescription
object
methodprivatecheckResponseMtasDocument(object $object) : object

Check mtas documents

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasFacet(object $object) : object

Check mtas facet

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasFunction(object $object, string $prefix) : object

Check mtas function

Parameters
NameTypeDescription
$objectobject
$prefixstring
Returns
TypeDescription
object
methodprivatecheckResponseMtasGroup(object $object) : object

Check mtas group

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasHeatmap(object $object) : object

Check mtas heatmap

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasKwicAndList(string $type, object $object) : object

Check mtas kwic and list

Parameters
NameTypeDescription
$typestring
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasPage(object $object) : object

Check mtas page

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasPrefix(object $object) : object

Check mtas prefix

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasQuery(object $object, string $prefix) : object

Check query mtas

Parameters
NameTypeDescription
$objectobject
$prefixstring
Returns
TypeDescription
object
methodprivatecheckResponseMtasStats(object $object) : object

Check mtas stats

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasStatsPositions(object $object) : object

Check mtas stats positions

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasStatsSpans(object $object) : object

Check mtas stats spans

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasStatsTokens(object $object) : object

Check mtas stats tokens

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasTermvector(object $object) : object

Check mtas termvector

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseMtasVersion(object $object) : object

Check mtas collection

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseStats(object $object) : object

Check stats in response

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckResponseStatsField(object $object, array $keyList) : array

Check stats field

Parameters
NameTypeDescription
$objectobject
$keyListarray
Returns
TypeDescription
array
methodprivatecheckResponseStatsFields(array $statsfields, array $keyList) : array

Check stats fields in response

Parameters
NameTypeDescription
$statsfieldsarray
$keyListarray
Returns
TypeDescription
array
methodprivatecheckSort(object $object) : object

Check sort in request

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckSortitem(object $object) : object

Check sortItem in sort

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckTimeAllowed(object $object) : object

Check timeAllowed in request

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivatecheckVariables(object $object, object $fromCondition, string $prefixMessage = "") : object

Check variables

Parameters
NameTypeDescription
$objectobject
$fromConditionobject
$prefixMessagestring
Returns
TypeDescription
object
methodprivatecomputeConfiguration(string $config) : object

Compute configuration

Parameters
NameTypeDescription
$configstring
Returns
TypeDescription
object
methodprivatecomputeExpansionValues(array | string $value, object $expansion, string $prefixMessage = "") : array

Compute expansions values

Parameters
NameTypeDescription
$valuearray | string
$expansionobject
$prefixMessagestring
Returns
TypeDescription
array
methodprivatecreateCollectionIdFromJoin(object $object, object $configuration) : string

Create collectionId from join

Parameters
NameTypeDescription
$objectobject
$configurationobject
Returns
TypeDescription
string
methodprivatecreateVariableCombinations(array $variables, array $combinations) : array

Create variable combinations

Parameters
NameTypeDescription
$variablesarray
$combinationsarray
Returns
TypeDescription
array
methodprivatecreateVariablesList(array $variables) : array

Create variables list

Parameters
NameTypeDescription
$variablesarray
Returns
TypeDescription
array
methodprivatecreateVariablesString(array $variables) : string

Create variables string

Parameters
NameTypeDescription
$variablesarray
Returns
TypeDescription
string
methodprivatefinishCollectionIdFromJoin(object $collectionId, object $configuration) : string

Finish collectionId from join

Parameters
NameTypeDescription
$collectionIdobject
$configurationobject
Returns
TypeDescription
string
methodpublicgetCache() : \Broker\Cache

Get (or create) cache

Returns
TypeDescription
\Broker\Cache
methodpublicgetCollection() : \Broker\Collection

Get (or create) collection

Returns
TypeDescription
\Broker\Collection
methodpublicgetCollectionIds() : array

Get collection ids

Returns
TypeDescription
array
methodpublicgetConfiguration() : array

Get solr configuration

Returns
TypeDescription
array
methodprivategetConfigurationsForField(object $field) : array

Get configurations for field

Parameters
NameTypeDescription
$fieldobject
Returns
TypeDescription
array
methodpublicgetErrors() : array

Get errors

Returns
TypeDescription
array
methodpublicgetRequest() : string

Get solr request

Returns
TypeDescription
string
methodpublicgetRequestAddition() : string

Get addition solr request

Returns
TypeDescription
string
methodpublicgetResponseJoins() : object

Get response joins

Returns
TypeDescription
object
methodpublicgetShards() : array

Get shards

Returns
TypeDescription
array
methodpublicgetStatusKey() : string

Get status key

Returns
TypeDescription
string
methodpublicgetUrl() : string

Get solr url

Returns
TypeDescription
string
methodpublicgetWarnings() : array

Get warnings

Returns
TypeDescription
array
methodprivateparse() : void

parse

methodprivateparseCache(object $object) : null

Parse cache

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
null
methodprivateparseCondition(object $object) : object

Parse condition

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivateparseDebug(object $object) : string | NULL

Parse debug

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
string | NULL
methodprivateparseFilter(object $object, array $requestList, array $facetQueries, array $mtasStats) : array

Parse filter

Parameters
NameTypeDescription
$objectobject
$requestListarray
$facetQueriesarray
$mtasStatsarray
Returns
TypeDescription
array
methodprivateparseFilters(object $object) : array

Parse filters

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
array
methodprivateparseResponse(object $object, array $facetQueries, array $mtasStats) : object

Parse response

Parameters
NameTypeDescription
$objectobject
$facetQueriesarray
$mtasStatsarray
Returns
TypeDescription
object
methodprivateparseResponseDocuments(object $object) : object

Parse documents in response

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivateparseResponseDocumentsJoin(object $object) : object

Parse join in documents

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
object
methodprivateparseResponseFacetField(object $object, \Broker\number $i) : object

Parse facet field

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseFacetFieldJoin(object $object, string $key, \Broker\number $i) : object

Parse join facet field

Parameters
NameTypeDescription
$objectobject
$keystring
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseFacetFields(object $object, array $requestList) : array

Parse facet fields

Parameters
NameTypeDescription
$objectobject
$requestListarray
Returns
TypeDescription
array
methodprivateparseResponseFacetHeatmap(object $object, \Broker\number $i) : object

Parse facet heatmap

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseFacetHeatmaps(object $object, array $requestList) : array

Parse facet heatmaps

Parameters
NameTypeDescription
$objectobject
$requestListarray
Returns
TypeDescription
array
methodprivateparseResponseFacetPivot(object $object, \Broker\number $i) : object

Parse facet pivot

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseFacetPivots(object $object, array $requestList) : array

Parse facet pivots

Parameters
NameTypeDescription
$objectobject
$requestListarray
Returns
TypeDescription
array
methodprivateparseResponseFacetQueries(object $object, array $requestList, array $keyListFacetQueries) : array

Parse facet queries

Parameters
NameTypeDescription
$objectobject
$requestListarray
$keyListFacetQueriesarray
Returns
TypeDescription
array
methodprivateparseResponseFacetQuery(object $object, array $keyListFacetQueries, \Broker\number $i) : array

Parse facet query

Parameters
NameTypeDescription
$objectobject
$keyListFacetQueriesarray
$i\Broker\number
Returns
TypeDescription
array
methodprivateparseResponseFacetRange(object $object, \Broker\number $i) : object

Parse facet range

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseFacetRanges(object $object, array $requestList) : array

Parse facet range

Parameters
NameTypeDescription
$objectobject
$requestListarray
Returns
TypeDescription
array
methodprivateparseResponseFacets(object $object, object $facetqueries) : object

Parse facets in response

Parameters
NameTypeDescription
$objectobject
$facetqueriesobject
Returns
TypeDescription
object
methodprivateparseResponseMtas(object $object, array $mtasStats) : object

Parse mtas in response

Parameters
NameTypeDescription
$objectobject
$mtasStatsarray
Returns
TypeDescription
object
methodprivateparseResponseMtasCollection(object $object, \Broker\number $i) : object

Parse mtas collection

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasDocument(object $object, \Broker\number $i) : object

Parse mtas documents

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasFacet(object $object, \Broker\number $i) : object

Parse mtas facet

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasGroup(object $object, \Broker\number $i) : object

Parse mtas group

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasHeatmap(object $object, \Broker\number $i) : object

Parse mtas heatmap

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasKwicAndList(string $type, object $object, \Broker\number $i) : object

Parse mtas kwic and list

Parameters
NameTypeDescription
$typestring
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasPage(object $object, \Broker\number $i) : object

Parse mtas page

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasPrefix(object $object, \Broker\number $i) : object

Parse mtas prefix

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasStats(object $object, array $mtasStats) : object

Parse mtas stats

Parameters
NameTypeDescription
$objectobject
$mtasStatsarray
Returns
TypeDescription
object
methodprivateparseResponseMtasStatsPositions(object $object, \Broker\number $i) : object

Parse mtas stats positions

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasStatsSpans(object $object, \Broker\number $i) : object

Parse mtas stats spans

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasStatsTokens(object $object, \Broker\number $i) : object

Parse mtas stats tokens

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseMtasTermvector(object $object, \Broker\number $i) : object

Parse mtas termvector

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseStats(object $object) : void

Parse stats in response

Parameters
NameTypeDescription
$objectobject

return unknown

methodprivateparseResponseStatsField(object $object, \Broker\number $i) : object

Parse stats field

Parameters
NameTypeDescription
$objectobject
$i\Broker\number
Returns
TypeDescription
object
methodprivateparseResponseStatsFields(object $object, array $requestList) : array

Parse stats fields

Parameters
NameTypeDescription
$objectobject
$requestListarray
Returns
TypeDescription
array
methodprivateparseSort(object $object) : string | NULL

parse Sort

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
string | NULL
methodprivateparseTimeAllowed(object $object) : null

Parse timeAllowed

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
null
methodprivatesolrEncode(object $value, string $type = null) : string

Solr encode

Parameters
NameTypeDescription
$valueobject
$typestring
Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.8.5.