TPException.php

Go to the documentation of this file.
00001 <?php
00016 class TPException extends MWException {
00017     protected $msg = null;
00018 
00023     public function __construct( array $msg ) {
00024         $this->msg = $msg;
00025         $wikitext = call_user_func_array( 'wfMessage', $msg )->text();
00026         parent::__construct( $wikitext );
00027     }
00028 
00032     public function getMsg() {
00033         return $this->msg;
00034     }
00035 }
Generated on Tue Oct 29 00:00:24 2013 for MediaWiki Translate Extension by  doxygen 1.6.3