Esempio n. 1
0
 /**
  * Follows Singleton pattern interface
  * Returns toolkit instance. Takes instance from {@link lmbRegistry)
  * If instance is not initialized yet - creates one with empty tools
  * @see lmbRegistry
  * @return lmbToolkit The only instance of lmbToolkit class
  */
 static function instance()
 {
     if (is_object(self::$_instance)) {
         return self::$_instance;
     }
     self::$_instance = new lmbToolkit();
     return self::$_instance;
 }