‪TYPO3CMS  11.5
TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype Class Reference
Inheritance diagram for TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype:
TYPO3\CMS\Install\Updates\UpgradeWizardInterface TYPO3\CMS\Install\Updates\RepeatableInterface

Public Member Functions

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

Protected Member Functions

string getOldCType ()
 
string getNewCType ()
 

Protected Attributes

const CTYPE_PIBASE = 'login'
 
const CTYPE_EXTBASE = 'felogin_login'
 

Detailed Description

this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.

Definition at line 29 of file MigrateFeloginPluginsCtype.php.

Member Function Documentation

◆ executeUpdate()

bool TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::executeUpdate ( )

Execute the update

Called when a wizard reports that an update is necessary

Returns
‪bool

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 73 of file MigrateFeloginPluginsCtype.php.

References TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype\getNewCType().

◆ getDescription()

string TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::getDescription ( )

Return the description for this wizard

Returns
‪string

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 60 of file MigrateFeloginPluginsCtype.php.

◆ getIdentifier()

string TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::getIdentifier ( )

Return the identifier for this wizard This should be the same string as used in the ext_localconf class registration

Returns
‪string

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 40 of file MigrateFeloginPluginsCtype.php.

◆ getNewCType()

string TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::getNewCType ( )
protected

Decide which content CType should be used for the current feature toggle state

Returns
‪string

Definition at line 145 of file MigrateFeloginPluginsCtype.php.

References TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype\CTYPE_EXTBASE.

Referenced by TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype\executeUpdate().

◆ getOldCType()

string TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::getOldCType ( )
protected

Returns the CType that should be replaced by new CType

Returns
‪string

Definition at line 135 of file MigrateFeloginPluginsCtype.php.

References TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype\CTYPE_PIBASE.

◆ getPrerequisites()

string [] TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::getPrerequisites ( )

Returns an array of class names of Prerequisite classes

This way a wizard can define dependencies like "database up-to-date" or "reference index updated"

Returns
‪string[]

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 123 of file MigrateFeloginPluginsCtype.php.

◆ getTitle()

string TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::getTitle ( )

Return the speaking name of this wizard

Returns
‪string

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 50 of file MigrateFeloginPluginsCtype.php.

◆ updateNecessary()

bool TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::updateNecessary ( )

Is an update necessary?

If the feature toggle is set: Looks for new fe plugins to be rolled back Otherwise looks for old record sets to be migrated

Returns
‪bool

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 101 of file MigrateFeloginPluginsCtype.php.

Member Data Documentation

◆ CTYPE_EXTBASE

const TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::CTYPE_EXTBASE = 'felogin_login'
protected

◆ CTYPE_PIBASE

const TYPO3\CMS\FrontendLogin\Updates\MigrateFeloginPluginsCtype::CTYPE_PIBASE = 'login'
protected