Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4084552
LoggedServiceOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
770 B
Referenced Files
None
Subscribers
None
LoggedServiceOptions.php
View Options
<?php
use
MediaWiki\Config\ServiceOptions
;
/**
* Helper for TestAllServiceOptionsUsed.
*/
class
LoggedServiceOptions
extends
ServiceOptions
{
/** @var array */
private
$accessLog
;
/**
* @param array &$accessLog Pass self::$serviceOptionsAccessLog from the class implementing
* TestAllServiceOptionsUsed.
* @param string[] $keys
* @param mixed ...$args Forwarded to parent as-is.
*/
public
function
__construct
(
array
&
$accessLog
,
array
$keys
,
...
$args
)
{
$this
->
accessLog
=
&
$accessLog
;
if
(
!
$accessLog
)
{
$accessLog
=
[
$keys
,
[]
];
}
parent
::
__construct
(
$keys
,
...
$args
);
}
/**
* @param string $key
* @return mixed
*/
public
function
get
(
$key
)
{
$this
->
accessLog
[
1
][
$key
]
=
true
;
return
parent
::
get
(
$key
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 07:45 (7 w, 5 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
6c/93/59a7d0ad0960f88ad8304dab3862
Default Alt Text
LoggedServiceOptions.php (770 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment