Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4092682
SpecialTopicSubscriptions.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
SpecialTopicSubscriptions.php
View Options
<?php
namespace
MediaWiki\Extension\DiscussionTools
;
use
MediaWiki\Cache\LinkBatchFactory
;
use
MediaWiki\Exception\ErrorPageError
;
use
MediaWiki\Linker\LinkRenderer
;
use
MediaWiki\Parser\ParserOptions
;
use
MediaWiki\SpecialPage\SpecialPage
;
class
SpecialTopicSubscriptions
extends
SpecialPage
{
private
LinkRenderer
$linkRenderer
;
private
LinkBatchFactory
$linkBatchFactory
;
private
ThreadItemStore
$threadItemStore
;
private
ThreadItemFormatter
$threadItemFormatter
;
public
function
__construct
(
LinkRenderer
$linkRenderer
,
LinkBatchFactory
$linkBatchFactory
,
ThreadItemStore
$threadItemStore
,
ThreadItemFormatter
$threadItemFormatter
)
{
parent
::
__construct
(
'TopicSubscriptions'
);
$this
->
linkRenderer
=
$linkRenderer
;
$this
->
linkBatchFactory
=
$linkBatchFactory
;
$this
->
threadItemStore
=
$threadItemStore
;
$this
->
threadItemFormatter
=
$threadItemFormatter
;
}
/**
* @inheritDoc
* @throws ErrorPageError
*/
public
function
execute
(
$subpage
)
{
$this
->
requireNamedUser
();
parent
::
execute
(
$subpage
);
$this
->
getOutput
()->
addModules
(
[
'ext.discussionTools.init'
]
);
$this
->
getOutput
()->
addHtml
(
$this
->
msg
(
'discussiontools-topicsubscription-special-intro'
)->
parseAsBlock
()
);
$this
->
getOutput
()->
enableOOUI
();
$pager
=
new
TopicSubscriptionsPager
(
$this
->
getContext
(),
$this
->
linkRenderer
,
$this
->
linkBatchFactory
,
$this
->
threadItemStore
,
$this
->
threadItemFormatter
);
$this
->
getOutput
()->
addParserOutputContent
(
$pager
->
getFullOutput
(),
ParserOptions
::
newFromContext
(
$this
->
getContext
()
)
);
}
/**
* @inheritDoc
*/
public
function
getDescription
()
{
return
$this
->
msg
(
'discussiontools-topicsubscription-special-title'
);
}
/**
* @inheritDoc
*/
protected
function
getGroupName
()
{
return
'login'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 12:22 (4 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/8c/104198b08ee7f72d61bb8cf1af0f
Default Alt Text
SpecialTopicSubscriptions.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment