FileCreateOrUpdateEvent
class FileCreateOrUpdateEvent extends ActionEvent
Event fired when a file is created or updated.
Methods
__construct(
int $parentId)
Constructor
$this
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
getOldModel()
Get old model value
Details
in
ActionEvent at line 30
__set($name, $value)
in
ActionEvent at line 35
__get($name)
in
ActionEvent at line 44
bindForm(
Form $form)
at line 48
__construct(
int $parentId)
Constructor
at line 60
$this
setModel(
FileModelInterface $model)
Set file to save
at line 72
FileModelInterface
getModel()
Get file being saved
at line 84
$this
setParentId(
int $parentId)
Set Document parent id
at line 96
int
getParentId()
Get Document parent id
at line 108
$this
setUploadedFile(
UploadedFile|null $uploadedFile)
Set uploaded file
at line 120
UploadedFile|null
getUploadedFile()
Get uploaded file
at line 132
$this
setParentName(
string $parentName)
Set parent name
at line 144
string
getParentName()
Get parent name
at line 154
setOldModel(
FileModelInterface $oldModel)
Set old model value
at line 164
FileModelInterface
getOldModel()
Get old model value