Example #1
0
 public static function getInstance()
 {
   if ( ! self::$_singleton_instance )
   { 
     $class = get_called_class(); 
     self::$_singleton_instance = new $class;
   }
   return self::$_singleton_instance;
 }