Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4151715
HookRunner.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
HookRunner.php
View Options
<?php
namespace
MediaWiki\Extension\ContactPage\Hooks
;
use
MediaWiki\HookContainer\HookContainer
;
/**
* This is a hook runner class, see docs/Hooks.md in core.
* @internal
*/
class
HookRunner
implements
ContactFormHook
,
ContactFromCompleteHook
,
\MediaWiki\Hook\EmailUserFormHook
{
private
HookContainer
$hookContainer
;
public
function
__construct
(
HookContainer
$hookContainer
)
{
$this
->
hookContainer
=
$hookContainer
;
}
/**
* @inheritDoc
*/
public
function
onContactForm
(
&
$contactRecipientAddress
,
&
$replyTo
,
&
$subject
,
&
$text
,
$formType
,
$formData
)
{
return
$this
->
hookContainer
->
run
(
'ContactForm'
,
[
&
$contactRecipientAddress
,
&
$replyTo
,
&
$subject
,
&
$text
,
$formType
,
$formData
]
);
}
/**
* @inheritDoc
*/
public
function
onContactFromComplete
(
$contactRecipientAddress
,
$replyTo
,
$subject
,
$text
)
{
return
$this
->
hookContainer
->
run
(
'ContactFromComplete'
,
[
$contactRecipientAddress
,
$replyTo
,
$subject
,
$text
]
);
}
/**
* @inheritDoc
*/
public
function
onEmailUserForm
(
&
$form
)
{
return
$this
->
hookContainer
->
run
(
'EmailUserForm'
,
[
&
$form
]
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 19 2026, 20:04 (7 w, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
19/51/e3331b9c99aaf307791dbabffb04
Default Alt Text
HookRunner.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment