MediaWiki  1.23.1
ApiQueryRevisions.php
Go to the documentation of this file.
1 <?php
36 
39 
40  public function __construct( $query, $moduleName ) {
41  parent::__construct( $query, $moduleName, 'rv' );
42  }
43 
44  private $fld_ids = false, $fld_flags = false, $fld_timestamp = false,
45  $fld_size = false, $fld_sha1 = false, $fld_comment = false,
46  $fld_parsedcomment = false, $fld_user = false, $fld_userid = false,
47  $fld_content = false, $fld_tags = false, $fld_contentmodel = false;
48 
49  private $tokenFunctions;
50 
51  protected function getTokenFunctions() {
52  // tokenname => function
53  // function prototype is func($pageid, $title, $rev)
54  // should return token or false
55 
56  // Don't call the hooks twice
57  if ( isset( $this->tokenFunctions ) ) {
58  return $this->tokenFunctions;
59  }
60 
61  // If we're in JSON callback mode, no tokens can be obtained
62  if ( !is_null( $this->getMain()->getRequest()->getVal( 'callback' ) ) ) {
63  return array();
64  }
65 
66  $this->tokenFunctions = array(
67  'rollback' => array( 'ApiQueryRevisions', 'getRollbackToken' )
68  );
69  wfRunHooks( 'APIQueryRevisionsTokens', array( &$this->tokenFunctions ) );
70 
71  return $this->tokenFunctions;
72  }
73 
80  public static function getRollbackToken( $pageid, $title, $rev ) {
82  if ( !$wgUser->isAllowed( 'rollback' ) ) {
83  return false;
84  }
85 
86  return $wgUser->getEditToken(
87  array( $title->getPrefixedText(), $rev->getUserText() ) );
88  }
89 
90  public function execute() {
91  $params = $this->extractRequestParams( false );
92 
93  // If any of those parameters are used, work in 'enumeration' mode.
94  // Enum mode can only be used when exactly one page is provided.
95  // Enumerating revisions on multiple pages make it extremely
96  // difficult to manage continuations and require additional SQL indexes
97  $enumRevMode = ( !is_null( $params['user'] ) || !is_null( $params['excludeuser'] ) ||
98  !is_null( $params['limit'] ) || !is_null( $params['startid'] ) ||
99  !is_null( $params['endid'] ) || $params['dir'] === 'newer' ||
100  !is_null( $params['start'] ) || !is_null( $params['end'] ) );
101 
102  $pageSet = $this->getPageSet();
103  $pageCount = $pageSet->getGoodTitleCount();
104  $revCount = $pageSet->getRevisionCount();
105 
106  // Optimization -- nothing to do
107  if ( $revCount === 0 && $pageCount === 0 ) {
108  return;
109  }
110 
111  if ( $revCount > 0 && $enumRevMode ) {
112  $this->dieUsage(
113  'The revids= parameter may not be used with the list options ' .
114  '(limit, startid, endid, dirNewer, start, end).',
115  'revids'
116  );
117  }
118 
119  if ( $pageCount > 1 && $enumRevMode ) {
120  $this->dieUsage(
121  'titles, pageids or a generator was used to supply multiple pages, ' .
122  'but the limit, startid, endid, dirNewer, user, excludeuser, start ' .
123  'and end parameters may only be used on a single page.',
124  'multpages'
125  );
126  }
127 
128  if ( !is_null( $params['difftotext'] ) ) {
129  $this->difftotext = $params['difftotext'];
130  } elseif ( !is_null( $params['diffto'] ) ) {
131  if ( $params['diffto'] == 'cur' ) {
132  $params['diffto'] = 0;
133  }
134  if ( ( !ctype_digit( $params['diffto'] ) || $params['diffto'] < 0 )
135  && $params['diffto'] != 'prev' && $params['diffto'] != 'next'
136  ) {
137  $this->dieUsage(
138  'rvdiffto must be set to a non-negative number, "prev", "next" or "cur"',
139  'diffto'
140  );
141  }
142  // Check whether the revision exists and is readable,
143  // DifferenceEngine returns a rather ambiguous empty
144  // string if that's not the case
145  if ( $params['diffto'] != 0 ) {
146  $difftoRev = Revision::newFromID( $params['diffto'] );
147  if ( !$difftoRev ) {
148  $this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) );
149  }
150  if ( !$difftoRev->userCan( Revision::DELETED_TEXT, $this->getUser() ) ) {
151  $this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" );
152  $params['diffto'] = null;
153  }
154  }
155  $this->diffto = $params['diffto'];
156  }
157 
158  $db = $this->getDB();
159  $this->addTables( 'page' );
160  $this->addFields( Revision::selectFields() );
161  $this->addWhere( 'page_id = rev_page' );
162 
163  $prop = array_flip( $params['prop'] );
164 
165  // Optional fields
166  $this->fld_ids = isset( $prop['ids'] );
167  // $this->addFieldsIf('rev_text_id', $this->fld_ids); // should this be exposed?
168  $this->fld_flags = isset( $prop['flags'] );
169  $this->fld_timestamp = isset( $prop['timestamp'] );
170  $this->fld_comment = isset( $prop['comment'] );
171  $this->fld_parsedcomment = isset( $prop['parsedcomment'] );
172  $this->fld_size = isset( $prop['size'] );
173  $this->fld_sha1 = isset( $prop['sha1'] );
174  $this->fld_contentmodel = isset( $prop['contentmodel'] );
175  $this->fld_userid = isset( $prop['userid'] );
176  $this->fld_user = isset( $prop['user'] );
177  $this->token = $params['token'];
178 
179  if ( !empty( $params['contentformat'] ) ) {
180  $this->contentFormat = $params['contentformat'];
181  }
182 
183  $userMax = ( $this->fld_content ? ApiBase::LIMIT_SML1 : ApiBase::LIMIT_BIG1 );
184  $botMax = ( $this->fld_content ? ApiBase::LIMIT_SML2 : ApiBase::LIMIT_BIG2 );
185  $limit = $params['limit'];
186  if ( $limit == 'max' ) {
187  $limit = $this->getMain()->canApiHighLimits() ? $botMax : $userMax;
188  $this->getResult()->setParsedLimit( $this->getModuleName(), $limit );
189  }
190 
191  if ( !is_null( $this->token ) || $pageCount > 0 ) {
193  }
194 
195  if ( isset( $prop['tags'] ) ) {
196  $this->fld_tags = true;
197  $this->addTables( 'tag_summary' );
198  $this->addJoinConds(
199  array( 'tag_summary' => array( 'LEFT JOIN', array( 'rev_id=ts_rev_id' ) ) )
200  );
201  $this->addFields( 'ts_tags' );
202  }
203 
204  if ( !is_null( $params['tag'] ) ) {
205  $this->addTables( 'change_tag' );
206  $this->addJoinConds(
207  array( 'change_tag' => array( 'INNER JOIN', array( 'rev_id=ct_rev_id' ) ) )
208  );
209  $this->addWhereFld( 'ct_tag', $params['tag'] );
210  }
211 
212  if ( isset( $prop['content'] ) || !is_null( $this->difftotext ) ) {
213  // For each page we will request, the user must have read rights for that page
214  $user = $this->getUser();
216  foreach ( $pageSet->getGoodTitles() as $title ) {
217  if ( !$title->userCan( 'read', $user ) ) {
218  $this->dieUsage(
219  'The current user is not allowed to read ' . $title->getPrefixedText(),
220  'accessdenied' );
221  }
222  }
223 
224  $this->addTables( 'text' );
225  $this->addWhere( 'rev_text_id=old_id' );
226  $this->addFields( 'old_id' );
228 
229  $this->fld_content = isset( $prop['content'] );
230 
231  $this->expandTemplates = $params['expandtemplates'];
232  $this->generateXML = $params['generatexml'];
233  $this->parseContent = $params['parse'];
234  if ( $this->parseContent ) {
235  // Must manually initialize unset limit
236  if ( is_null( $limit ) ) {
237  $limit = 1;
238  }
239  // We are only going to parse 1 revision per request
240  $this->validateLimit( 'limit', $limit, 1, 1, 1 );
241  }
242  if ( isset( $params['section'] ) ) {
243  $this->section = $params['section'];
244  } else {
245  $this->section = false;
246  }
247  }
248 
249  // add user name, if needed
250  if ( $this->fld_user ) {
251  $this->addTables( 'user' );
252  $this->addJoinConds( array( 'user' => Revision::userJoinCond() ) );
254  }
255 
256  // Bug 24166 - API error when using rvprop=tags
257  $this->addTables( 'revision' );
258 
259  if ( $enumRevMode ) {
260  // This is mostly to prevent parameter errors (and optimize SQL?)
261  if ( !is_null( $params['startid'] ) && !is_null( $params['start'] ) ) {
262  $this->dieUsage( 'start and startid cannot be used together', 'badparams' );
263  }
264 
265  if ( !is_null( $params['endid'] ) && !is_null( $params['end'] ) ) {
266  $this->dieUsage( 'end and endid cannot be used together', 'badparams' );
267  }
268 
269  if ( !is_null( $params['user'] ) && !is_null( $params['excludeuser'] ) ) {
270  $this->dieUsage( 'user and excludeuser cannot be used together', 'badparams' );
271  }
272 
273  // Continuing effectively uses startid. But we can't use rvstartid
274  // directly, because there is no way to tell the client to ''not''
275  // send rvstart if it sent it in the original query. So instead we
276  // send the continuation startid as rvcontinue, and ignore both
277  // rvstart and rvstartid when that is supplied.
278  if ( !is_null( $params['continue'] ) ) {
279  $params['startid'] = $params['continue'];
280  $params['start'] = null;
281  }
282 
283  // This code makes an assumption that sorting by rev_id and rev_timestamp produces
284  // the same result. This way users may request revisions starting at a given time,
285  // but to page through results use the rev_id returned after each page.
286  // Switching to rev_id removes the potential problem of having more than
287  // one row with the same timestamp for the same page.
288  // The order needs to be the same as start parameter to avoid SQL filesort.
289  if ( is_null( $params['startid'] ) && is_null( $params['endid'] ) ) {
290  $this->addTimestampWhereRange( 'rev_timestamp', $params['dir'],
291  $params['start'], $params['end'] );
292  } else {
293  $this->addWhereRange( 'rev_id', $params['dir'],
294  $params['startid'], $params['endid'] );
295  // One of start and end can be set
296  // If neither is set, this does nothing
297  $this->addTimestampWhereRange( 'rev_timestamp', $params['dir'],
298  $params['start'], $params['end'], false );
299  }
300 
301  // must manually initialize unset limit
302  if ( is_null( $limit ) ) {
303  $limit = 10;
304  }
305  $this->validateLimit( 'limit', $limit, 1, $userMax, $botMax );
306 
307  // There is only one ID, use it
308  $ids = array_keys( $pageSet->getGoodTitles() );
309  $this->addWhereFld( 'rev_page', reset( $ids ) );
310 
311  if ( !is_null( $params['user'] ) ) {
312  $this->addWhereFld( 'rev_user_text', $params['user'] );
313  } elseif ( !is_null( $params['excludeuser'] ) ) {
314  $this->addWhere( 'rev_user_text != ' .
315  $db->addQuotes( $params['excludeuser'] ) );
316  }
317  if ( !is_null( $params['user'] ) || !is_null( $params['excludeuser'] ) ) {
318  // Paranoia: avoid brute force searches (bug 17342)
319  if ( !$this->getUser()->isAllowed( 'deletedhistory' ) ) {
320  $bitmask = Revision::DELETED_USER;
321  } elseif ( !$this->getUser()->isAllowed( 'suppressrevision' ) ) {
323  } else {
324  $bitmask = 0;
325  }
326  if ( $bitmask ) {
327  $this->addWhere( $db->bitAnd( 'rev_deleted', $bitmask ) . " != $bitmask" );
328  }
329  }
330  } elseif ( $revCount > 0 ) {
331  $max = $this->getMain()->canApiHighLimits() ? $botMax : $userMax;
332  $revs = $pageSet->getRevisionIDs();
333  if ( self::truncateArray( $revs, $max ) ) {
334  $this->setWarning( "Too many values supplied for parameter 'revids': the limit is $max" );
335  }
336 
337  // Get all revision IDs
338  $this->addWhereFld( 'rev_id', array_keys( $revs ) );
339 
340  if ( !is_null( $params['continue'] ) ) {
341  $this->addWhere( 'rev_id >= ' . intval( $params['continue'] ) );
342  }
343  $this->addOption( 'ORDER BY', 'rev_id' );
344 
345  // assumption testing -- we should never get more then $revCount rows.
346  $limit = $revCount;
347  } elseif ( $pageCount > 0 ) {
348  $max = $this->getMain()->canApiHighLimits() ? $botMax : $userMax;
349  $titles = $pageSet->getGoodTitles();
350  if ( self::truncateArray( $titles, $max ) ) {
351  $this->setWarning( "Too many values supplied for parameter 'titles': the limit is $max" );
352  }
353 
354  // When working in multi-page non-enumeration mode,
355  // limit to the latest revision only
356  $this->addWhere( 'page_id=rev_page' );
357  $this->addWhere( 'page_latest=rev_id' );
358 
359  // Get all page IDs
360  $this->addWhereFld( 'page_id', array_keys( $titles ) );
361  // Every time someone relies on equality propagation, god kills a kitten :)
362  $this->addWhereFld( 'rev_page', array_keys( $titles ) );
363 
364  if ( !is_null( $params['continue'] ) ) {
365  $cont = explode( '|', $params['continue'] );
366  $this->dieContinueUsageIf( count( $cont ) != 2 );
367  $pageid = intval( $cont[0] );
368  $revid = intval( $cont[1] );
369  $this->addWhere(
370  "rev_page > $pageid OR " .
371  "(rev_page = $pageid AND " .
372  "rev_id >= $revid)"
373  );
374  }
375  $this->addOption( 'ORDER BY', array(
376  'rev_page',
377  'rev_id'
378  ) );
379 
380  // assumption testing -- we should never get more then $pageCount rows.
381  $limit = $pageCount;
382  } else {
383  ApiBase::dieDebug( __METHOD__, 'param validation?' );
384  }
385 
386  $this->addOption( 'LIMIT', $limit + 1 );
387 
388  $count = 0;
389  $res = $this->select( __METHOD__ );
390 
391  foreach ( $res as $row ) {
392  if ( ++$count > $limit ) {
393  // We've reached the one extra which shows that there are
394  // additional pages to be had. Stop here...
395  if ( !$enumRevMode ) {
396  ApiBase::dieDebug( __METHOD__, 'Got more rows then expected' ); // bug report
397  }
398  $this->setContinueEnumParameter( 'continue', intval( $row->rev_id ) );
399  break;
400  }
401 
402  $fit = $this->addPageSubItem( $row->rev_page, $this->extractRowInfo( $row ), 'rev' );
403  if ( !$fit ) {
404  if ( $enumRevMode ) {
405  $this->setContinueEnumParameter( 'continue', intval( $row->rev_id ) );
406  } elseif ( $revCount > 0 ) {
407  $this->setContinueEnumParameter( 'continue', intval( $row->rev_id ) );
408  } else {
409  $this->setContinueEnumParameter( 'continue', intval( $row->rev_page ) .
410  '|' . intval( $row->rev_id ) );
411  }
412  break;
413  }
414  }
415  }
416 
417  private function extractRowInfo( $row ) {
418  $revision = new Revision( $row );
419  $title = $revision->getTitle();
420  $user = $this->getUser();
421  $vals = array();
422  $anyHidden = false;
423 
424  if ( $this->fld_ids ) {
425  $vals['revid'] = intval( $revision->getId() );
426  // $vals['oldid'] = intval( $row->rev_text_id ); // todo: should this be exposed?
427  if ( !is_null( $revision->getParentId() ) ) {
428  $vals['parentid'] = intval( $revision->getParentId() );
429  }
430  }
431 
432  if ( $this->fld_flags && $revision->isMinor() ) {
433  $vals['minor'] = '';
434  }
435 
436  if ( $this->fld_user || $this->fld_userid ) {
437  if ( $revision->isDeleted( Revision::DELETED_USER ) ) {
438  $vals['userhidden'] = '';
439  $anyHidden = true;
440  }
441  if ( $revision->userCan( Revision::DELETED_USER, $user ) ) {
442  if ( $this->fld_user ) {
443  $vals['user'] = $revision->getRawUserText();
444  }
445  $userid = $revision->getRawUser();
446  if ( !$userid ) {
447  $vals['anon'] = '';
448  }
449 
450  if ( $this->fld_userid ) {
451  $vals['userid'] = $userid;
452  }
453  }
454  }
455 
456  if ( $this->fld_timestamp ) {
457  $vals['timestamp'] = wfTimestamp( TS_ISO_8601, $revision->getTimestamp() );
458  }
459 
460  if ( $this->fld_size ) {
461  if ( !is_null( $revision->getSize() ) ) {
462  $vals['size'] = intval( $revision->getSize() );
463  } else {
464  $vals['size'] = 0;
465  }
466  }
467 
468  if ( $this->fld_sha1 ) {
469  if ( $revision->isDeleted( Revision::DELETED_TEXT ) ) {
470  $vals['sha1hidden'] = '';
471  $anyHidden = true;
472  }
473  if ( $revision->userCan( Revision::DELETED_TEXT, $user ) ) {
474  if ( $revision->getSha1() != '' ) {
475  $vals['sha1'] = wfBaseConvert( $revision->getSha1(), 36, 16, 40 );
476  } else {
477  $vals['sha1'] = '';
478  }
479  }
480  }
481 
482  if ( $this->fld_contentmodel ) {
483  $vals['contentmodel'] = $revision->getContentModel();
484  }
485 
486  if ( $this->fld_comment || $this->fld_parsedcomment ) {
487  if ( $revision->isDeleted( Revision::DELETED_COMMENT ) ) {
488  $vals['commenthidden'] = '';
489  $anyHidden = true;
490  }
491  if ( $revision->userCan( Revision::DELETED_COMMENT, $user ) ) {
492  $comment = $revision->getRawComment();
493 
494  if ( $this->fld_comment ) {
495  $vals['comment'] = $comment;
496  }
497 
498  if ( $this->fld_parsedcomment ) {
499  $vals['parsedcomment'] = Linker::formatComment( $comment, $title );
500  }
501  }
502  }
503 
504  if ( $this->fld_tags ) {
505  if ( $row->ts_tags ) {
506  $tags = explode( ',', $row->ts_tags );
507  $this->getResult()->setIndexedTagName( $tags, 'tag' );
508  $vals['tags'] = $tags;
509  } else {
510  $vals['tags'] = array();
511  }
512  }
513 
514  if ( !is_null( $this->token ) ) {
516  foreach ( $this->token as $t ) {
517  $val = call_user_func( $tokenFunctions[$t], $title->getArticleID(), $title, $revision );
518  if ( $val === false ) {
519  $this->setWarning( "Action '$t' is not allowed for the current user" );
520  } else {
521  $vals[$t . 'token'] = $val;
522  }
523  }
524  }
525 
526  $content = null;
528  if ( $this->fld_content || !is_null( $this->diffto ) || !is_null( $this->difftotext ) ) {
529  $content = $revision->getContent( Revision::FOR_THIS_USER, $this->getUser() );
530  // Expand templates after getting section content because
531  // template-added sections don't count and Parser::preprocess()
532  // will have less input
533  if ( $content && $this->section !== false ) {
534  $content = $content->getSection( $this->section, false );
535  if ( !$content ) {
536  $this->dieUsage(
537  "There is no section {$this->section} in r" . $revision->getId(),
538  'nosuchsection'
539  );
540  }
541  }
542  if ( $revision->isDeleted( Revision::DELETED_TEXT ) ) {
543  $vals['texthidden'] = '';
544  $anyHidden = true;
545  } elseif ( !$content ) {
546  $vals['textmissing'] = '';
547  }
548  }
549  if ( $this->fld_content && $content ) {
550  $text = null;
551 
552  if ( $this->generateXML ) {
553  if ( $content->getModel() === CONTENT_MODEL_WIKITEXT ) {
554  $t = $content->getNativeData(); # note: don't set $text
555 
556  $wgParser->startExternalParse(
557  $title,
558  ParserOptions::newFromContext( $this->getContext() ),
559  OT_PREPROCESS
560  );
561  $dom = $wgParser->preprocessToDom( $t );
562  if ( is_callable( array( $dom, 'saveXML' ) ) ) {
563  $xml = $dom->saveXML();
564  } else {
565  $xml = $dom->__toString();
566  }
567  $vals['parsetree'] = $xml;
568  } else {
569  $this->setWarning( "Conversion to XML is supported for wikitext only, " .
570  $title->getPrefixedDBkey() .
571  " uses content model " . $content->getModel() );
572  }
573  }
574 
575  if ( $this->expandTemplates && !$this->parseContent ) {
576  #XXX: implement template expansion for all content types in ContentHandler?
577  if ( $content->getModel() === CONTENT_MODEL_WIKITEXT ) {
578  $text = $content->getNativeData();
579 
580  $text = $wgParser->preprocess(
581  $text,
582  $title,
583  ParserOptions::newFromContext( $this->getContext() )
584  );
585  } else {
586  $this->setWarning( "Template expansion is supported for wikitext only, " .
587  $title->getPrefixedDBkey() .
588  " uses content model " . $content->getModel() );
589 
590  $text = false;
591  }
592  }
593  if ( $this->parseContent ) {
594  $po = $content->getParserOutput(
595  $title,
596  $revision->getId(),
597  ParserOptions::newFromContext( $this->getContext() )
598  );
599  $text = $po->getText();
600  }
601 
602  if ( $text === null ) {
603  $format = $this->contentFormat ? $this->contentFormat : $content->getDefaultFormat();
604  $model = $content->getModel();
605 
606  if ( !$content->isSupportedFormat( $format ) ) {
607  $name = $title->getPrefixedDBkey();
608 
609  $this->dieUsage( "The requested format {$this->contentFormat} is not supported " .
610  "for content model $model used by $name", 'badformat' );
611  }
612 
613  $text = $content->serialize( $format );
614 
615  // always include format and model.
616  // Format is needed to deserialize, model is needed to interpret.
617  $vals['contentformat'] = $format;
618  $vals['contentmodel'] = $model;
619  }
620 
621  if ( $text !== false ) {
622  ApiResult::setContent( $vals, $text );
623  }
624  }
625 
626  if ( $content && ( !is_null( $this->diffto ) || !is_null( $this->difftotext ) ) ) {
627  global $wgAPIMaxUncachedDiffs;
628  static $n = 0; // Number of uncached diffs we've had
629 
630  if ( $n < $wgAPIMaxUncachedDiffs ) {
631  $vals['diff'] = array();
632  $context = new DerivativeContext( $this->getContext() );
633  $context->setTitle( $title );
634  $handler = $revision->getContentHandler();
635 
636  if ( !is_null( $this->difftotext ) ) {
637  $model = $title->getContentModel();
638 
639  if ( $this->contentFormat
640  && !ContentHandler::getForModelID( $model )->isSupportedFormat( $this->contentFormat )
641  ) {
642 
643  $name = $title->getPrefixedDBkey();
644 
645  $this->dieUsage( "The requested format {$this->contentFormat} is not supported for " .
646  "content model $model used by $name", 'badformat' );
647  }
648 
649  $difftocontent = ContentHandler::makeContent(
650  $this->difftotext,
651  $title,
652  $model,
653  $this->contentFormat
654  );
655 
656  $engine = $handler->createDifferenceEngine( $context );
657  $engine->setContent( $content, $difftocontent );
658  } else {
659  $engine = $handler->createDifferenceEngine( $context, $revision->getID(), $this->diffto );
660  $vals['diff']['from'] = $engine->getOldid();
661  $vals['diff']['to'] = $engine->getNewid();
662  }
663  $difftext = $engine->getDiffBody();
664  ApiResult::setContent( $vals['diff'], $difftext );
665  if ( !$engine->wasCacheHit() ) {
666  $n++;
667  }
668  } else {
669  $vals['diff']['notcached'] = '';
670  }
671  }
672 
673  if ( $anyHidden && $revision->isDeleted( Revision::DELETED_RESTRICTED ) ) {
674  $vals['suppressed'] = '';
675  }
676 
677  return $vals;
678  }
679 
680  public function getCacheMode( $params ) {
681  if ( isset( $params['token'] ) ) {
682  return 'private';
683  }
684  if ( $this->userCanSeeRevDel() ) {
685  return 'private';
686  }
687  if ( !is_null( $params['prop'] ) && in_array( 'parsedcomment', $params['prop'] ) ) {
688  // formatComment() calls wfMessage() among other things
689  return 'anon-public-user-private';
690  }
691 
692  return 'public';
693  }
694 
695  public function getAllowedParams() {
696  return array(
697  'prop' => array(
698  ApiBase::PARAM_ISMULTI => true,
699  ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user',
701  'ids',
702  'flags',
703  'timestamp',
704  'user',
705  'userid',
706  'size',
707  'sha1',
708  'contentmodel',
709  'comment',
710  'parsedcomment',
711  'content',
712  'tags'
713  )
714  ),
715  'limit' => array(
716  ApiBase::PARAM_TYPE => 'limit',
717  ApiBase::PARAM_MIN => 1,
720  ),
721  'startid' => array(
722  ApiBase::PARAM_TYPE => 'integer'
723  ),
724  'endid' => array(
725  ApiBase::PARAM_TYPE => 'integer'
726  ),
727  'start' => array(
728  ApiBase::PARAM_TYPE => 'timestamp'
729  ),
730  'end' => array(
731  ApiBase::PARAM_TYPE => 'timestamp'
732  ),
733  'dir' => array(
734  ApiBase::PARAM_DFLT => 'older',
736  'newer',
737  'older'
738  )
739  ),
740  'user' => array(
741  ApiBase::PARAM_TYPE => 'user'
742  ),
743  'excludeuser' => array(
744  ApiBase::PARAM_TYPE => 'user'
745  ),
746  'tag' => null,
747  'expandtemplates' => false,
748  'generatexml' => false,
749  'parse' => false,
750  'section' => null,
751  'token' => array(
752  ApiBase::PARAM_TYPE => array_keys( $this->getTokenFunctions() ),
753  ApiBase::PARAM_ISMULTI => true
754  ),
755  'continue' => null,
756  'diffto' => null,
757  'difftotext' => null,
758  'contentformat' => array(
760  ApiBase::PARAM_DFLT => null
761  ),
762  );
763  }
764 
765  public function getParamDescription() {
766  $p = $this->getModulePrefix();
767 
768  return array(
769  'prop' => array(
770  'Which properties to get for each revision:',
771  ' ids - The ID of the revision',
772  ' flags - Revision flags (minor)',
773  ' timestamp - The timestamp of the revision',
774  ' user - User that made the revision',
775  ' userid - User id of revision creator',
776  ' size - Length (bytes) of the revision',
777  ' sha1 - SHA-1 (base 16) of the revision',
778  ' contentmodel - Content model id',
779  ' comment - Comment by the user for revision',
780  ' parsedcomment - Parsed comment by the user for the revision',
781  ' content - Text of the revision',
782  ' tags - Tags for the revision',
783  ),
784  'limit' => 'Limit how many revisions will be returned (enum)',
785  'startid' => 'From which revision id to start enumeration (enum)',
786  'endid' => 'Stop revision enumeration on this revid (enum)',
787  'start' => 'From which revision timestamp to start enumeration (enum)',
788  'end' => 'Enumerate up to this timestamp (enum)',
789  'dir' => $this->getDirectionDescription( $p, ' (enum)' ),
790  'user' => 'Only include revisions made by user (enum)',
791  'excludeuser' => 'Exclude revisions made by user (enum)',
792  'expandtemplates' => "Expand templates in revision content (requires {$p}prop=content)",
793  'generatexml' => "Generate XML parse tree for revision content (requires {$p}prop=content)",
794  'parse' => array( "Parse revision content (requires {$p}prop=content).",
795  'For performance reasons if this option is used, rvlimit is enforced to 1.' ),
796  'section' => 'Only retrieve the content of this section number',
797  'token' => 'Which tokens to obtain for each revision',
798  'continue' => 'When more results are available, use this to continue',
799  'diffto' => array( 'Revision ID to diff each revision to.',
800  'Use "prev", "next" and "cur" for the previous, next and current revision respectively' ),
801  'difftotext' => array(
802  'Text to diff each revision to. Only diffs a limited number of revisions.',
803  "Overrides {$p}diffto. If {$p}section is set, only that section will be",
804  'diffed against this text',
805  ),
806  'tag' => 'Only list revisions tagged with this tag',
807  'contentformat' => 'Serialization format used for difftotext and expected for output of content',
808  );
809  }
810 
811  public function getResultProperties() {
812  $props = array(
813  '' => array(),
814  'ids' => array(
815  'revid' => 'integer',
816  'parentid' => array(
817  ApiBase::PROP_TYPE => 'integer',
818  ApiBase::PROP_NULLABLE => true
819  )
820  ),
821  'flags' => array(
822  'minor' => 'boolean'
823  ),
824  'user' => array(
825  'userhidden' => 'boolean',
826  'user' => 'string',
827  'anon' => 'boolean'
828  ),
829  'userid' => array(
830  'userhidden' => 'boolean',
831  'userid' => 'integer',
832  'anon' => 'boolean'
833  ),
834  'timestamp' => array(
835  'timestamp' => 'timestamp'
836  ),
837  'size' => array(
838  'size' => 'integer'
839  ),
840  'sha1' => array(
841  'sha1' => 'string'
842  ),
843  'comment' => array(
844  'commenthidden' => 'boolean',
845  'comment' => array(
846  ApiBase::PROP_TYPE => 'string',
847  ApiBase::PROP_NULLABLE => true
848  )
849  ),
850  'parsedcomment' => array(
851  'commenthidden' => 'boolean',
852  'parsedcomment' => array(
853  ApiBase::PROP_TYPE => 'string',
854  ApiBase::PROP_NULLABLE => true
855  )
856  ),
857  'content' => array(
858  '*' => array(
859  ApiBase::PROP_TYPE => 'string',
860  ApiBase::PROP_NULLABLE => true
861  ),
862  'texthidden' => 'boolean',
863  'textmissing' => 'boolean',
864  ),
865  'contentmodel' => array(
866  'contentmodel' => 'string'
867  ),
868  );
869 
870  self::addTokenProperties( $props, $this->getTokenFunctions() );
871 
872  return $props;
873  }
874 
875  public function getDescription() {
876  return array(
877  'Get revision information.',
878  'May be used in several ways:',
879  ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter.',
880  ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params.',
881  ' 3) Get data about a set of revisions by setting their IDs with revids parameter.',
882  'All parameters marked as (enum) may only be used with a single page (#2).'
883  );
884  }
885 
886  public function getPossibleErrors() {
887  return array_merge( parent::getPossibleErrors(), array(
888  array( 'nosuchrevid', 'diffto' ),
889  array(
890  'code' => 'revids',
891  'info' => 'The revids= parameter may not be used with the list options '
892  . '(limit, startid, endid, dirNewer, start, end).'
893  ),
894  array(
895  'code' => 'multpages',
896  'info' => 'titles, pageids or a generator was used to supply multiple pages, '
897  . ' but the limit, startid, endid, dirNewer, user, excludeuser, '
898  . 'start and end parameters may only be used on a single page.'
899  ),
900  array(
901  'code' => 'diffto',
902  'info' => 'rvdiffto must be set to a non-negative number, "prev", "next" or "cur"'
903  ),
904  array( 'code' => 'badparams', 'info' => 'start and startid cannot be used together' ),
905  array( 'code' => 'badparams', 'info' => 'end and endid cannot be used together' ),
906  array( 'code' => 'badparams', 'info' => 'user and excludeuser cannot be used together' ),
907  array( 'code' => 'nosuchsection', 'info' => 'There is no section section in rID' ),
908  array( 'code' => 'badformat', 'info' => 'The requested serialization format can not be applied '
909  . ' to the page\'s content model' ),
910  ) );
911  }
912 
913  public function getExamples() {
914  return array(
915  'Get data with content for the last revision of titles "API" and "Main Page"',
916  ' api.php?action=query&prop=revisions&titles=API|Main%20Page&' .
917  'rvprop=timestamp|user|comment|content',
918  'Get last 5 revisions of the "Main Page"',
919  ' api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
920  'rvprop=timestamp|user|comment',
921  'Get first 5 revisions of the "Main Page"',
922  ' api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
923  'rvprop=timestamp|user|comment&rvdir=newer',
924  'Get first 5 revisions of the "Main Page" made after 2006-05-01',
925  ' api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
926  'rvprop=timestamp|user|comment&rvdir=newer&rvstart=20060501000000',
927  'Get first 5 revisions of the "Main Page" that were not made made by anonymous user "127.0.0.1"',
928  ' api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
929  'rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1',
930  'Get first 5 revisions of the "Main Page" that were made by the user "MediaWiki default"',
931  ' api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&' .
932  'rvprop=timestamp|user|comment&rvuser=MediaWiki%20default',
933  );
934  }
935 
936  public function getHelpUrls() {
937  return 'https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv';
938  }
939 }
Revision\DELETED_USER
const DELETED_USER
Definition: Revision.php:67
ContextSource\$context
IContextSource $context
Definition: ContextSource.php:33
ContentHandler\getForModelID
static getForModelID( $modelId)
Returns the ContentHandler singleton for the given model ID.
Definition: ContentHandler.php:311
$wgUser
$wgUser
Definition: Setup.php:552
Revision\DELETED_RESTRICTED
const DELETED_RESTRICTED
Definition: Revision.php:68
ApiQueryRevisions\$token
$token
Definition: ApiQueryRevisions.php:37
ApiQueryBase\addFields
addFields( $value)
Add a set of fields to select to the internal array.
Definition: ApiQueryBase.php:117
ContextSource\getContext
getContext()
Get the RequestContext object.
Definition: ContextSource.php:40
ContentHandler\getAllContentFormats
static getAllContentFormats()
Definition: ContentHandler.php:376
Revision\DELETED_COMMENT
const DELETED_COMMENT
Definition: Revision.php:66
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
ApiQueryRevisions\getRollbackToken
static getRollbackToken( $pageid, $title, $rev)
Definition: ApiQueryRevisions.php:80
ApiQueryRevisions\$fld_ids
$fld_ids
Definition: ApiQueryRevisions.php:44
ApiResult\setContent
static setContent(&$arr, $value, $subElemName=null)
Adds a content element to an array.
Definition: ApiResult.php:201
ApiQueryBase\addTimestampWhereRange
addTimestampWhereRange( $field, $dir, $start, $end, $sort=true)
Add a WHERE clause corresponding to a range, similar to addWhereRange, but converts $start and $end t...
Definition: ApiQueryBase.php:240
ApiQueryRevisions\$fld_tags
$fld_tags
Definition: ApiQueryRevisions.php:47
ApiBase\dieUsageMsg
dieUsageMsg( $error)
Output the error message related to a certain array.
Definition: ApiBase.php:1929
ApiQueryRevisions\$expandTemplates
$expandTemplates
Definition: ApiQueryRevisions.php:37
wfTimestamp
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
Definition: GlobalFunctions.php:2483
ApiBase\PARAM_TYPE
const PARAM_TYPE
Definition: ApiBase.php:50
ApiBase\getResult
getResult()
Get the result object.
Definition: ApiBase.php:205
ApiQueryBase\select
select( $method, $extraQuery=array())
Execute a SELECT query based on the values in the internal arrays.
Definition: ApiQueryBase.php:274
ApiQueryRevisions\$parseContent
$parseContent
Definition: ApiQueryRevisions.php:37
token
as a message key or array as accepted by ApiBase::dieUsageMsg after processing request parameters Return false to let the request returning an error message or an< edit result="Failure"> tag if $resultArr was filled which will be used in the intoken parameter and in the and a callback function which should return the token
Definition: hooks.txt:421
$n
$n
Definition: RandomTest.php:76
ApiQueryRevisions\$generateXML
$generateXML
Definition: ApiQueryRevisions.php:37
ApiQueryRevisions\$difftotext
$difftotext
Definition: ApiQueryRevisions.php:37
ApiQueryBase\getDirectionDescription
getDirectionDescription( $p='', $extraDirText='')
Gets the personalised direction parameter description.
Definition: ApiQueryBase.php:524
ApiQueryRevisions\$fld_size
$fld_size
Definition: ApiQueryRevisions.php:45
ApiQueryRevisions\__construct
__construct( $query, $moduleName)
Definition: ApiQueryRevisions.php:40
$params
$params
Definition: styleTest.css.php:40
$limit
if( $sleep) $limit
Definition: importImages.php:99
ContextSource\getRequest
getRequest()
Get the WebRequest object.
Definition: ContextSource.php:77
ApiQueryBase\addOption
addOption( $name, $value=null)
Add an option such as LIMIT or USE INDEX.
Definition: ApiQueryBase.php:252
Linker\formatComment
static formatComment( $comment, $title=null, $local=false)
This function is called by all recent changes variants, by the page history, and by the user contribu...
Definition: Linker.php:1254
CONTENT_MODEL_WIKITEXT
const CONTENT_MODEL_WIKITEXT
Definition: Defines.php:283
ApiQueryRevisions\$fld_contentmodel
$fld_contentmodel
Definition: ApiQueryRevisions.php:47
ContextSource\getUser
getUser()
Get the User object.
Definition: ContextSource.php:132
ApiQueryRevisions\$fld_user
$fld_user
Definition: ApiQueryRevisions.php:46
ApiQueryRevisions\$section
$section
Definition: ApiQueryRevisions.php:37
ApiQueryRevisions\getDescription
getDescription()
Returns the description string for this module.
Definition: ApiQueryRevisions.php:875
Revision\selectTextFields
static selectTextFields()
Return the list of text fields that should be selected to read the revision text.
Definition: Revision.php:467
Revision\FOR_THIS_USER
const FOR_THIS_USER
Definition: Revision.php:73
Revision
Definition: Revision.php:26
ApiQueryRevisions\getResultProperties
getResultProperties()
Returns possible properties in the result, grouped by the value of the prop parameter that shows them...
Definition: ApiQueryRevisions.php:811
ApiBase\PARAM_MIN
const PARAM_MIN
Definition: ApiBase.php:56
DerivativeContext
An IContextSource implementation which will inherit context from another source but allow individual ...
Definition: DerivativeContext.php:32
ApiQueryRevisions\getParamDescription
getParamDescription()
Returns an array of parameter descriptions.
Definition: ApiQueryRevisions.php:765
$titles
linkcache txt The LinkCache class maintains a list of article titles and the information about whether or not the article exists in the database This is used to mark up links when displaying a page If the same link appears more than once on any page then it only has to be looked up once In most cases link lookups are done in batches with the LinkBatch class or the equivalent in so the link cache is mostly useful for short snippets of parsed and for links in the navigation areas of the skin The link cache was formerly used to track links used in a document for the purposes of updating the link tables This application is now deprecated To create a you can use the following $titles
Definition: linkcache.txt:17
ApiQueryBase
This is a base class for all Query modules.
Definition: ApiQueryBase.php:34
ApiBase\LIMIT_BIG1
const LIMIT_BIG1
Definition: ApiBase.php:78
TS_ISO_8601
const TS_ISO_8601
ISO 8601 format with no timezone: 1986-02-09T20:00:00Z.
Definition: GlobalFunctions.php:2448
ApiQueryRevisions\getExamples
getExamples()
Returns usage examples for this module.
Definition: ApiQueryRevisions.php:913
ApiQueryBase\getDB
getDB()
Get the Query database connection (read-only)
Definition: ApiQueryBase.php:417
ApiBase\PARAM_MAX
const PARAM_MAX
Definition: ApiBase.php:52
wfRunHooks
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
Definition: GlobalFunctions.php:4001
ApiQueryBase\addTables
addTables( $tables, $alias=null)
Add a set of tables to the internal array.
Definition: ApiQueryBase.php:82
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
global
when a variable name is used in a it is silently declared as a new masking the global
Definition: design.txt:93
$comment
$comment
Definition: importImages.php:107
ApiBase\PROP_TYPE
const PROP_TYPE
Definition: ApiBase.php:74
ApiQueryRevisions\$fld_timestamp
$fld_timestamp
Definition: ApiQueryRevisions.php:44
ContentHandler\makeContent
static makeContent( $text, Title $title=null, $modelId=null, $format=null)
Convenience function for creating a Content object from a given textual representation.
Definition: ContentHandler.php:144
ApiBase\getModulePrefix
getModulePrefix()
Get parameter prefix (usually two letters or an empty string).
Definition: ApiBase.php:165
ApiQueryBase\addWhereRange
addWhereRange( $field, $dir, $start, $end, $sort=true)
Add a WHERE clause corresponding to a range, and an ORDER BY clause to sort in the right direction.
Definition: ApiQueryBase.php:205
ApiQueryRevisions\$fld_comment
$fld_comment
Definition: ApiQueryRevisions.php:45
ApiQueryRevisions\$fld_sha1
$fld_sha1
Definition: ApiQueryRevisions.php:45
Revision\selectPageFields
static selectPageFields()
Return the list of page fields that should be selected from page table.
Definition: Revision.php:478
ApiQueryRevisions\$fld_userid
$fld_userid
Definition: ApiQueryRevisions.php:46
ApiBase\extractRequestParams
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
Definition: ApiBase.php:687
$title
presenting them properly to the user as errors is done by the caller $title
Definition: hooks.txt:1324
$name
Allows to change the fields on the form that will be generated $name
Definition: hooks.txt:336
ApiBase\dieContinueUsageIf
dieContinueUsageIf( $condition)
Die with the $prefix.
Definition: ApiBase.php:1965
ApiBase\LIMIT_SML2
const LIMIT_SML2
Definition: ApiBase.php:81
ApiBase\dieUsage
dieUsage( $description, $errorCode, $httpRespCode=0, $extradata=null)
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an...
Definition: ApiBase.php:1363
ApiQueryRevisions\$diffto
$diffto
Definition: ApiQueryRevisions.php:37
ApiBase\addTokenProperties
static addTokenProperties(&$props, $tokenFunctions)
Add token properties to the array used by getResultProperties, based on a token functions mapping.
Definition: ApiBase.php:646
ApiBase\PROP_NULLABLE
const PROP_NULLABLE
Definition: ApiBase.php:76
ApiQueryBase\addJoinConds
addJoinConds( $join_conds)
Add a set of JOIN conditions to the internal array.
Definition: ApiQueryBase.php:106
ApiQueryRevisions\getCacheMode
getCacheMode( $params)
Get the cache mode for the data generated by this module.
Definition: ApiQueryRevisions.php:680
ApiQueryBase\addWhereFld
addWhereFld( $field, $value)
Equivalent to addWhere(array($field => $value))
Definition: ApiQueryBase.php:185
ApiQueryBase\getPageSet
getPageSet()
Get the PageSet object to work on.
Definition: ApiQueryBase.php:441
$user
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a account $user
Definition: hooks.txt:237
ApiQueryRevisions\$fld_content
$fld_content
Definition: ApiQueryRevisions.php:47
ApiQueryRevisions\$contentFormat
$contentFormat
Definition: ApiQueryRevisions.php:37
$count
$count
Definition: UtfNormalTest2.php:96
$rev
presenting them properly to the user as errors is done by the caller return true use this to change the list i e etc $rev
Definition: hooks.txt:1337
ApiBase\setWarning
setWarning( $warning)
Set warning section for this module.
Definition: ApiBase.php:245
ApiBase\LIMIT_BIG2
const LIMIT_BIG2
Definition: ApiBase.php:79
$wgParser
$wgParser
Definition: Setup.php:567
wfBaseConvert
wfBaseConvert( $input, $sourceBase, $destBase, $pad=1, $lowercase=true, $engine='auto')
Convert an arbitrarily-long digit string from one numeric base to another, optionally zero-padding to...
Definition: GlobalFunctions.php:3368
ApiBase\validateLimit
validateLimit( $paramName, &$value, $min, $max, $botMax=null, $enforceLimits=false)
Validate the value against the minimum and user/bot maximum limits.
Definition: ApiBase.php:1253
ApiBase\PARAM_DFLT
const PARAM_DFLT
Definition: ApiBase.php:46
as
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
Definition: distributors.txt:9
ApiQueryRevisions\getTokenFunctions
getTokenFunctions()
Definition: ApiQueryRevisions.php:51
Revision\userJoinCond
static userJoinCond()
Return the value of a select() JOIN conds array for the user table.
Definition: Revision.php:386
ApiBase\getModuleName
getModuleName()
Get the name of the module being executed by this instance.
Definition: ApiBase.php:148
ApiBase\PARAM_ISMULTI
const PARAM_ISMULTI
Definition: ApiBase.php:48
ApiQueryRevisions\getHelpUrls
getHelpUrls()
Definition: ApiQueryRevisions.php:936
ApiQueryRevisions\$fld_parsedcomment
$fld_parsedcomment
Definition: ApiQueryRevisions.php:46
ApiBase\PARAM_MAX2
const PARAM_MAX2
Definition: ApiBase.php:54
ApiBase\getMain
getMain()
Get the main module.
Definition: ApiBase.php:188
ApiQueryBase\addWhere
addWhere( $value)
Add a set of WHERE clauses to the internal array.
Definition: ApiQueryBase.php:152
Revision\selectUserFields
static selectUserFields()
Return the list of user fields that should be selected from user table.
Definition: Revision.php:493
$t
$t
Definition: testCompression.php:65
ApiQueryRevisions\extractRowInfo
extractRowInfo( $row)
Definition: ApiQueryRevisions.php:417
ApiQueryBase\setContinueEnumParameter
setContinueEnumParameter( $paramName, $paramValue)
Set a query-continue value.
Definition: ApiQueryBase.php:404
ApiQueryRevisions\$tokenFunctions
$tokenFunctions
Definition: ApiQueryRevisions.php:49
ApiQueryRevisions\getAllowedParams
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
Definition: ApiQueryRevisions.php:695
Revision\selectFields
static selectFields()
Return the list of revision fields that should be selected to create a new revision.
Definition: Revision.php:405
$query
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
Definition: hooks.txt:1105
ApiQueryBase\userCanSeeRevDel
userCanSeeRevDel()
Check whether the current user has permission to view revision-deleted fields.
Definition: ApiQueryBase.php:618
$res
$res
Definition: database.txt:21
ApiQueryBase\addPageSubItem
addPageSubItem( $pageId, $item, $elemname=null)
Same as addPageSubItems(), but one element of $data at a time.
Definition: ApiQueryBase.php:383
ApiBase\dieDebug
static dieDebug( $method, $message)
Internal code errors should be reported with this method.
Definition: ApiBase.php:2006
ApiQueryRevisions\$fld_flags
$fld_flags
Definition: ApiQueryRevisions.php:44
ApiQueryRevisions
A query action to enumerate revisions of a given page, or show top revisions of multiple pages.
Definition: ApiQueryRevisions.php:35
section
section
Definition: parserTests.txt:378
Revision\DELETED_TEXT
const DELETED_TEXT
Definition: Revision.php:65
ApiBase\LIMIT_SML1
const LIMIT_SML1
Definition: ApiBase.php:80
ApiQueryRevisions\getPossibleErrors
getPossibleErrors()
Definition: ApiQueryRevisions.php:886
ApiQueryRevisions\execute
execute()
Evaluates the parameters, performs the requested query, and sets up the result.
Definition: ApiQueryRevisions.php:90