* @deprecated since 1.24
*/
public static function resetTokenCache() {
- ApiQueryInfo::$cachedTokens = [];
+ self::$cachedTokens = [];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['edit'] ) ) {
- ApiQueryInfo::$cachedTokens['edit'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['edit'] ) ) {
+ self::$cachedTokens['edit'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['edit'];
+ return self::$cachedTokens['edit'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['delete'] ) ) {
- ApiQueryInfo::$cachedTokens['delete'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['delete'] ) ) {
+ self::$cachedTokens['delete'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['delete'];
+ return self::$cachedTokens['delete'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['protect'] ) ) {
- ApiQueryInfo::$cachedTokens['protect'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['protect'] ) ) {
+ self::$cachedTokens['protect'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['protect'];
+ return self::$cachedTokens['protect'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['move'] ) ) {
- ApiQueryInfo::$cachedTokens['move'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['move'] ) ) {
+ self::$cachedTokens['move'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['move'];
+ return self::$cachedTokens['move'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['block'] ) ) {
- ApiQueryInfo::$cachedTokens['block'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['block'] ) ) {
+ self::$cachedTokens['block'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['block'];
+ return self::$cachedTokens['block'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['email'] ) ) {
- ApiQueryInfo::$cachedTokens['email'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['email'] ) ) {
+ self::$cachedTokens['email'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['email'];
+ return self::$cachedTokens['email'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['import'] ) ) {
- ApiQueryInfo::$cachedTokens['import'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['import'] ) ) {
+ self::$cachedTokens['import'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['import'];
+ return self::$cachedTokens['import'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['watch'] ) ) {
- ApiQueryInfo::$cachedTokens['watch'] = $wgUser->getEditToken( 'watch' );
+ if ( !isset( self::$cachedTokens['watch'] ) ) {
+ self::$cachedTokens['watch'] = $wgUser->getEditToken( 'watch' );
}
- return ApiQueryInfo::$cachedTokens['watch'];
+ return self::$cachedTokens['watch'];
}
/**
}
// The token is always the same, let's exploit that
- if ( !isset( ApiQueryInfo::$cachedTokens['options'] ) ) {
- ApiQueryInfo::$cachedTokens['options'] = $wgUser->getEditToken();
+ if ( !isset( self::$cachedTokens['options'] ) ) {
+ self::$cachedTokens['options'] = $wgUser->getEditToken();
}
- return ApiQueryInfo::$cachedTokens['options'];
+ return self::$cachedTokens['options'];
}
public function execute() {
$this->getDisplayTitle();
}
- /** @var $title Title */
+ /** @var Title $title */
foreach ( $this->everything as $pageid => $title ) {
$pageInfo = $this->extractPageInfo( $pageid, $title );
$fit = $pageInfo !== null && $result->addValue( [
$res = $this->select( __METHOD__ );
foreach ( $res as $row ) {
- /** @var $title Title */
+ /** @var Title $title */
$title = $this->titles[$row->pr_page];
$a = [
'type' => $row->pr_type,
private function getTSIDs() {
$getTitles = $this->talkids = $this->subjectids = [];
- /** @var $t Title */
+ /** @var Title $t */
foreach ( $this->everything as $t ) {
if ( MWNamespace::isTalk( $t->getNamespace() ) ) {
if ( $this->fld_subjectid ) {