);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Block';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Delete';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Edit';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:E-mail';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Parsing_wikitext';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return '';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Watchlist_feed';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
// Check whether we're allowed to revert this file
$this->checkPermissions( $wgUser );
-
+
$sourceUrl = $this->file->getArchiveVirtualUrl( $this->archiveName );
$status = $this->file->upload( $sourceUrl, $this->params['comment'], $this->params['comment'] );
if ( $status->isGood() ) {
$result = array( 'result' => 'Success' );
} else {
- $result = array(
- 'result' => 'Failure',
+ $result = array(
+ 'result' => 'Failure',
'errors' => $this->getResult()->convertStatusToArray( $status ),
);
}
- $this->getResult()->addValue( null, $this->getModuleName(), $result );
+ $this->getResult()->addValue( null, $this->getModuleName(), $result );
}
),
'archivename' => array(
ApiBase::PARAM_TYPE => 'string',
- ApiBase::PARAM_REQUIRED => true,
+ ApiBase::PARAM_REQUIRED => true,
),
'token' => null,
);
);
}
+ public function getHelpUrls() {
+ return '';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
return 'api.php?action=query&meta=siteinfo&siprop=namespaces&format=' . $this->getModuleName();
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Data_formats';
+ }
+
public function getDescription() {
return $this->getIsHtml() ? ' (pretty-print in HTML)' : '';
}
);
}
+ public function getHelpUrls() {
+ return array(
+ 'http://www.mediawiki.org/wiki/API:Main_page',
+ 'http://www.mediawiki.org/wiki/API:FAQ',
+ 'http://www.mediawiki.org/wiki/API:Quick_start_guide',
+ );
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Import';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Move';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
$searches = PrefixSearch::titleSearch( $search, $limit,
$namespaces );
-
+
// if the content language has variants, try to retrieve fallback results
$fallbackLimit = $limit - count( $searches );
if ( $fallbackLimit > 0 ) {
);
}
+ public function getHelpUrls() {
+ return '';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return '';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return '';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Protect';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Purge';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Rollback';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Block';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Undelete';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
$request = $this->getMain()->getRequest();
// Add the uploaded file to the params array
$this->mParams['file'] = $request->getFileName( 'file' );
-
+
// Copy the session key to the file key, for backward compatibility.
if( !$this->mParams['filekey'] && $this->mParams['sessionkey'] ) {
$this->mParams['filekey'] = $this->mParams['sessionkey'];
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Upload';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:User_group_membership';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}
);
}
+ public function getHelpUrls() {
+ return 'http://www.mediawiki.org/wiki/API:Watch';
+ }
+
public function getVersion() {
return __CLASS__ . ': $Id$';
}