Semantic MediaWiki and related extensions
Public Member Functions | Protected Attributes | List of all members
SMW\QueryPage Class Reference
Inheritance diagram for SMW\QueryPage:
Inheritance graph
[legend]
Collaboration diagram for SMW\QueryPage:
Collaboration graph
[legend]

Public Member Functions

 getResults ( $requestoptions)
 
 recache ( $limit, $ignoreErrors=true)
 
 isExpensive ()
 
 isSyndicated ()
 
 linkParameters ()
 
 getMessageFormatter ()
 
 getLinker ()
 
 getSearchForm ( $property='', $cacheDate='', $propertySearch=true, $filter='')
 
 doQuery ( $offset=false, $limit=false, $property=false)
 

Protected Attributes

 $msgFormatter
 
 $linker = null
 
 $selectOptions = []
 
 $useSerchForm = false
 

Detailed Description

An abstract query page base class that supports array-based data retrieval instead of the SQL-based access used by MW.

GNU GPL v2+

Since
??
Author
Markus Krötzsch Abstract base class for SMW's variant of the MW QueryPage. Subclasses must implement getResults() and formatResult(), as well as some other standard functions of QueryPage.

Member Function Documentation

◆ doQuery()

SMW\QueryPage::doQuery (   $offset = false,
  $limit = false,
  $property = false 
)

This is the actual workhorse. It does everything needed to make a real, honest-to-gosh query page. Alas, we need to overwrite the whole beast since we do not assume an SQL-based storage backend.

Parameters
$offsetdatabase query offset
$limitdatabase query limit
$propertydatabase string query

◆ getLinker()

SMW\QueryPage::getLinker ( )

Returns a Linker object

Since
1.9
Returns
Linker

◆ getMessageFormatter()

SMW\QueryPage::getMessageFormatter ( )

Returns a MessageFormatter object

Since
1.9
Returns
MessageFormatter

◆ getResults()

SMW\QueryPage::getResults (   $requestoptions)
abstract

Implemented by subclasses to provide concrete functions.

◆ getSearchForm()

SMW\QueryPage::getSearchForm (   $property = '',
  $cacheDate = '',
  $propertySearch = true,
  $filter = '' 
)

Generates a search form

Since
1.9
Parameters
string$property
Returns
string

◆ linkParameters()

SMW\QueryPage::linkParameters ( )
See also
QueryPage::linkParameters
Since
1.9
Returns
array

◆ recache()

SMW\QueryPage::recache (   $limit,
  $ignoreErrors = true 
)

Clear the cache and save new results

Todo:
Implement caching for SMW query pages

TODO


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

About | General disclaimer | Privacy policy