MediaWiki master
FauxSearchResult.php
Go to the documentation of this file.
1<?php
2
6
11
12 public function __construct(
13 Title $title,
14 ?RevisionRecord $revRecord = null,
15 ?File $image = null,
16 ?string $text = ''
17 ) {
18 parent::__construct( $title );
19 $this->mRevisionRecord = $revRecord;
20 $this->mImage = $image;
21 $this->mText = $text;
22 }
23
27 protected function initFromTitle( $title ) {
28 // everything's initialized in the constructor
29 }
30}
A manually constructed search result, for use with FauxSearchResultSet.
__construct(Title $title, ?RevisionRecord $revRecord=null, ?File $image=null, ?string $text='')
initFromTitle( $title)
Initialize from a Title and if possible initializes a corresponding RevisionRecord and File.
Implements some public methods and some protected utility functions which are required by multiple ch...
Definition File.php:79
Page revision base class.
Represents a title within MediaWiki.
Definition Title.php:69
SearchResult class based on the revision information.