PageDoktypeLinkMigration implements UpgradeWizardInterface, ChattyInterface
Migrates `pages.url` field values for `pages.doktype = 3 (Link)` to TypoLink notation suitable for the `pages.link` field and displays failed pages uid.
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
Tags
Attributes
- #[UpgradeWizard]
- 'pageDoktypeLinkMigration'
Table of Contents
Interfaces
- UpgradeWizardInterface
- Interface UpgradeWizardInterface
- ChattyInterface
- Is this upgradeWizard chatty aka does it need to output things?
Properties
- $output : OutputInterface|null
Methods
- __construct() : mixed
- executeUpdate() : bool
- Execute the update
- getDescription() : string
- Return the description for this wizard
- getPrerequisites() : array<string|int, string>
- Returns an array of class names of Prerequisite classes
- getTitle() : string
- Return the speaking name of this wizard
- setOutput() : void
- Setter injection for output into upgrade wizards
- updateNecessary() : bool
- Is an update necessary?
- getPagesTableSchema() : Table|null
- hasRecordsToUpdate() : bool
- migrateExternalUrlToTypoLink() : string
Properties
$output
protected
OutputInterface|null
$output
= null
Methods
__construct()
public
__construct(ConnectionPool $connectionPool) : mixed
Parameters
- $connectionPool : ConnectionPool
executeUpdate()
Execute the update
public
executeUpdate() : bool
Called when a wizard reports that an update is necessary
Return values
boolgetDescription()
Return the description for this wizard
public
getDescription() : string
Return values
stringgetPrerequisites()
Returns an array of class names of Prerequisite classes
public
getPrerequisites() : array<string|int, string>
This way a wizard can define dependencies like "database up-to-date" or "reference index updated"
Return values
array<string|int, string>getTitle()
Return the speaking name of this wizard
public
getTitle() : string
Return values
stringsetOutput()
Setter injection for output into upgrade wizards
public
setOutput(OutputInterface $output) : void
Parameters
- $output : OutputInterface
updateNecessary()
Is an update necessary?
public
updateNecessary() : bool
Is used to determine whether a wizard needs to be run. Check if data for migration exists.
Return values
boolgetPagesTableSchema()
protected
getPagesTableSchema() : Table|null
Return values
Table|nullhasRecordsToUpdate()
protected
hasRecordsToUpdate() : bool
Return values
boolmigrateExternalUrlToTypoLink()
protected
migrateExternalUrlToTypoLink(string $urlString, string $target, string $sitePrefix) : string
Parameters
- $urlString : string
- $target : string
- $sitePrefix : string