TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
DownloadQueue Class Reference
Inheritance diagram for DownloadQueue:
SingletonInterface

Public Member Functions

 injectListUtility (\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility)
 
 addExtensionToQueue (\TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension, $stack= 'download')
 
 getExtensionQueue ()
 
 removeExtensionFromQueue (\TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension, $stack= 'download')
 
 addExtensionToInstallQueue ($extension)
 
 removeExtensionFromInstallQueue ($extensionKey)
 
 addExtensionToCopyQueue ($extensionKey, $sourceFolder)
 
 removeExtensionFromCopyQueue ($extensionKey)
 
 getExtensionInstallStorage ()
 
 getExtensionCopyStorage ()
 

Protected Attributes

 $extensionStorage = array()
 
 $extensionInstallStorage = array()
 
 $extensionCopyStorage = array()
 
 $listUtility
 

Detailed Description

Download Queue - storage for extensions to be downloaded

Definition at line 22 of file DownloadQueue.php.

Member Function Documentation

addExtensionToCopyQueue (   $extensionKey,
  $sourceFolder 
)

Adds an extension to the copy queue for later copying

Parameters
string$extensionKey
string$sourceFolder
Returns
void

Definition at line 147 of file DownloadQueue.php.

addExtensionToInstallQueue (   $extension)

Adds an extension to the install queue for later installation

Parameters
Extension$extension
Returns
void

Definition at line 122 of file DownloadQueue.php.

addExtensionToQueue ( \TYPO3\CMS\Extensionmanager\Domain\Model\Extension  $extension,
  $stack = 'download' 
)

Adds an extension to the download queue. If the extension was already requested in a different version an exception is thrown.

Parameters
\TYPO3\CMS\Extensionmanager\Domain\Model\Extension$extension
string$stack
Exceptions
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException
Returns
void

Definition at line 68 of file DownloadQueue.php.

getExtensionCopyStorage ( )

Gets the extension copy queue

Returns
array

Definition at line 180 of file DownloadQueue.php.

References DownloadQueue\$extensionCopyStorage.

getExtensionInstallStorage ( )

Gets the extension installation queue

Returns
array

Definition at line 170 of file DownloadQueue.php.

References DownloadQueue\$extensionInstallStorage.

getExtensionQueue ( )
Returns
array

Definition at line 91 of file DownloadQueue.php.

References DownloadQueue\$extensionStorage.

injectListUtility ( \TYPO3\CMS\Extensionmanager\Utility\ListUtility  $listUtility)
Parameters
\TYPO3\CMS\Extensionmanager\Utility\ListUtility$listUtility

Definition at line 53 of file DownloadQueue.php.

References DownloadQueue\$listUtility.

removeExtensionFromCopyQueue (   $extensionKey)

Remove an extension from extension copy storage

Parameters
$extensionKey
Returns
void

Definition at line 158 of file DownloadQueue.php.

removeExtensionFromInstallQueue (   $extensionKey)

Removes an extension from the install queue

Parameters
string$extensionKey
Returns
void

Definition at line 133 of file DownloadQueue.php.

removeExtensionFromQueue ( \TYPO3\CMS\Extensionmanager\Domain\Model\Extension  $extension,
  $stack = 'download' 
)

Remove an extension from download queue

Parameters
\TYPO3\CMS\Extensionmanager\Domain\Model\Extension$extension
string$stackStack to remove extension from (download, update or install)
Exceptions
\TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException
Returns
void

Definition at line 104 of file DownloadQueue.php.

Member Data Documentation

$extensionCopyStorage = array()
protected

Definition at line 43 of file DownloadQueue.php.

Referenced by DownloadQueue\getExtensionCopyStorage().

$extensionInstallStorage = array()
protected

Definition at line 36 of file DownloadQueue.php.

Referenced by DownloadQueue\getExtensionInstallStorage().

$extensionStorage = array()
protected

Definition at line 29 of file DownloadQueue.php.

Referenced by DownloadQueue\getExtensionQueue().

$listUtility
protected

Definition at line 48 of file DownloadQueue.php.

Referenced by DownloadQueue\injectListUtility().