‪TYPO3CMS  10.4
TYPO3\CMS\Install\Updates\ExtensionManagerTables Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\ExtensionManagerTables:
TYPO3\CMS\Install\Updates\UpgradeWizardInterface TYPO3\CMS\Install\Updates\RepeatableInterface

Public Member Functions

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

Protected Member Functions

array getUpdateStatements ()
 
string[] getTableStatements ()
 

Detailed Description

Contains the update class for filling the basic repository record of the extension manager

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

Definition at line 29 of file ExtensionManagerTables.php.

Member Function Documentation

◆ executeUpdate()

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

Performs the database update.

Returns
‪bool Whether it worked (TRUE) or not (FALSE)

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 95 of file ExtensionManagerTables.php.

References TYPO3\CMS\Core\Utility\ExtensionManagementUtility\extPath(), and TYPO3\CMS\Install\Updates\ExtensionManagerTables\getTableStatements().

◆ getDescription()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 50 of file ExtensionManagerTables.php.

◆ getIdentifier()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 34 of file ExtensionManagerTables.php.

◆ getPrerequisites()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 83 of file ExtensionManagerTables.php.

◆ getTableStatements()

string [] TYPO3\CMS\Install\Updates\ExtensionManagerTables::getTableStatements ( )
protected

◆ getTitle()

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

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Definition at line 42 of file ExtensionManagerTables.php.

◆ getUpdateStatements()

array TYPO3\CMS\Install\Updates\ExtensionManagerTables::getUpdateStatements ( )
protected

Gets all create, add and change queries from ext_tables.sql

Returns
‪array

Definition at line 122 of file ExtensionManagerTables.php.

References TYPO3\CMS\Install\Updates\ExtensionManagerTables\getTableStatements().

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

◆ updateNecessary()

bool TYPO3\CMS\Install\Updates\ExtensionManagerTables::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 ExtensionManagerTables.php.

References TYPO3\CMS\Install\Updates\ExtensionManagerTables\getUpdateStatements().