ResourceLoader.php

Go to the documentation of this file.
00001 <?php
00013 class PHPVariableLoader {
00020     public static function loadVariableFromPHPFile( $_filename, $_variable ) {
00021         if ( !file_exists( $_filename ) ) {
00022             return null;
00023         } else {
00024             require $_filename;
00025 
00026             return isset( $$_variable ) ? $$_variable : null;
00027         }
00028     }
00029 }
Generated on Tue Oct 29 00:00:26 2013 for MediaWiki Translate Extension by  doxygen 1.6.3