FilePersistenceSlot

final class \TYPO3\CMS\Form\Slot\FilePersistenceSlot

A PSR-14 event listener for various FAL related functionality.

Tags

deprecated:

Remove in v16 along with the FileFormsToDatabaseUpgradeWizard

Table of Contents

Constants

COMMAND_FILE_ADD  : string = 'fileAdd'
COMMAND_FILE_CREATE  : string = 'fileCreate'
COMMAND_FILE_MOVE  : string = 'fileMove'
COMMAND_FILE_RENAME  : string = 'fileRename'
COMMAND_FILE_REPLACE  : string = 'fileReplace'
COMMAND_FILE_SET_CONTENTS  : string = 'fileSetContents'

Methods

__construct()  : mixed
allowInvocation()  : bool
Allows invocation for a particular combination of command and file identifier. Commands providing new content have to submit a HMAC signature on the content as well.
getContentSignature()  : string
onPreFileAdd()  : void
onPreFileCreate()  : void
onPreFileMove()  : void
onPreFileRename()  : void
onPreFileReplace()  : void
onPreFileSetContents()  : void

Constants

COMMAND_FILE_ADD

public string COMMAND_FILE_ADD = 'fileAdd'

COMMAND_FILE_CREATE

public string COMMAND_FILE_CREATE = 'fileCreate'

COMMAND_FILE_MOVE

public string COMMAND_FILE_MOVE = 'fileMove'

COMMAND_FILE_RENAME

public string COMMAND_FILE_RENAME = 'fileRename'

COMMAND_FILE_REPLACE

public string COMMAND_FILE_REPLACE = 'fileReplace'

COMMAND_FILE_SET_CONTENTS

public string COMMAND_FILE_SET_CONTENTS = 'fileSetContents'

Methods

allowInvocation()

Allows invocation for a particular combination of command and file identifier. Commands providing new content have to submit a HMAC signature on the content as well.

public allowInvocation(string $command, string $combinedFileIdentifier[, string|null $contentSignature = null ]) : bool

Parameters

$command : string
$combinedFileIdentifier : string
$contentSignature : string|null = null

Tags

see
getContentSignature

Return values

bool

getContentSignature()

public getContentSignature(string $content) : string

Parameters

$content : string

Return values

string
On this page