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

Public Member Functions

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

Protected Member Functions

bool checkIfWizardIsRequired ()
 

Private Attributes

 $databaseTables = array( 'pages', 'pages_language_overlay' )
 
 $urltypes = array( '', 'http://', 'ftp://', 'mailto:', 'https://' )
 

Detailed Description

Merge URLs divided in pages.urltype and pages.url into pages.url

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

Definition at line 25 of file MigrateUrlTypesInPagesUpdate.php.

Member Function Documentation

◆ checkIfWizardIsRequired()

bool TYPO3\CMS\Install\Updates\MigrateUrlTypesInPagesUpdate::checkIfWizardIsRequired ( )
protected

Check each table if the column exists

Returns
‪bool

Definition at line 143 of file MigrateUrlTypesInPagesUpdate.php.

Referenced by TYPO3\CMS\Install\Updates\MigrateUrlTypesInPagesUpdate\updateNecessary().

◆ executeUpdate()

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

Moves data from pages.urltype to pages.url

Returns
‪bool

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 102 of file MigrateUrlTypesInPagesUpdate.php.

◆ getDescription()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 49 of file MigrateUrlTypesInPagesUpdate.php.

◆ getIdentifier()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 33 of file MigrateUrlTypesInPagesUpdate.php.

◆ getPrerequisites()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 90 of file MigrateUrlTypesInPagesUpdate.php.

◆ getTitle()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 41 of file MigrateUrlTypesInPagesUpdate.php.

◆ updateNecessary()

bool TYPO3\CMS\Install\Updates\MigrateUrlTypesInPagesUpdate::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 60 of file MigrateUrlTypesInPagesUpdate.php.

References TYPO3\CMS\Install\Updates\MigrateUrlTypesInPagesUpdate\checkIfWizardIsRequired().

Member Data Documentation

◆ $databaseTables

TYPO3\CMS\Install\Updates\MigrateUrlTypesInPagesUpdate::$databaseTables = array( 'pages', 'pages_language_overlay' )
private

Definition at line 27 of file MigrateUrlTypesInPagesUpdate.php.

◆ $urltypes

TYPO3\CMS\Install\Updates\MigrateUrlTypesInPagesUpdate::$urltypes = array( '', 'http://', 'ftp://', 'mailto:', 'https://' )
private

Definition at line 28 of file MigrateUrlTypesInPagesUpdate.php.