Page MenuHomeWickedGov Phorge

JsonSchemaHooksHelper.php
No OneTemporary

Size
652 B
Referenced Files
None
Subscribers
None

JsonSchemaHooksHelper.php

<?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

Mime Type
text/x-php
Expires
Fri, Jul 3, 21:45 (14 h, 17 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
47/38/b1bcf9193f7a69811c5929a3d0a2
Default Alt Text
JsonSchemaHooksHelper.php (652 B)

Event Timeline