PEIP_Reflection_Class_Builder.php

Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  * This file is part of the PEIP package.
00005  * (c) 2010 Timo Michna <timomichna/yahoo.de>
00006  * 
00007  * For the full copyright and license information, please view the LICENSE
00008  * file that was distributed with this source code.
00009  */
00010 
00021 class PEIP_Reflection_Class_Builder implements PEIP_INF_Singleton_Map {
00022 
00023     protected static $reflectionClasses = array();
00024     
00025     protected static function getReflectionClass($className){
00026         return array_key_exists($className, self::$reflectionClasses) 
00027             ? self::$reflectionClasses[$className] 
00028             : (self::$reflectionClasses[$className] = new ReflectionClass($className)); 
00029     }   
00030     
00031     
00032     public static function getInstance($className){
00033         return self::getReflectionClass($className);
00034     }
00035 
00036 }
00037 

Generated on Mon Apr 12 11:39:00 2010 for PEIP by  doxygen 1.5.1