TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard Class Reference
Inheritance diagram for TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard:
TYPO3\CMS\Install\Controller\Action\AbstractAction TYPO3\CMS\Install\Controller\Action\ActionInterface

Protected Member Functions

 executeAction ()
 
 getUpdateObjectInstance ($className, $identifier)
 
 getNextUpdateInstance (AbstractUpdate $currentUpdate)
 
 getDatabaseConnection ()
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 initializeHandle ()
 
 executeAction ()
 
 isDbalEnabled ()
 
 getContext ()
 
 loadExtLocalconfDatabaseAndExtTables ()
 
 getHashedPassword ($password)
 

Protected Attributes

 $needsInitialUpdateDatabaseSchema = false
 
- Protected Attributes inherited from TYPO3\CMS\Install\Controller\Action\AbstractAction
 $objectManager = null
 
 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = []
 
 $lastError = []
 
 $messages = []
 

Additional Inherited Members

- Public Member Functions inherited from TYPO3\CMS\Install\Controller\Action\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=[])
 

Detailed Description

Handle update wizards

Definition at line 25 of file UpgradeWizard.php.

Member Function Documentation

◆ executeAction()

◆ getDatabaseConnection()

TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard::getDatabaseConnection ( )
protected

Overwrite getDatabase method of abstract!

Returns $GLOBALS['TYPO3_DB'] directly, since this global is instantiated properly in update wizards

Returns

Definition at line 315 of file UpgradeWizard.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard\executeAction().

◆ getNextUpdateInstance()

TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard::getNextUpdateInstance ( AbstractUpdate  $currentUpdate)
protected

Returns the next Update object Used to show the link/button to the next Update

Parameters
AbstractUpdate$currentUpdateCurrent Update object
Returns
AbstractUpdate|NULL

Definition at line 256 of file UpgradeWizard.php.

References $GLOBALS, TYPO3\CMS\Install\Updates\AbstractUpdate\getIdentifier(), and TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard\getUpdateObjectInstance().

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard\executeAction().

◆ getUpdateObjectInstance()

TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard::getUpdateObjectInstance (   $className,
  $identifier 
)
protected

Creates instance of an Update object

Parameters
string$classNameThe class name
string$identifierThe identifier of Update object - needed to fetch user input
Returns
AbstractUpdate Newly instantiated Update object

Definition at line 242 of file UpgradeWizard.php.

References TYPO3\CMS\Core\Utility\VersionNumberUtility\convertVersionNumberToInteger(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard\executeAction(), and TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard\getNextUpdateInstance().

Member Data Documentation

◆ $needsInitialUpdateDatabaseSchema

TYPO3\CMS\Install\Controller\Action\Tool\UpgradeWizard::$needsInitialUpdateDatabaseSchema = false
protected