‪TYPO3CMS  10.4
TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate:
TYPO3\CMS\Install\Updates\UpgradeWizardInterface TYPO3\CMS\Install\Updates\ConfirmableInterface TYPO3\CMS\Install\Updates\ChattyInterface TYPO3\CMS\Install\Updates\AdminPanelInstall TYPO3\CMS\Install\Updates\FeeditExtractionUpdate TYPO3\CMS\Install\Updates\FuncExtractionUpdate TYPO3\CMS\Install\Updates\RedirectExtractionUpdate TYPO3\CMS\Install\Updates\RedirectsExtensionUpdate TYPO3\CMS\Install\Updates\RsaauthExtractionUpdate TYPO3\CMS\Install\Updates\SysActionExtractionUpdate TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate TYPO3\CMS\Install\Updates\Typo3DbExtractionUpdate

Public Member Functions

 setOutput (OutputInterface $output)
 
bool executeUpdate ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\Updates\UpgradeWizardInterface
string getIdentifier ()
 
string getTitle ()
 
string getDescription ()
 
bool updateNecessary ()
 
string[] getPrerequisites ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\Updates\ConfirmableInterface
TYPO3 CMS Install Updates Confirmation getConfirmation ()
 

Protected Member Functions

bool installExtension (ExtensionModel $extension)
 
string fetchExtension ($extensionKey, $version)
 
string fetchUrl ($url)
 

Protected Attributes

string $repositoryUrl = 'https://typo3.org/fileadmin/ter/@filename'
 
OutputInterface $output
 
TYPO3 CMS Install Updates ExtensionModel $extension
 

Detailed Description

Download extension from TER

Definition at line 30 of file AbstractDownloadExtensionUpdate.php.

Member Function Documentation

◆ executeUpdate()

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

Execute the update Called when a wizard reports that an update is necessary

Returns
‪bool

Implements TYPO3\CMS\Install\Updates\UpgradeWizardInterface.

Reimplemented in TYPO3\CMS\Install\Updates\RedirectsExtensionUpdate.

Definition at line 58 of file AbstractDownloadExtensionUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate\installExtension().

◆ fetchExtension()

string TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::fetchExtension (   $extensionKey,
  $version 
)
protected

Fetch extension from repository

Parameters
string$extensionKey‪The extension key to fetch
string$version‪The version to fetch
Exceptions

Definition at line 134 of file AbstractDownloadExtensionUpdate.php.

References TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate\fetchUrl().

Referenced by TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate\installExtension().

◆ fetchUrl()

string TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::fetchUrl (   $url)
protected

Open an URL and return the response This wrapper method is required to try several download methods if the configuration is not valid or initially written by the installer.

Parameters
string$url‪The URL to file
Exceptions

Definition at line 159 of file AbstractDownloadExtensionUpdate.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\getUrl().

Referenced by TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate\fetchExtension().

◆ installExtension()

bool TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::installExtension ( ExtensionModel  $extension)
protected

◆ setOutput()

TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::setOutput ( OutputInterface  $output)

Member Data Documentation

◆ $extension

TYPO3 CMS Install Updates ExtensionModel TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::$extension
protected

◆ $output

OutputInterface TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::$output
protected

◆ $repositoryUrl

string TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::$repositoryUrl = 'https://typo3.org/fileadmin/ter/@filename'
protected

Definition at line 34 of file AbstractDownloadExtensionUpdate.php.