TYPO3 CMS  TYPO3_6-2
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 ()
 
 registerDriverClass ($className, $shortName=NULL, $label=NULL, $flexFormDataStructurePathAndFilename=NULL)
 
 addDriversToTCA ()
 
 getDriverClass ($shortName)
 
 driverExists ($shortName)
 

Protected Attributes

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

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Registry for driver classes.

Author
Andreas Wolf andre.nosp@m.as.w.nosp@m.olf@i.nosp@m.kt-w.nosp@m.erk.d.nosp@m.e

Definition at line 21 of file DriverRegistry.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ addDriversToTCA()

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

Definition at line 87 of file DriverRegistry.php.

References $driver, $GLOBALS, and TYPO3_MODE.

◆ driverExists()

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

Checks if the given driver exists

Parameters
string$shortNameName of the driver
Returns
boolean TRUE if the driver exists, FALSE otherwise

Definition at line 126 of file DriverRegistry.php.

◆ getDriverClass()

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 110 of file DriverRegistry.php.

◆ registerDriverClass()

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$shortName
string$label
string$flexFormDataStructurePathAndFilename
Returns
boolean TRUE if registering succeeded
Exceptions

Definition at line 54 of file DriverRegistry.php.

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

Member Data Documentation

◆ $driverConfigurations

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

◆ $drivers

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

Definition at line 26 of file DriverRegistry.php.