* $a = $cf->run();
* print implode( ',' , $a );
* @endcode
- *
*/
class CategoryFinder {
/** @var int[] The original article IDs passed to the seed function */
* is in this case an unwanted overhead that just slows things down.
*
* @warning EXPERIMENTAL!
- *
*/
$wgDBOracleDRCP = false;
*
* These are synonyms for the names given in the language file
* Users and translators should not change them
- *
*/
class MWNamespace {
* Gives access to properties of a page.
*
* @since 1.27
- *
*/
class PageProps {
*
* @return string The content model id associated with this revision,
* see the CONTENT_MODEL_XXX constants.
- **/
+ */
public function getContentModel() {
if ( !$this->mContentModel ) {
$title = $this->getTitle();
*
* @return string The content format id associated with this revision,
* see the CONTENT_FORMAT_XXX constants.
- **/
+ */
public function getContentFormat() {
if ( !$this->mContentFormat ) {
$handler = $this->getContentHandler();
/**
* Update object handling the cleanup of links tables after a page was deleted.
- **/
+ */
class LinksDeletionUpdate extends DataUpdate implements EnqueueableDataUpdate {
/** @var WikiPage */
protected $page;
return strlen( $content );
}
+ /**
+ * @see MWHttpRequest::execute
+ *
+ * @throws MWException
+ * @return Status
+ */
public function execute() {
$this->prepare();
$this->fopenErrors += [ "errno$n" => $errno, "errstr$n" => $errstr ];
}
+ /**
+ * @see MWHttpRequest::execute
+ *
+ * @return Status
+ */
public function execute() {
$this->prepare();
*
* @param $serverSoftware
* @return bool
- *
*/
public static function haveUndecodedRequestUri( $serverSoftware ) {
static $whitelist = [
$this->stackDepth++;
}
- /**
- */
private function elementClose() {
list( $name, $attribs ) = array_pop( $this->elementDataContext );
$data = array_pop( $this->elementData );
*
* @param string|array $key The metric(s) to set.
* @param float $time The elapsed time (ms) to log
- **/
+ */
public function timing( $key, $time ) {
}
*
* @param string|array $key The metric(s) to set.
* @param float $value The value for the stats.
- **/
+ */
public function gauge( $key, $value ) {
}
* @param float $value The value for the stats.
*
* @return array
- **/
+ */
public function set( $key, $value ) {
return [];
}
* @param float|1 $sampleRate The rate (0-1) for sampling.
*
* @return array
- **/
+ */
public function increment( $key ) {
return [];
}
* @param float|1 $sampleRate The rate (0-1) for sampling.
*
* @return mixed
- **/
+ */
public function decrement( $key ) {
return [];
}
* @param integer $delta The delta to add to the each metric
*
* @return mixed
- **/
+ */
public function updateCount( $key, $delta ) {
return [];
}
* ("c" for count, "ms" for timing, "g" for gauge, "s" for set)
*
* @return StatsdDataInterface
- **/
+ */
public function produceStatsdData(
$key,
$value = 1,
* Note XMP kind of looks like rdf. They are not the same thing - XMP is
* encoded as a specific subset of rdf. This class can read XMP. It cannot
* read rdf.
- *
*/
class XMPReader implements LoggerAwareInterface {
/** @var array XMP item configuration array */
* Called when processing the <rdf:value> or <foo:someQualifier>.
*
* @param string $elm Namespace and tag name separated by a space.
- *
*/
private function startElementModeQDesc( $elm ) {
if ( $elm === self::NS_RDF . ' value' ) {
* Class to simplify the use of log pages.
* The logs are now kept in a table which is easier to manage and trim
* than ever-growing wiki pages.
- *
*/
class LogPage {
const DELETED_ACTION = 1;
/**
* Show a diff page according to current request variables. For use within
* Article::view() only, other callers should use the DifferenceEngine class.
- *
*/
protected function showDiffPage() {
$request = $this->getContext()->getRequest();
/**
* @var string Deprecated accessor for the strip marker prefix.
* @deprecated since 1.26; use Parser::MARKER_PREFIX instead.
- **/
+ */
public $mUniqPrefix = Parser::MARKER_PREFIX;
/**
* @code
* $parser->getOutput()->my_ext_foo = '...';
* @endcode
- *
*/
public function setProperty( $name, $value ) {
$this->mProperties[$name] = $value;
}
}
- /**
- */
public function registerTestModules() {
global $IP;
/**
* Augment search results.
- *
*/
interface ResultAugmentor {
/**
/**
* Augment search results.
- *
*/
interface ResultSetAugmentor {
/**
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
- *
*/
/**
* A search suggestion
- *
*/
class SearchSuggestion {
/**
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
- *
*/
/**
/**
* Executes an edit mode for the watchlist view, from which you can manage your watchlist
- *
*/
protected function executeViewEditWatchlist() {
$out = $this->getOutput();
* @param string $oname The option to check
* @param string $defaultOverride A default value returned if the option does not exist
* @param bool $ignoreHidden Whether to ignore the effects of $wgHiddenPrefs
- * @return string User's current value for the option
+ * @return string|null User's current value for the option
* @see getBoolOption()
* @see getIntOption()
*/
*
* Only a functional interface is provided: ZipFileReader::read(). No access is
* given to object instances.
- *
*/
class ZipDirectoryReader {
/**
use \Cdb\Exception as CdbException;
use \Cdb\Reader as CdbReader;
-/** */
require_once __DIR__ . '/commandLine.inc';
function cdbShowHelp( $command ) {
$optionsWithArgs = [ 'd' ];
-/** */
require_once __DIR__ . "/commandLine.inc";
if ( isset( $options['d'] ) ) {
class CompressOld extends Maintenance {
/**
* Option to load each revision individually.
- *
*/
const LS_INDIVIDUAL = 0;
/**
* Option to load revisions in chunks.
- *
*/
const LS_CHUNKED = 1;
* $('#textbox').expandableField();
*
* Options:
- *
*/
( function ( $ ) {
* @param {mw.Title} title Title being posted to
* @param {mw.Api} api mw.Api instance that the instance should use
* @return {mw.messagePoster.MessagePoster}
- *
*/
MessagePosterFactory.prototype.createForContentModel = function ( contentModel, title, api ) {
return new this.contentModelToClass[ contentModel ]( title, api );
$checkboxes.prop( 'disabled', isAllNS );
},
- /** */
init: function () {
$select = $( '#namespace' );
$checkboxes = $( '#nsassociated, #nsinvert' );
/**
* Internal helper that actually run the test.
* Called by the public methods testEncodingUrlWith...()
- *
*/
private function verifyEncodingFor( $server, $input, $expectations ) {
$expected = $this->extractExpect( $server, $expectations );
* Generated by PHPUnit on 2011-02-20 at 21:01:55.
* @todo covers tags
* @todo FIXME: this test file is a mess
- *
*/
class MWNamespaceTest extends MediaWikiTestCase {
protected function setUp() {
* @group Output
*
* @todo factor tests in this class into providers and test methods
- *
*/
class OutputPageTest extends MediaWikiTestCase {
const SCREEN_MEDIA_QUERY = 'screen and (min-width: 982px)';
return $this->getTokenList( self::$users['sysop'] );
}
- /**
- */
public function testWatchEdit() {
$tokens = $this->getTokens();
return $data;
}
- /**
- */
public function testWatchProtect() {
$tokens = $this->getTokens();
$this->assertArrayHasKey( 'edit', $data[0]['protect']['protections'][0] );
}
- /**
- */
public function testGetRollbackToken() {
$this->getTokens();
* @group Database
* ^--- important, causes temporary tables to be used instead of the real database
* @group medium
- **/
+ */
class WikiPageTest extends MediaWikiLangTestCase {
protected $pages_to_delete;
* Due to a hack in Maintenance.php using register_shutdown_function, be sure to
* finally call simulateShutdown on MaintenanceFixup instance before a test
* ends.
- *
*/
class MaintenanceFixup extends Maintenance {
/**
* Creates an empty Content object of the type supported by this ContentHandler.
- *
*/
public function makeEmptyContent() {
return new DummyContentForTesting( '' );
* @copyright © 2012, Niklas Laxström
* @copyright © 2012, Santhosh Thottingal
* @copyright © 2012, Timo Tijhof
- *
*/
class ResourcesTest extends MediaWikiTestCase {