/**
  * Override the default formatResult method in the parent.  The difference is that the parent will display
  * titles that turn out to pass the 'isKnown' test with a strikethrough whereas we will simply not display
  * these results in this version.
  * @param Skin $skin - The skin used to display this special page
  * @param Result $result - The result line to format
  * @return string - The HTML to use for this result line
  */
 public function formatResult($skin, $result)
 {
     $title = Title::makeTitleSafe($result->namespace, $result->title);
     if ($title instanceof Title && $title->isKnown()) {
         return '';
     }
     return parent::formatResult($skin, $result);
 }
 public function getQueryInfo()
 {
     global $wgExcludedWantedFiles;
     $queryInfo = parent::getQueryInfo();
     if (!empty($wgExcludedWantedFiles) && is_array($wgExcludedWantedFiles)) {
         $dbr = wfGetDB(DB_SLAVE);
         $queryInfo['conds'][] = "il_to not in (" . $dbr->makeList($wgExcludedWantedFiles) . ") ";
     }
     return $queryInfo;
 }
예제 #3
0
/**
 * constructor
 */
function wfSpecialWantedFiles()
{
    list($limit, $offset) = wfCheckLimits();
    $wpp = new WantedFilesPage();
    $wpp->doQuery($offset, $limit);
}