TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Install\Updates\AbstractUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\AbstractUpdate:
Tx_Install_Updates_Base TYPO3\CMS\Install\Updates\AbstractDatabaseSchemaUpdate TYPO3\CMS\Install\Updates\CompatVersionUpdate TYPO3\CMS\Install\Updates\ExtensionManagerTables TYPO3\CMS\Install\Updates\FileIdentifierHashUpdate TYPO3\CMS\Install\Updates\FilemountUpdateWizard TYPO3\CMS\Install\Updates\FilePermissionUpdate TYPO3\CMS\Install\Updates\FileTableSplittingUpdate TYPO3\CMS\Install\Updates\InitUpdateWizard TYPO3\CMS\Install\Updates\MediaFlexformUpdate TYPO3\CMS\Install\Updates\ProcessedFileChecksumUpdate TYPO3\CMS\Install\Updates\ReferenceIntegrityUpdateWizard TYPO3\CMS\Install\Updates\RootTemplateUpdate TYPO3\CMS\Install\Updates\RteFileLinksUpdateWizard TYPO3\CMS\Install\Updates\RteMagicImagesUpdateWizard TYPO3\CMS\Install\Updates\TceformsUpdateWizard TYPO3\CMS\Install\Updates\TruncateSysFileProcessedFileTable TYPO3\CMS\Install\Updates\TtContentUploadsUpdateWizard TYPO3\CMS\Rtehtmlarea\Hook\Install\DeprecatedRteProperties

Public Member Functions

 getTitle ()
 
 setTitle ($title)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 shouldRenderWizard ()
 
 shouldRenderNextButton ()
 
 checkIfTableExists ($table)
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 

Public Attributes

 $pObj
 
 $userInput
 
 $versionNumber
 

Protected Member Functions

 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $title
 
 $identifier
 

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! Generic class that every update wizard class inherits from. Used by the update wizard in the install tool.

Author
Benjamin Mack benni.nosp@m.@typ.nosp@m.o3.or.nosp@m.g

Definition at line 23 of file AbstractUpdate.php.

Member Function Documentation

◆ checkForUpdate()

TYPO3\CMS\Install\Updates\AbstractUpdate::checkForUpdate ( $description)
abstract

Checks whether updates are required.

Parameters
string&$descriptionThe description for the update
Returns
boolean Whether an update is required (TRUE) or not (FALSE)

Referenced by TYPO3\CMS\Install\Updates\AbstractUpdate\checkIfTableExists(), TYPO3\CMS\Install\Updates\AbstractUpdate\shouldRenderNextButton(), and TYPO3\CMS\Install\Updates\AbstractUpdate\shouldRenderWizard().

◆ checkIfTableExists()

TYPO3\CMS\Install\Updates\AbstractUpdate::checkIfTableExists (   $table)

◆ getDatabaseConnection()

TYPO3\CMS\Install\Updates\AbstractUpdate::getDatabaseConnection ( )
protected

◆ getIdentifier()

TYPO3\CMS\Install\Updates\AbstractUpdate::getIdentifier ( )

Returns the identifier of this class

Returns
string The identifier of this update wizard

Definition at line 89 of file AbstractUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\$identifier.

◆ getTitle()

TYPO3\CMS\Install\Updates\AbstractUpdate::getTitle ( )

Returns the title attribute

Returns
string The title of this update wizard

Definition at line 66 of file AbstractUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\$identifier, and TYPO3\CMS\Install\Updates\AbstractUpdate\$title.

◆ isWizardDone()

TYPO3\CMS\Install\Updates\AbstractUpdate::isWizardDone ( )
protected

◆ markWizardAsDone()

TYPO3\CMS\Install\Updates\AbstractUpdate::markWizardAsDone (   $confValue = 1)
protected

◆ performUpdate()

TYPO3\CMS\Install\Updates\AbstractUpdate::performUpdate ( array &  $dbQueries,
$customMessages 
)
abstract

Performs the accordant updates.

Parameters
array&$dbQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
boolean Whether everything went smoothly or not

Referenced by TYPO3\CMS\Install\Updates\MediaFlexformUpdate\checkForUpdate(), and TYPO3\CMS\Install\Updates\AbstractUpdate\checkIfTableExists().

◆ setIdentifier()

TYPO3\CMS\Install\Updates\AbstractUpdate::setIdentifier (   $identifier)

Sets the identifier attribute

Parameters
string$identifierThe identifier of this update wizard
Returns
void

Definition at line 99 of file AbstractUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\$identifier.

◆ setTitle()

TYPO3\CMS\Install\Updates\AbstractUpdate::setTitle (   $title)

Sets the title attribute

Parameters
string$titleThe title of this update wizard
Returns
void

Definition at line 80 of file AbstractUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\$title.

◆ shouldRenderNextButton()

TYPO3\CMS\Install\Updates\AbstractUpdate::shouldRenderNextButton ( )

Simple wrapper function that helps to check whether (if) this feature is cool if you want to tell the user that the update wizard is working fine, just as output (useful for the character set / utf8 wizard)

Returns
boolean If the wizard should render the Next() button on the overview page
See also
checkForUpdate()

Definition at line 126 of file AbstractUpdate.php.

References $result, and TYPO3\CMS\Install\Updates\AbstractUpdate\checkForUpdate().

◆ shouldRenderWizard()

TYPO3\CMS\Install\Updates\AbstractUpdate::shouldRenderWizard ( )

Simple wrapper function that helps dealing with the compatibility layer that some update wizards don't have a second parameter thus, it evaluates everything already

Returns
boolean If the wizard should be shown at all on the overview page
See also
checkForUpdate()

Definition at line 111 of file AbstractUpdate.php.

References $result, and TYPO3\CMS\Install\Updates\AbstractUpdate\checkForUpdate().

Member Data Documentation

◆ $identifier

◆ $pObj

TYPO3\CMS\Install\Updates\AbstractUpdate::$pObj

Definition at line 44 of file AbstractUpdate.php.

◆ $title

TYPO3\CMS\Install\Updates\AbstractUpdate::$title
protected

◆ $userInput

TYPO3\CMS\Install\Updates\AbstractUpdate::$userInput

Definition at line 51 of file AbstractUpdate.php.

◆ $versionNumber

TYPO3\CMS\Install\Updates\AbstractUpdate::$versionNumber

Definition at line 59 of file AbstractUpdate.php.