BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Solarium\Core\Query\Result\Result Class Reference
Inheritance diagram for Solarium\Core\Query\Result\Result:
Collaboration diagram for Solarium\Core\Query\Result\Result:

Public Member Functions

 __construct ($client, $query, $response)
 
 getResponse ()
 
 getQuery ()
 
 getData ()
 

Protected Attributes

 $response
 
 $data
 
 $query
 
 $client
 

Detailed Description

Query result

This base class provides access to the response and decoded data. If you need more functionality like resultset parsing use one of the subclasses

Constructor & Destructor Documentation

Solarium\Core\Query\Result\Result::__construct (   $client,
  $query,
  $response 
)

Constructor

Exceptions
HttpException
Parameters
Client$client
Query$query
Response$response

Member Function Documentation

Solarium\Core\Query\Result\Result::getData ( )

Get Solr response data

Includes a lazy loading mechanism: JSON body data is decoded on first use and then saved for reuse.

Exceptions
UnexpectedValueException
RuntimeException
Returns
array

Implements Solarium\Core\Query\Result\ResultInterface.

Solarium\Core\Query\Result\Result::getQuery ( )

Get query instance

Returns
Query

Implements Solarium\Core\Query\Result\ResultInterface.

Solarium\Core\Query\Result\Result::getResponse ( )

Get response object

This is the raw HTTP response object, not the parsed data!

Returns
Response

Implements Solarium\Core\Query\Result\ResultInterface.


The documentation for this class was generated from the following file: