class FileCreateOrUpdateEvent extends ActionEvent

Event fired when a file is created or updated.

Methods

__set($name, $value)

No description

__get($name)

No description

bindForm( Form $form)

No description

__construct( int $parentId)

Constructor

$this
setModel( FileModelInterface $model)

Set file to save

getModel()

Get file being saved

$this
setParentId( int $parentId)

Set Document parent id

int
getParentId()

Get Document parent id

$this
setUploadedFile( UploadedFile|null $uploadedFile)

Set uploaded file

UploadedFile|null
getUploadedFile()

Get uploaded file

$this
setParentName( string $parentName)

Set parent name

string
getParentName()

Get parent name

setOldModel( FileModelInterface $oldModel)

Set old model value

getOldModel()

Get old model value

Details

in ActionEvent at line 30
__set($name, $value)

Parameters

$name
$value

in ActionEvent at line 35
__get($name)

Parameters

$name

in ActionEvent at line 44
bindForm( Form $form)

Parameters

Form $form

at line 48
__construct( int $parentId)

Constructor

Parameters

int $parentId file parent id

at line 60
$this setModel( FileModelInterface $model)

Set file to save

Parameters

FileModelInterface $model Document to save

Return Value

$this

at line 72
FileModelInterface getModel()

Get file being saved

Return Value

FileModelInterface

at line 84
$this setParentId( int $parentId)

Set Document parent id

Parameters

int $parentId Document parent id

Return Value

$this

at line 96
int getParentId()

Get Document parent id

Return Value

int

at line 108
$this setUploadedFile( UploadedFile|null $uploadedFile)

Set uploaded file

Parameters

UploadedFile|null $uploadedFile File being uploaded

Return Value

$this

at line 120
UploadedFile|null getUploadedFile()

Get uploaded file

Return Value

UploadedFile|null

at line 132
$this setParentName( string $parentName)

Set parent name

Parameters

string $parentName Parent name

Return Value

$this

at line 144
string getParentName()

Get parent name

Return Value

string

at line 154
setOldModel( FileModelInterface $oldModel)

Set old model value

Parameters

FileModelInterface $oldModel

at line 164
FileModelInterface getOldModel()

Get old model value

Return Value

FileModelInterface