Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427401
RecentAdditionsMessageGroup.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
RecentAdditionsMessageGroup.php
View Options
<?php
/**
* This file contains an unmanaged message group implementation.
*
* @file
* @author Niklas Laxström
* @copyright Copyright © 2012-2013, Niklas Laxström
* @license GPL-2.0-or-later
*/
use
MediaWiki\Context\IContextSource
;
use
MediaWiki\Extension\Translate\SystemUsers\FuzzyBot
;
use
MediaWiki\MediaWikiServices
;
/**
* @since 2012-11-01
* @ingroup MessageGroup
*/
class
RecentAdditionsMessageGroup
extends
RecentMessageGroup
{
public
function
getId
()
{
return
'!additions'
;
}
public
function
getLabel
(
?
IContextSource
$context
=
null
)
{
$msg
=
wfMessage
(
'translate-dynagroup-additions-label'
);
$msg
=
self
::
addContext
(
$msg
,
$context
);
return
$msg
->
plain
();
}
public
function
getDescription
(
?
IContextSource
$context
=
null
)
{
$msg
=
wfMessage
(
'translate-dynagroup-additions-desc'
);
$msg
=
self
::
addContext
(
$msg
,
$context
);
return
$msg
->
plain
();
}
protected
function
getQueryConditions
()
{
global
$wgTranslateMessageNamespaces
;
$db
=
MediaWikiServices
::
getInstance
()->
getDBLoadBalancer
()->
getConnection
(
DB_REPLICA
);
return
[
'rc_title '
.
$db
->
buildLike
(
$db
->
anyString
(),
'/en'
),
'rc_namespace'
=>
$wgTranslateMessageNamespaces
,
'rc_type != '
.
RC_LOG
,
'rc_id > '
.
$this
->
getRCCutoff
(),
'rc_actor'
=>
FuzzyBot
::
getUser
()->
getActorId
()
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 14:35 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/92/8de5f2281ad8288c6f6c85e59ec8
Default Alt Text
RecentAdditionsMessageGroup.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment