TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Updates\LanguageIsoCodeUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\LanguageIsoCodeUpdate:
TYPO3\CMS\Install\Updates\AbstractUpdate

Public Member Functions

 checkForUpdate (&$description)
 
 performUpdate (array &$databaseQueries, &$customMessages)
 
- Public Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 getTitle ()
 
 setTitle ($title)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 shouldRenderWizard ()
 
 shouldRenderNextButton ()
 
 checkIfTableExists ($table)
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 

Protected Attributes

 $title = 'Update sys_language records to use new ISO 639-1 letter-code field'
 
- Protected Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $pObj
 
 $userInput
 
 $versionNumber
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Detailed Description

Update sys_language records to use the newly created field language_isocode, if they have used the now deprecated static_lang_isocode

Definition at line 23 of file LanguageIsoCodeUpdate.php.

Member Function Documentation

◆ checkForUpdate()

TYPO3\CMS\Install\Updates\LanguageIsoCodeUpdate::checkForUpdate ( $description)

Checks if an update is needed

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

Definition at line 36 of file LanguageIsoCodeUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\getDatabaseConnection(), TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded(), and TYPO3\CMS\Install\Updates\AbstractUpdate\isWizardDone().

◆ performUpdate()

TYPO3\CMS\Install\Updates\LanguageIsoCodeUpdate::performUpdate ( array &  $databaseQueries,
$customMessages 
)

Performs the database update if the old field "static_lang_isocode" is in use and populates the new field "language_isocode" with the data of the old relation.

Parameters
array&$databaseQueriesQueries done in this update
mixed&$customMessagesCustom messages
Returns
bool

Definition at line 62 of file LanguageIsoCodeUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractUpdate\getDatabaseConnection(), and TYPO3\CMS\Install\Updates\AbstractUpdate\markWizardAsDone().

Member Data Documentation

◆ $title

TYPO3\CMS\Install\Updates\LanguageIsoCodeUpdate::$title = 'Update sys_language records to use new ISO 639-1 letter-code field'
protected

Definition at line 28 of file LanguageIsoCodeUpdate.php.