MediaWiki  REL1_22
WantedQueryPage Class Reference

Class definition for a wanted query page like WantedPages, WantedTemplates, etc. More...

Inheritance diagram for WantedQueryPage:
Collaboration diagram for WantedQueryPage:

List of all members.

Public Member Functions

 forceExistenceCheck ()
 Should formatResult() always check page existence, even if the results are fresh? This is a (hopefully temporary) kluge for Special:WantedFiles, which may contain false positives for files that exist e.g.
 formatResult ($skin, $result)
 Format an individual result.
 isExpensive ()
 Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.
 isSyndicated ()
 Sometime we don't want to build rss / atom feeds.
 preprocessResults ($db, $res)
 Cache page existence for performance.

Private Member Functions

 makeWlhLink ($title, $result)
 Make a "what links here" link for a given title.

Detailed Description

Class definition for a wanted query page like WantedPages, WantedTemplates, etc.

Definition at line 744 of file QueryPage.php.


Member Function Documentation

Should formatResult() always check page existence, even if the results are fresh? This is a (hopefully temporary) kluge for Special:WantedFiles, which may contain false positives for files that exist e.g.

in a shared repo (bug 6220).

Returns:
bool

Reimplemented in WantedFilesPage.

Definition at line 781 of file QueryPage.php.

WantedQueryPage::formatResult ( skin,
result 
)

Format an individual result.

Parameters:
Skin$skinSkin to use for UI elements
object$resultResult row
Returns:
string

Reimplemented from QueryPage.

Reimplemented in WantedCategoriesPage.

Definition at line 792 of file QueryPage.php.

Is this query expensive (for some definition of expensive)? Then we don't let it run in miser mode.

$wgDisableQueryPages causes all query pages to be declared expensive. Some query pages are always expensive.

Returns:
bool

Reimplemented from QueryPage.

Definition at line 745 of file QueryPage.php.

Sometime we don't want to build rss / atom feeds.

Returns:
bool

Reimplemented from QueryPage.

Definition at line 749 of file QueryPage.php.

WantedQueryPage::makeWlhLink ( title,
result 
) [private]

Make a "what links here" link for a given title.

Parameters:
Title$titleTitle to make the link for
object$resultResult row
Returns:
string

Definition at line 827 of file QueryPage.php.

WantedQueryPage::preprocessResults ( db,
res 
)

Cache page existence for performance.

Parameters:
DatabaseBase$db
ResultWrapper$res

Reimplemented from QueryPage.

Definition at line 758 of file QueryPage.php.


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