TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate Class Reference
Inheritance diagram for TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate:
TYPO3\CMS\Install\Updates\AbstractUpdate TYPO3\CMS\Install\Updates\Compatibility6ExtractionUpdate TYPO3\CMS\Install\Updates\MediaceExtractionUpdate TYPO3\CMS\Install\Updates\OpenidExtractionUpdate

Protected Member Functions

 getExtensionDetails ($extensionKey)
 
 fetchExtension ($extensionKey, $version)
 
 fetchUrl ($url)
 
- Protected Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 markWizardAsDone ($confValue=1)
 
 isWizardDone ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $title = 'Install an Extension from the Extension Repository'
 
 $extensionDetails = []
 
 $repositoryUrl = 'https://typo3.org/fileadmin/ter/@filename'
 
- Protected Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

- Public Member Functions inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 getTitle ()
 
 setTitle ($title)
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 shouldRenderWizard ()
 
 shouldRenderNextButton ()
 
 checkIfTableExists ($table)
 
 checkForUpdate (&$description)
 
 performUpdate (array &$dbQueries, &$customMessages)
 
- Public Attributes inherited from TYPO3\CMS\Install\Updates\AbstractUpdate
 $pObj
 
 $userInput
 
 $versionNumber
 

Detailed Description

Download extension from TER

Definition at line 27 of file AbstractDownloadExtensionUpdate.php.

Member Function Documentation

◆ fetchExtension()

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

Fetch extension from repository

Parameters
string$extensionKeyThe extension key to fetch
string$versionThe version to fetch
Exceptions

Definition at line 126 of file AbstractDownloadExtensionUpdate.php.

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

◆ fetchUrl()

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$urlThe URL to file
Exceptions

Definition at line 151 of file AbstractDownloadExtensionUpdate.php.

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

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

◆ getExtensionDetails()

TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::getExtensionDetails (   $extensionKey)
protected

Returns the details of a local or external extension

Parameters
string$extensionKeyKey of the extension to check
Returns
array Extension details

Definition at line 108 of file AbstractDownloadExtensionUpdate.php.

Member Data Documentation

◆ $extensionDetails

TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::$extensionDetails = []
protected

Definition at line 38 of file AbstractDownloadExtensionUpdate.php.

◆ $repositoryUrl

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

Definition at line 43 of file AbstractDownloadExtensionUpdate.php.

◆ $title

TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate::$title = 'Install an Extension from the Extension Repository'
protected

Definition at line 32 of file AbstractDownloadExtensionUpdate.php.