TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DatabaseSelect Class Reference
Inheritance diagram for DatabaseSelect:
AbstractStepAction AbstractAction StepInterface ActionInterface

Public Member Functions

 needsExecution ()
 
- Public Member Functions inherited from AbstractStepAction
 setStepsCounter ($current, $total)
 
 getCurrentStep ()
 
 getTotalSteps ()
 
- Public Member Functions inherited from AbstractAction
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager)
 
 injectView (\TYPO3\CMS\Install\View\FailsafeView $view)
 
 handle ()
 
 setToken ($token)
 
 setController ($controller)
 
 setAction ($action)
 
 setPostValues (array $postValues)
 
 setLastError (array $lastError)
 
 setMessages (array $messages=array())
 
- Public Member Functions inherited from StepInterface
 execute ()
 

Protected Member Functions

 getDatabaseList ($initialInstallation)
 
 initializeDatabaseConnection ()
 
 isValidDatabaseName ($databaseName)
 
- Protected Member Functions inherited from AbstractStepAction
 assignSteps ()
 
- Protected Member Functions inherited from AbstractAction
 initializeHandle ()
 
 executeAction ()
 
 isDbalEnabled ()
 
 getContext ()
 
 loadExtLocalconfDatabaseAndExtTables ()
 
 getHashedPassword ($password)
 

Protected Attributes

 $databaseConnection = null
 
- Protected Attributes inherited from AbstractStepAction
 $currentStep = 0
 
 $totalSteps = 0
 
- Protected Attributes inherited from AbstractAction
 $objectManager = null
 
 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = array()
 
 $lastError = array()
 
 $messages = array()
 

Detailed Description

Database select step. This step is only rendered if database is mysql. With dbal, database name is submitted by previous step already.

Definition at line 23 of file DatabaseSelect.php.

Member Function Documentation

getDatabaseList (   $initialInstallation)
protected

Returns list of available databases (with access-check based on username/password)

Parameters
bool$initialInstallationTRUE if first installation is in progress, FALSE if upgrading or usual access
Returns
array List of available databases

Definition at line 141 of file DatabaseSelect.php.

References DatabaseSelect\initializeDatabaseConnection().

initializeDatabaseConnection ( )
protected

Initialize database connection

Returns
void

Definition at line 173 of file DatabaseSelect.php.

References $GLOBALS.

Referenced by DatabaseSelect\getDatabaseList(), and DatabaseSelect\needsExecution().

isValidDatabaseName (   $databaseName)
protected

Validate the database name against the lowest common denominator of valid identifiers across different DBMS

Parameters
string$databaseName
Returns
bool

Definition at line 190 of file DatabaseSelect.php.

needsExecution ( )

Step needs to be executed if database is not set or can not be selected.

Returns
bool

Implements StepInterface.

Definition at line 102 of file DatabaseSelect.php.

References $GLOBALS, and DatabaseSelect\initializeDatabaseConnection().

Member Data Documentation

$databaseConnection = null
protected

Definition at line 28 of file DatabaseSelect.php.