‪TYPO3CMS  11.5
TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent Class Reference

Public Member Functions

 __construct (array $command, $result, string $conflictMode)
 
mixed getResult ()
 
string getConflictMode ()
 

Public Attributes

array< string, function getCommand():array { return $this-> command
 

Private Attributes

array $command
 
 $result
 
string $conflictMode
 

Detailed Description

Event that is triggered after a file command has been processed. Can be used to perform additional tasks for specific commands. For example, trigger a custom indexer after a file has been uploaded.

Definition at line 25 of file AfterFileCommandProcessedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getConflictMode()

string TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::getConflictMode ( )
Returns
‪string The current conflict mode
See also
DuplicationBehavior

Definition at line 66 of file AfterFileCommandProcessedEvent.php.

References TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent\$conflictMode.

◆ getResult()

mixed TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::getResult ( )
Returns
‪mixed The result - Depending on the performed action, this could e.g. be a File or just a boolean.

Definition at line 57 of file AfterFileCommandProcessedEvent.php.

References TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent\$result.

Member Data Documentation

◆ $command

array TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::$command
private

◆ $conflictMode

string TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::$conflictMode
private

◆ $result

TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::$result
private

◆ command

array<string, function getCommand(): array { return $this-> TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent::command

A single command, e.g.::

'upload' => [
    'target' => '1:/some/folder/'
    'data' => '1'
]
Returns
‪array<string, array<string, mixed>>

Definition at line 50 of file AfterFileCommandProcessedEvent.php.

Referenced by TYPO3\CMS\Core\Resource\Event\AfterFileCommandProcessedEvent\__construct().