/**
  * Fledging. Get singleton instance
  * 
  * @param array $settings linfo settings
  * @access public
  * @return object LinfoError instance
  */
 public static function Fledging($settings = null)
 {
     $c = __CLASS__;
     if (!isset(self::$_fledging)) {
         self::$_fledging = new $c($settings);
     }
     return self::$_fledging;
 }
Ejemplo n.º 2
0
 /**
  * Wipe out singleton instance. Used mainly for unit tests
  *
  * @static
  * @return void
  */
 public static function clear()
 {
     self::$_fledging = null;
 }