Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\Specials\SearchByProperty\QueryResultLookup Class Reference

Public Member Functions

 __construct (Store $store)
 
 doQueryLinksReferences (PageRequestOptions $pageRequestOptions)
 
 doQuery (PageRequestOptions $pageRequestOptions)
 
 doQueryForNearbyResults (PageRequestOptions $pageRequestOptions, $count, $greater=true)
 

Detailed Description

GNU GPL v2+

Since
2.1
Author
Denny Vrandecic
Daniel Herzig
Markus Kroetzsch
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Specials\SearchByProperty\QueryResultLookup::__construct ( Store  $store)
Since
2.1

Member Function Documentation

◆ doQuery()

SMW\MediaWiki\Specials\SearchByProperty\QueryResultLookup::doQuery ( PageRequestOptions  $pageRequestOptions)
Since
2.1
Parameters
QueryOptions$pageRequestOptions
Returns
array of array(SMWWikiPageValue, SMWDataValue) with the first being the entity, and the second the value

◆ doQueryForNearbyResults()

SMW\MediaWiki\Specials\SearchByProperty\QueryResultLookup::doQueryForNearbyResults ( PageRequestOptions  $pageRequestOptions,
  $count,
  $greater = true 
)

Returns all results that have a value near to the searched for value on the property, ordered, and sorted by ending with the smallest one.

Parameters
QueryOptions$pageRequestOptions
integer$countHow many entities have the exact same value on the property?
integer$greaterShould the values be bigger? Set false for smaller values.
Returns
array of array of SMWWikiPageValue, SMWDataValue with the first being the entity, and the second the value

◆ doQueryLinksReferences()

SMW\MediaWiki\Specials\SearchByProperty\QueryResultLookup::doQueryLinksReferences ( PageRequestOptions  $pageRequestOptions)
Since
2.5
Parameters
QueryOptions$pageRequestOptions
Returns
array

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

About | General disclaimer | Privacy policy