TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility Class Reference
Inheritance diagram for TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility:
TYPO3\CMS\Lang\Utility\Connection\Ter

Public Member Functions

 fetchExtension ($extensionKey, $version, $expectedMd5, $mirrorUrl)
 
 decodeServerData ($externalData)
 
 decodeExchangeData ($stream)
 

Public Attributes

 $wsdlUrl
 

Detailed Description

TER2 connection handling class for the TYPO3 Extension Manager.

It contains methods for downloading and uploading extensions and related code

Author
Karsten Dambekalns karst.nosp@m.en@t.nosp@m.ypo3..nosp@m.org
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 26 of file TerUtility.php.

Member Function Documentation

◆ decodeExchangeData()

TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility::decodeExchangeData (   $stream)

Decodes extension upload array. This kind of data is when an extension is uploaded to TER

Parameters
string$streamData stream
Exceptions
ExtensionManagerException
Returns
array Array with result on success, otherwise an error string.

Definition at line 103 of file TerUtility.php.

Referenced by TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility\fetchExtension().

◆ decodeServerData()

TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility::decodeServerData (   $externalData)

Decode server data This is information like the extension list, extension information etc., return data after uploads (new em_conf) On success, returns an array with data array and stats array as key 0 and 1.

Parameters
string$externalDataData stream from remove server
Exceptions
ExtensionManagerException
Returns
array $externalData
See also
fetchServerData(), processRepositoryReturnData()

Definition at line 72 of file TerUtility.php.

◆ fetchExtension()

TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility::fetchExtension (   $extensionKey,
  $version,
  $expectedMd5,
  $mirrorUrl 
)

Fetches an extension from the given mirror

Parameters
string$extensionKeyExtension Key
string$versionVersion to install
string$expectedMd5Expected MD5 hash of extension file
string$mirrorUrlURL of mirror to use
Exceptions
ExtensionManagerException
Returns
array T3X data

Definition at line 43 of file TerUtility.php.

References TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility\decodeExchangeData(), TYPO3\CMS\Core\Utility\GeneralUtility\getUrl(), and TYPO3\CMS\Core\Utility\GeneralUtility\strtolower().

Member Data Documentation

◆ $wsdlUrl

TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility::$wsdlUrl

Definition at line 31 of file TerUtility.php.