SMWQueryPage Class Reference
[Semantic MediaWiki]

Abstract base class for SMW's variant of the MW QueryPage. More...

Inherited by SMWPropertiesPage, SMWUnusedPropertiesPage, and SMWWantedPropertiesPage.

List of all members.

Public Member Functions

 getResults ($requestoptions)
 Implemented by subclasses to provide concrete functions.
 recache ($limit, $ignoreErrors=true)
 Clear the cache and save new results.
 isExpensive ()
 isSyndicated ()
 doQuery ($offset=false, $limit=false)
 This is the actual workhorse.
 getSkin ()
 Compatibility method to get the skin; MW 1.18 introduces a getSkin method in SpecialPage.


Detailed Description

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.

Definition at line 17 of file SMW_QueryPage.php.


Member Function Documentation

SMWQueryPage::getResults ( requestoptions  )  [abstract]

Implemented by subclasses to provide concrete functions.

Reimplemented in SMWPropertiesPage, SMWUnusedPropertiesPage, and SMWWantedPropertiesPage.

Referenced by doQuery().

SMWQueryPage::recache ( limit,
ignoreErrors = true 
)

Clear the cache and save new results.

Todo:
Implement caching for SMW query pages

TODO

Definition at line 28 of file SMW_QueryPage.php.

SMWQueryPage::isExpensive (  ) 

Reimplemented in SMWUnusedPropertiesPage, and SMWWantedPropertiesPage.

Definition at line 32 of file SMW_QueryPage.php.

SMWQueryPage::isSyndicated (  ) 

Reimplemented in SMWUnusedPropertiesPage, and SMWWantedPropertiesPage.

Definition at line 36 of file SMW_QueryPage.php.

SMWQueryPage::doQuery ( offset = false,
limit = 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:
$offset database query offset
$limit database query limit

Definition at line 49 of file SMW_QueryPage.php.

References getResults(), and getSkin().

SMWQueryPage::getSkin (  ) 

Compatibility method to get the skin; MW 1.18 introduces a getSkin method in SpecialPage.

Since:
1.6
Returns:
Skin

Definition at line 111 of file SMW_QueryPage.php.

Referenced by doQuery().


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

Generated on Sun Mar 18 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6