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