‪TYPO3CMS  10.4
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

string[] $databaseTables = array( 'pages', 'pages_language_overlay' )
 
string[] $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 27 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 150 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 109 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 56 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 40 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 97 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 48 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 67 of file MigrateUrlTypesInPagesUpdate.php.

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

Member Data Documentation

◆ $databaseTables

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

Definition at line 31 of file MigrateUrlTypesInPagesUpdate.php.

◆ $urltypes

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

Definition at line 35 of file MigrateUrlTypesInPagesUpdate.php.