}
return self::element( 'textarea', $attribs, $spacedValue );
}
+
/**
* Build a drop-down box for selecting a namespace
*
function setOffset( $offset ) {
$this->mOffset = $offset;
}
+
/**
* Set the limit from an other source than the request
*
array( 'Sanitizer', 'normalizeCharReferencesCallback' ),
$text );
}
+
/**
* @param string $matches
* @return string
wfProfileOut( __METHOD__ );
return $bar;
}
+
/**
* Add content from a sidebar system message
* Currently only used for MediaWiki:Sidebar (but may be used by Extensions)
wfProfileOut( __METHOD__ );
return $s;
}
+
/**
* Get the rel attribute for a particular external link.
*
}
return null;
}
+
/**
* Get an associative array of additional HTML attributes appropriate for a
* particular external link. This currently may include rel => nofollow
$s .= '}';
return $s;
}
+
/**
* Returns true if there are no arguments in this frame
*
return wfAppendQuery( wfScript( 'load' ), $query );
}
-
/**
* @param $context ResourceLoaderContext
* @return string
}
return '<span class="history-deleted">' . $link . '</span>';
}
+
/**
* Generate a user tool link cluster if the current user is allowed to view it
* @return string HTML
$lc = $this->legalSearchChars();
return trim( preg_replace( "/[^{$lc}]/", " ", $text ) );
}
+
/**
* Load up the appropriate search engine class for the currently
* active database backend, and return a configured instance.
$result->initFromTitle( $title );
return $result;
}
+
/**
* Return a new SearchResult and initializes it with a row.
*
return false;
}
}
+
/**
* A SearchResultSet wrapper for SearchEngine::getNearMatch
*/
class SearchNearMatchResultSet extends SearchResultSet {
private $fetched = false;
+
/**
* @param $match mixed Title if matched, else null
*/
public function __construct( $match ) {
$this->result = $match;
}
+
public function hasResult() {
return (bool)$this->result;
}
+
public function numRows() {
return $this->hasResults() ? 1 : 0;
}
+
public function next() {
if ( $this->fetched || !$this->result ) {
return false;
$t = preg_replace( '/([-&|])/', '\\\\$1', $t );
return $t;
}
+
/**
* Create or update the search index record for the given page.
* Title and text should be pre-processed.
parent::__construct( $row );
$this->score = $row->score;
}
+
function getScore() {
return $this->score;
}
function isListed() {
return $this->mListed;
}
+
/**
* Set whether this page is listed in Special:Specialpages, at run-time
* @since 1.3
function setListed( $listed ) {
return wfSetVar( $this->mListed, $listed );
}
+
/**
* Get or set whether this special page is listed in Special:SpecialPages
* @since 1.6
$this->getLanguage()->formatNum( $this->images ),
array( 'class' => 'mw-statistics-files' ) );
}
+
private function getEditStats() {
return Xml::openElement( 'tr' ) .
Xml::tags( 'th', array( 'colspan' => '2' ), $this->msg( 'statistics-header-edits' )->parse() ) .
$form->setSubmitText( $this->msg( 'upload-tryagain' )->escaped() );
$this->showUploadForm( $form );
}
+
/**
* Stashes the upload, shows the main form, but adds a "continue anyway button".
* Also checks whether there are actually warnings to display.
str_replace( "_", " ", "[[MediaWiki:Some_random_test_page]]");
}
-
function benchstrtr_indirect() {
bfNormalizeTitleStrTr( "[[MediaWiki:Some_random_test_page]]" );
}