public static function &getAuth($instance)
	{
		static $instances;
		if (!isset($instances)) {
			$instances = array();
		}
		//only create a new authentication instance if it has not been created before
		if (!isset($instances[$instance])) {
			$name = static::getNameFromInstance($instance);

			static::pluginAutoLoad($name);

			$class = '\JFusion\Plugins\\' . $name . '\Auth';
			if (!class_exists($class)) {
				$class = '\JFusion\Plugin\Auth';
			}
			$instances[$instance] = new $class($instance);
		}
		return $instances[$instance];
	}
public static function &getAuth($instance)
	{
		static $instances;
		if (!isset($instances)) {
			$instances = array();
		}
		//only create a new authentication instance if it has not been created before
		if (!isset($instances[$instance])) {
			$name = static::getNameFromInstance($instance);

			static::pluginAutoLoad($name);

			$class = '\JFusion\Plugins\\' . $name . '\Auth';
			if (!class_exists($class)) {
				$class = '\JFusion\Plugin\Auth';
			}
			$instances[$instance] = new $class($instance);
		}
		return $instances[$instance];
	}
public static function & getAuth ( $ instance ) { static $ instances ; if ( ! isset ( $ instances ) ) { $ instances = array ( ) ; } //only create a new authentication instance if it has not been created before if ( ! isset ( $ instances [ $ instance ] ) ) { $ name = static :: getNameFromInstance ( $ instance ) ; static :: pluginAutoLoad ( $ name ) ; $ class = '\JFusion\Plugins\\' . $ name . '\Auth' ; if ( ! class_exists ( $ class ) ) { $ class = '\JFusion\Plugin\Auth' ; } $ instances [ $ instance ] = new $ class ( $ instance ) ; } return $ instances [ $ instance ] ; }
Gets an Authentication Class for the JFusion Plugin

@param string $instance name of the JFusion plugin used

@return Auth JFusion Authentication class for the JFusion plugin
Gets an Authentication Class for the JFusion Plugin