$this->title->getArticleID() ]; if ( $this->ids !== null ) { $conds['rev_id'] = array_map( 'intval', $this->ids ); } $revQuery = Revision::getQueryInfo( [ 'page', 'user' ] ); return $db->select( $revQuery['tables'], $revQuery['fields'], $conds, __METHOD__, [ 'ORDER BY' => 'rev_id DESC' ], $revQuery['joins'] ); } public function newItem( $row ) { return new RevisionItem( $this, $row ); } }