TYPO3  7.6
Protected Member Functions | Protected Attributes | List of all members
UpgradeWizard Class Reference
Inheritance diagram for UpgradeWizard:
AbstractAction ActionInterface

Protected Member Functions

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

Protected Attributes

 $needsInitialUpdateDatabaseSchema = false
 
- Protected Attributes inherited from AbstractAction
 $objectManager = null
 
 $view = null
 
 $controller = ''
 
 $action = ''
 
 $token = ''
 
 $postValues = array()
 
 $lastError = array()
 
 $messages = array()
 

Additional Inherited Members

- 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())
 

Detailed Description

Handle update wizards

Definition at line 25 of file UpgradeWizard.php.

Member Function Documentation

executeAction ( )
protected

Executes the tool

Returns
string Rendered content

Definition at line 39 of file UpgradeWizard.php.

References $GLOBALS, elseif, UpgradeWizard\getUpdateObjectInstance(), and AbstractAction\loadExtLocalconfDatabaseAndExtTables().

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.

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, AbstractUpdate\getIdentifier(), and UpgradeWizard\getUpdateObjectInstance().

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 VersionNumberUtility\convertVersionNumberToInteger(), and GeneralUtility\makeInstance().

Referenced by UpgradeWizard\executeAction(), and UpgradeWizard\getNextUpdateInstance().

Member Data Documentation

$needsInitialUpdateDatabaseSchema = false
protected

Definition at line 32 of file UpgradeWizard.php.