public function getDriver($libraryName, array $parameters = null, array $directory = null, $newInstance = false)
	{
		if (empty($libraryName))
		{
			throw new LibraryException("Could not load driver. No name provided", 1);
		}

		// Load the driver class if it is not yet loaded
		if ( ! class_exists('FuzeWorks\FW_Driver_Library', false))
		{
			require_once(Core::$coreDir . DS . 'Libraries'.DS.'Driver.php');
		}

		// And then load and return the library
		return $this->loadLibrary($libraryName, $parameters, $directory, $newInstance);
	}
public function getDriver($libraryName, array $parameters = null, array $directory = null, $newInstance = false)
	{
		if (empty($libraryName))
		{
			throw new LibraryException("Could not load driver. No name provided", 1);
		}

		// Load the driver class if it is not yet loaded
		if ( ! class_exists('FuzeWorks\FW_Driver_Library', false))
		{
			require_once(Core::$coreDir . DS . 'Libraries'.DS.'Driver.php');
		}

		// And then load and return the library
		return $this->loadLibrary($libraryName, $parameters, $directory, $newInstance);
	}
public function getDriver ( $ libraryName , array $ parameters = null , array $ directory = null , $ newInstance = false ) { if ( empty ( $ libraryName ) ) { throw new LibraryException ( "Could not load driver. No name provided" , 1 ) ; } // Load the driver class if it is not yet loaded if ( ! class_exists ( 'FuzeWorks\FW_Driver_Library' , false ) ) { require_once ( Core :: $ coreDir . DS . 'Libraries' . DS . 'Driver.php' ) ; } // And then load and return the library return $ this -> loadLibrary ( $ libraryName , $ parameters , $ directory , $ newInstance ) ; }
Driver Library Loader

Loads, instantiates and returns driver libraries.

@param	string	$library		Driver Library name
@param	array	$params			Optional parameters to pass to the library class constructor
@param	array	$directory 		Optional list of directories where the library can be found. Overrides default list
@param   bool 	$newInstance 	Whether to return a new instance of the library or the same one
@return	object
@throws 	LibraryException
Driver Library Loader