class DocumentCreateOrUpdateEvent extends FileCreateOrUpdateEvent

Created by JetBrains PhpStorm.

Date: 9/18/13 Time: 3:56 PM

Occurring when an Document is saved

Methods

__set($name, $value)

No description

__get($name)

No description

bindForm( Form $form)

No description

__construct( string $documentType, 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

setLocale( mixed $locale)

No description

mixed
getLocale()

No description

$this
setModelDocument($document)

Set Document to save

getModelDocument()

Get Document being saved

$this
setDocumentType( string $documentType)

Set picture type

string
getDocumentType()

Get picture type

setOldModelDocument( FileModelInterface $oldModelDocument)

Set old model value

getOldModelDocument()

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 39
__construct( string $documentType, int $parentId)

Constructor

Parameters

string $documentType Document type ex : FileManager::TYPE_CATEGORY
int $parentId file parent id

$this setModel( FileModelInterface $model)

Set file to save

Parameters

FileModelInterface $model Document to save

Return Value

$this

FileModelInterface getModel()

Get file being saved

Return Value

FileModelInterface

$this setParentId( int $parentId)

Set Document parent id

Parameters

int $parentId Document parent id

Return Value

$this

int getParentId()

Get Document parent id

Return Value

int

$this setUploadedFile( UploadedFile|null $uploadedFile)

Set uploaded file

Parameters

UploadedFile|null $uploadedFile File being uploaded

Return Value

$this

UploadedFile|null getUploadedFile()

Get uploaded file

Return Value

UploadedFile|null

$this setParentName( string $parentName)

Set parent name

Parameters

string $parentName Parent name

Return Value

$this

string getParentName()

Get parent name

Return Value

string

setOldModel( FileModelInterface $oldModel)

Set old model value

Parameters

FileModelInterface $oldModel

FileModelInterface getOldModel()

Get old model value

Return Value

FileModelInterface

at line 48
setLocale( mixed $locale)

Parameters

mixed $locale

at line 57
mixed getLocale()

Return Value

mixed

at line 70
$this setModelDocument($document)

Set Document to save

Parameters

$document FileModelInterface

Return Value

$this

at line 81
FileModelInterface getModelDocument()

Get Document being saved

Return Value

FileModelInterface

at line 94
$this setDocumentType( string $documentType)

Set picture type

Parameters

string $documentType Document type

Return Value

$this

at line 105
string getDocumentType()

Get picture type

Return Value

string

at line 116
setOldModelDocument( FileModelInterface $oldModelDocument)

Set old model value

Parameters

FileModelInterface $oldModelDocument

at line 127
FileModelInterface getOldModelDocument()

Get old model value

Return Value

FileModelInterface