fuel/fuel/packages/auth/classes/auth.php
public static function register_driver_type($type, $check_method)
	{
		$driver_exists = ! is_string($type)
						|| array_key_exists($type, static::$_drivers)
						|| method_exists(get_called_class(), $check_method)
						|| in_array($type, array('login', 'group', 'acl'));
		$method_exists = ! is_string($type)
						|| array_search($check_method, static::$_drivers)
						|| method_exists(get_called_class(), $type);

		if ($driver_exists && static::$_drivers[$type] == $check_method)
		{
			return true;
		}

		if ($driver_exists || $method_exists)
		{
			\Error::notice('Cannot add driver type, its name conflicts with another driver or method.');
			return false;
		}

		static::$_drivers[$type] = $check_method;
		return true;
	}
public static function register_driver_type($type, $check_method)
	{
		$driver_exists = ! is_string($type)
						|| array_key_exists($type, static::$_drivers)
						|| method_exists(get_called_class(), $check_method)
						|| in_array($type, array('login', 'group', 'acl'));
		$method_exists = ! is_string($type)
						|| array_search($check_method, static::$_drivers)
						|| method_exists(get_called_class(), $type);

		if ($driver_exists && static::$_drivers[$type] == $check_method)
		{
			return true;
		}

		if ($driver_exists || $method_exists)
		{
			\Error::notice('Cannot add driver type, its name conflicts with another driver or method.');
			return false;
		}

		static::$_drivers[$type] = $check_method;
		return true;
	}
public static function register_driver_type ( $ type , $ check_method ) { $ driver_exists = ! is_string ( $ type ) || array_key_exists ( $ type , static :: $ _drivers ) || method_exists ( get_called_class ( ) , $ check_method ) || in_array ( $ type , array ( 'login' , 'group' , 'acl' ) ) ; $ method_exists = ! is_string ( $ type ) || array_search ( $ check_method , static :: $ _drivers ) || method_exists ( get_called_class ( ) , $ type ) ; if ( $ driver_exists && static :: $ _drivers [ $ type ] == $ check_method ) { return true ; } if ( $ driver_exists || $ method_exists ) { \ Error :: notice ( 'Cannot add driver type, its name conflicts with another driver or method.' ) ; return false ; } static :: $ _drivers [ $ type ] = $ check_method ; return true ; }
Register a new driver type

@param   string  name of the driver type, may not conflict with class method name
@param   string  name of the method to use for checking this type of driver, also cannot conflict with method
@return  bool
Register a new driver type