MediaWiki
REL1_32
MockSearchResult.php
Go to the documentation of this file.
1
<?php
2
3
class
MockSearchResult
extends
SearchResult
{
4
private
$isMissingRevision
=
false
;
5
private
$isBrokenTitle
=
false
;
6
7
public
function
isMissingRevision
() {
8
return
$this->isMissingRevision
;
9
}
10
public
function
setMissingRevision
(
$isMissingRevision
) {
11
$this->
isMissingRevision
=
$isMissingRevision
;
12
return
$this;
13
}
14
15
public
function
isBrokenTitle
() {
16
return
$this->isBrokenTitle
;
17
}
18
19
public
function
setBrokenTitle
(
$isBrokenTitle
) {
20
$this->
isBrokenTitle
=
$isBrokenTitle
;
21
return
$this;
22
}
23
24
public
function
getInterwikiPrefix
() {
25
return
$this->interwikiPrefix;
26
}
27
28
public
function
setInterwikiPrefix
( $interwikiPrefix ) {
29
$this->interwikiPrefix = $interwikiPrefix;
30
return
$this;
31
}
32
}
MockSearchResult
Definition
MockSearchResult.php:3
MockSearchResult\isBrokenTitle
isBrokenTitle()
Check if this is result points to an invalid title.
Definition
MockSearchResult.php:15
MockSearchResult\setMissingRevision
setMissingRevision( $isMissingRevision)
Definition
MockSearchResult.php:10
MockSearchResult\$isBrokenTitle
$isBrokenTitle
Definition
MockSearchResult.php:5
MockSearchResult\setBrokenTitle
setBrokenTitle( $isBrokenTitle)
Definition
MockSearchResult.php:19
MockSearchResult\isMissingRevision
isMissingRevision()
Check if target page is missing, happens when index is out of date.
Definition
MockSearchResult.php:7
MockSearchResult\$isMissingRevision
$isMissingRevision
Definition
MockSearchResult.php:4
MockSearchResult\getInterwikiPrefix
getInterwikiPrefix()
Definition
MockSearchResult.php:24
MockSearchResult\setInterwikiPrefix
setInterwikiPrefix( $interwikiPrefix)
Definition
MockSearchResult.php:28
SearchResult
Definition
SearchResult.php:32
tests
phpunit
mocks
search
MockSearchResult.php
Generated on Mon Nov 25 2024 15:59:04 for MediaWiki by
1.10.0