MediaWiki master
FauxSearchResult.php
Go to the documentation of this file.
1<?php
2
5
10
12
13 public function __construct(
14 Title $title,
15 RevisionRecord $revRecord = null,
16 File $image = null,
17 $text = ''
18 ) {
19 parent::__construct();
20 $this->mTitle = $title;
21 $this->mRevisionRecord = $revRecord;
22 $this->mImage = $image;
23 $this->mText = $text;
24 }
25
26}
trait RevisionSearchResultTrait
Transitional trait used to share the methods between SearchResult and RevisionSearchResult.
A manually constructed search result, for use with FauxSearchResultSet.
__construct(Title $title, RevisionRecord $revRecord=null, File $image=null, $text='')
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition File.php:73
Page revision base class.
Represents a title within MediaWiki.
Definition Title.php:78
NOTE: this class is being refactored into an abstract base class.