Back to index

php5  5.3.10
gtText.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class gtText
00008 {
00009 
00016   public static function get($name) {
00017     $filename = dirname(__FILE__) . '/texts/' . $name . '.txt';
00018 
00019     if (!file_exists($filename)) {
00020       throw new LogicException('The text ' . $name . ' does not exist');
00021     }
00022 
00023     return file_get_contents($filename);
00024   }
00025 }
00026 
00027 ?>