DownloadQueue implements SingletonInterface
Download Queue - storage for extensions to be downloaded
This class is a specific domain model implementation and is not part of the Public TYPO3 API.
Table of Contents
Interfaces
- SingletonInterface
- "empty" interface for singletons (marker interface pattern)
Properties
- $extensionInstallStorage : array<string|int, mixed>
- Storage for extensions to be installed
- $extensionStorage : array<string, array<string|int, string>>
- Storage for extensions to be downloaded
Methods
- addExtensionToInstallQueue() : void
- Adds an extension to the install queue for later installation
- addExtensionToQueue() : void
- Adds an extension to the download queue.
- getExtensionInstallStorage() : array<string|int, mixed>
- Gets the extension installation queue
- getExtensionQueue() : array<string|int, mixed>
- isQueueEmpty() : bool
- Return whether the queue contains extensions or not
- removeExtensionFromQueue() : void
- Remove an extension from download queue
- resetExtensionInstallStorage() : array<string|int, mixed>
- Resets the install queue and returns the old extensions
- resetExtensionQueue() : array<string|int, mixed>
- Resets the extension queue and returns old extensions
Properties
$extensionInstallStorage
Storage for extensions to be installed
protected
array<string|int, mixed>
$extensionInstallStorage
= []
$extensionStorage
Storage for extensions to be downloaded
protected
array<string, array<string|int, string>>
$extensionStorage
= []
Methods
addExtensionToInstallQueue()
Adds an extension to the install queue for later installation
public
addExtensionToInstallQueue(Extension $extension) : void
Parameters
- $extension : Extension
addExtensionToQueue()
Adds an extension to the download queue.
public
addExtensionToQueue(Extension $extension[, string $stack = 'download' ]) : void
If the extension was already requested in a different version an exception is thrown.
Parameters
- $extension : Extension
- $stack : string = 'download'
getExtensionInstallStorage()
Gets the extension installation queue
public
getExtensionInstallStorage() : array<string|int, mixed>
Return values
array<string|int, mixed>getExtensionQueue()
public
getExtensionQueue() : array<string|int, mixed>
Return values
array<string|int, mixed>isQueueEmpty()
Return whether the queue contains extensions or not
public
isQueueEmpty(string $stack) : bool
Parameters
- $stack : string
-
either "download" or "update"
Return values
boolremoveExtensionFromQueue()
Remove an extension from download queue
public
removeExtensionFromQueue(Extension $extension[, string $stack = 'download' ]) : void
Parameters
- $extension : Extension
- $stack : string = 'download'
-
Stack to remove extension from (download or update)
resetExtensionInstallStorage()
Resets the install queue and returns the old extensions
public
resetExtensionInstallStorage() : array<string|int, mixed>
Return values
array<string|int, mixed>resetExtensionQueue()
Resets the extension queue and returns old extensions
public
resetExtensionQueue([string|null $stack = null ]) : array<string|int, mixed>
Parameters
- $stack : string|null = null
-
if null, all stacks are reset