‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Driver\DriverRegistry Class Reference
Inheritance diagram for TYPO3\CMS\Core\Resource\Driver\DriverRegistry:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct ()
 
bool registerDriverClass ($className, $shortName=null, $label=null, $flexFormDataStructurePathAndFilename=null)
 
 addDriversToTCA ()
 
string getDriverClass ($shortName)
 
bool driverExists ($shortName)
 

Protected Attributes

array $drivers = array( )
 
array $driverConfigurations = array( )
 

Detailed Description

Registry for driver classes.

Definition at line 23 of file DriverRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Driver\DriverRegistry::__construct ( )

Creates this object by detecting all available drivers registered in $TYPO3_CONF_VARS.

Definition at line 36 of file DriverRegistry.php.

References TYPO3\CMS\Core\Resource\Driver\DriverRegistry\$driverConfigurations, $GLOBALS, and TYPO3\CMS\Core\Resource\Driver\DriverRegistry\registerDriverClass().

Member Function Documentation

◆ addDriversToTCA()

TYPO3\CMS\Core\Resource\Driver\DriverRegistry::addDriversToTCA ( )

Adds the TCA information so the registered drivers can be selected when creating a sys_file_storage in the TYPO3 Backend.

Definition at line 92 of file DriverRegistry.php.

References $GLOBALS.

◆ driverExists()

bool TYPO3\CMS\Core\Resource\Driver\DriverRegistry::driverExists (   $shortName)

Checks if the given driver exists

Parameters
string$shortName‪Name of the driver
Returns
‪bool TRUE if the driver exists, FALSE otherwise

Definition at line 132 of file DriverRegistry.php.

◆ getDriverClass()

string TYPO3\CMS\Core\Resource\Driver\DriverRegistry::getDriverClass (   $shortName)

Returns a class name for a given class name or short name.

Parameters
string$shortName
Returns
‪string The class name
Exceptions

Definition at line 112 of file DriverRegistry.php.

◆ registerDriverClass()

bool TYPO3\CMS\Core\Resource\Driver\DriverRegistry::registerDriverClass (   $className,
  $shortName = null,
  $label = null,
  $flexFormDataStructurePathAndFilename = null 
)

Registers a driver class with an optional short name.

Parameters
string$className
string | null$shortName
string$label
string$flexFormDataStructurePathAndFilename
Returns
‪bool TRUE if registering succeeded
Exceptions

Definition at line 55 of file DriverRegistry.php.

Referenced by TYPO3\CMS\Core\Resource\Driver\DriverRegistry\__construct().

Member Data Documentation

◆ $driverConfigurations

array TYPO3\CMS\Core\Resource\Driver\DriverRegistry::$driverConfigurations = array( )
protected

◆ $drivers

array TYPO3\CMS\Core\Resource\Driver\DriverRegistry::$drivers = array( )
protected

Definition at line 27 of file DriverRegistry.php.