‪TYPO3CMS  9.5
TYPO3\CMS\Install\Updates\SplitMenusUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\SplitMenusUpdate:
TYPO3\CMS\Install\Updates\UpgradeWizardInterface

Public Member Functions

string getIdentifier ()
 
string getTitle ()
 
string getDescription ()
 
bool updateNecessary ()
 
string[] getPrerequisites ()
 
bool executeUpdate ()
 

Protected Member Functions

string mapMenuTypes ($menuType)
 

Detailed Description

Split menu types into dedicated content elements

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Definition at line 24 of file SplitMenusUpdate.php.

Member Function Documentation

◆ executeUpdate()

bool TYPO3\CMS\Install\Updates\SplitMenusUpdate::executeUpdate ( )

Performs the database update

Returns
‪bool

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 91 of file SplitMenusUpdate.php.

References TYPO3\CMS\Install\Updates\SplitMenusUpdate\mapMenuTypes().

◆ getDescription()

string TYPO3\CMS\Install\Updates\SplitMenusUpdate::getDescription ( )
Returns
‪string Longer description of this updater

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 45 of file SplitMenusUpdate.php.

◆ getIdentifier()

string TYPO3\CMS\Install\Updates\SplitMenusUpdate::getIdentifier ( )
Returns
‪string Unique identifier of this updater

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 29 of file SplitMenusUpdate.php.

◆ getPrerequisites()

string [] TYPO3\CMS\Install\Updates\SplitMenusUpdate::getPrerequisites ( )
Returns
‪string[] All new fields and tables must exist

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 79 of file SplitMenusUpdate.php.

◆ getTitle()

string TYPO3\CMS\Install\Updates\SplitMenusUpdate::getTitle ( )
Returns
‪string Title of this updater

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 37 of file SplitMenusUpdate.php.

◆ mapMenuTypes()

string TYPO3\CMS\Install\Updates\SplitMenusUpdate::mapMenuTypes (   $menuType)
protected

Map the old to the new values

Parameters
string$menuType‪The content of the FlexForm
Returns
‪string The equivalent CType

Definition at line 126 of file SplitMenusUpdate.php.

Referenced by TYPO3\CMS\Install\Updates\SplitMenusUpdate\executeUpdate().

◆ updateNecessary()

bool TYPO3\CMS\Install\Updates\SplitMenusUpdate::updateNecessary ( )

Checks if an update is needed

Returns
‪bool Whether an update is needed (TRUE) or not (FALSE)

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 57 of file SplitMenusUpdate.php.