Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2753799
JsonSchemaHooksHelper.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
652 B
Referenced Files
None
Subscribers
None
JsonSchemaHooksHelper.php
View Options
<?php
namespace
MediaWiki\Extension\EventLogging
;
use
MediaWiki\Config\ServiceOptions
;
class
JsonSchemaHooksHelper
{
public
const
CONSTRUCTOR_OPTIONS
=
[
'EventLoggingDBname'
,
'DBname'
,
];
private
ServiceOptions
$options
;
public
function
__construct
(
ServiceOptions
$options
)
{
$this
->
options
=
$options
;
$this
->
options
->
assertRequiredOptions
(
self
::
CONSTRUCTOR_OPTIONS
);
}
/**
* Convenience function to determine whether the Schema namespace is enabled.
*
* @return bool
*/
public
function
isSchemaNamespaceEnabled
():
bool
{
return
$this
->
options
->
get
(
'EventLoggingDBname'
)
===
$this
->
options
->
get
(
'DBname'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 3, 21:45 (16 h, 31 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
47/38/b1bcf9193f7a69811c5929a3d0a2
Default Alt Text
JsonSchemaHooksHelper.php (652 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment