TYPO3  7.6
Protected Member Functions | Protected Attributes | List of all members
AbstractDownloadExtensionUpdate Class Reference
Inheritance diagram for AbstractDownloadExtensionUpdate:
AbstractUpdate Compatibility6ExtractionUpdate MediaceExtractionUpdate OpenidExtractionUpdate

Protected Member Functions

 getExtensionDetails ($extensionKey)
 
 fetchExtension ($extensionKey, $version)
 
 fetchUrl ($url)
 
- Protected Member Functions inherited from 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 AbstractUpdate
 $title
 
 $identifier
 

Additional Inherited Members

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

Detailed Description

Download extension from TER

Definition at line 27 of file AbstractDownloadExtensionUpdate.php.

Member Function Documentation

fetchExtension (   $extensionKey,
  $version 
)
protected

Fetch extension from repository

Parameters
string$extensionKeyThe extension key to fetch
string$versionThe version to fetch
Exceptions
\InvalidArgumentException
Returns
string T3X file content

Definition at line 127 of file AbstractDownloadExtensionUpdate.php.

References $filename, $url, and AbstractDownloadExtensionUpdate\fetchUrl().

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
\Exception
\InvalidArgumentException
Returns
string File content

Definition at line 152 of file AbstractDownloadExtensionUpdate.php.

References $url, and GeneralUtility\getUrl().

Referenced by AbstractDownloadExtensionUpdate\fetchExtension().

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 109 of file AbstractDownloadExtensionUpdate.php.

Member Data Documentation

$extensionDetails = []
protected

Definition at line 39 of file AbstractDownloadExtensionUpdate.php.

$repositoryUrl = 'https://typo3.org/fileadmin/ter/@filename'
protected

Definition at line 44 of file AbstractDownloadExtensionUpdate.php.

$title = 'Install an Extension from the Extension Repository'
protected

Definition at line 33 of file AbstractDownloadExtensionUpdate.php.