MediaWiki
fundraising/REL1_35
SpecialFundraiserSubscribe.php
Go to the documentation of this file.
1
<?php
2
3
class
SpecialFundraiserSubscribe
extends
FundraiserSubscriptionPage
{
4
5
public
function
__construct
() {
6
parent::__construct(
'FundraiserSubscribe'
);
7
}
8
9
protected
function
getQueryTemplate
() {
10
$basename =
'optin'
;
11
$variant =
$this->mVariant
;
12
if
( $variant !==
''
) {
13
// Prepend an underscore
14
$variant =
"_$variant"
;
15
}
16
$templateName =
"$basename$variant.html"
;
17
$fullPath = $this->
getTemplateDir
() . DIRECTORY_SEPARATOR . $templateName;
18
if
( is_readable( $fullPath ) ) {
19
return
$templateName;
20
}
21
return
'optin.html'
;
22
}
23
24
protected
function
getSuccessTemplate
() {
25
return
'optinSuccess.html'
;
26
}
27
28
protected
function
getErrorTemplate
() {
29
return
'optinError.html'
;
30
}
31
}
FundraiserSubscriptionPage
Definition
FundraiserSubscriptionPage.php:47
FundraiserSubscriptionPage\getTemplateDir
getTemplateDir()
Definition
FundraiserSubscriptionPage.php:79
FundraiserSubscriptionPage\$mVariant
string $mVariant
Definition
FundraiserSubscriptionPage.php:65
SpecialFundraiserSubscribe
Definition
SpecialFundraiserSubscribe.php:3
SpecialFundraiserSubscribe\getQueryTemplate
getQueryTemplate()
Definition
SpecialFundraiserSubscribe.php:9
SpecialFundraiserSubscribe\getSuccessTemplate
getSuccessTemplate()
Definition
SpecialFundraiserSubscribe.php:24
SpecialFundraiserSubscribe\__construct
__construct()
Definition
SpecialFundraiserSubscribe.php:5
SpecialFundraiserSubscribe\getErrorTemplate
getErrorTemplate()
Definition
SpecialFundraiserSubscribe.php:28
extensions
FundraisingEmailUnsubscribe
SpecialFundraiserSubscribe.php
Generated on Mon Nov 25 2024 16:14:10 for MediaWiki by
1.10.0