MessageGroupStates.php

Go to the documentation of this file.
00001 <?php
00016 class MessageGroupStates {
00017     const CONDKEY = 'state conditions';
00018 
00019     protected $config;
00020 
00021     public function __construct( array $config = null ) {
00022         $this->config = $config;
00023     }
00024 
00025     public function getStates() {
00026         $conf = $this->config;
00027         unset( $conf[self::CONDKEY] );
00028 
00029         return $conf;
00030     }
00031 
00032     public function getConditions() {
00033         $conf = $this->config;
00034         if ( isset( $conf[self::CONDKEY] ) ) {
00035             return $conf[self::CONDKEY];
00036         } else {
00037             return array();
00038         }
00039     }
00040 }
Generated on Tue Oct 29 00:00:25 2013 for MediaWiki Translate Extension by  doxygen 1.6.3