Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MessageGroupStates.php
Go to the documentation of this file.
1<?php
17 private const CONDKEY = 'state conditions';
18
19 protected $config;
20
21 public function __construct( array $config = null ) {
22 $this->config = $config;
23 }
24
25 public function getStates() {
26 $conf = $this->config;
27 unset( $conf[self::CONDKEY] );
28
29 return $conf;
30 }
31
32 public function getConditions() {
33 $conf = $this->config;
34 return $conf[self::CONDKEY] ?? [];
35 }
36}
Class for making the use of message group state easier.