\nre\coreDriver

Abstract class for implementing a Driver.

Summary

Methods
Properties
Constants
load()
factory()
No public properties found
No constants found
__construct()
No protected properties found
N/A
getClassName()
No private properties found
N/A

Methods

load()

load(string  $driverName) 

Load the class of a Driver.

Parameters

string $driverName

Name of the Driver to load

Throws

\nre\exceptions\DriverNotFoundException
\nre\exceptions\DriverNotValidException

factory()

factory(string  $driverName, array  $config) 

Instantiate a Driver (Factory Pattern).

Parameters

string $driverName

Name of the Driver to instantiate

array $config

Configuration settings

__construct()

__construct() 

Construct a new Driver.

getClassName()

getClassName(string  $driverName) : string

Determine the classname for the given Driver name.

Parameters

string $driverName

Driver name to get classname of

Returns

string —

Classname fore the Driver name