AttachmentMedia

Extends \Shopware\Components\Model\ModelEntity

Partly copied from Shopware\Models\Media\Media

ORM\Entity
ORM\Table

(name="pickware_erp_attachment_media")

ORM\HasLifecycleCallbacks

()

package

Default

Methods

getAlbumId

getAlbumId() : integer

Response

integer

getCreated

getCreated() : \DateTimeInterface

Response

\DateTimeInterface

getDescription

getDescription() : string

Response

string

getExtension

getExtension() : string

Response

string

getFile

getFile() : \Symfony\Component\HttpFoundation\File\File

Response

\Symfony\Component\HttpFoundation\File\File

getFileName

getFileName() : string

Response

string

getFileSize

getFileSize() : integer

Response

integer

getId

getId() : integer

Response

integer

getName

getName() : string

Response

string

getPath

getPath() : string

Response

string

getType

getType() : string

Response

string

getUserId

getUserId() : integer

Response

integer

Removes the media files from the file system

onRemove() 
ORM\PostRemove

()

Moves the uploaded file into the correct directory.

onSave() 
ORM\PrePersist

()

setAlbumId

setAlbumId(integer $albumId) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setCreated

setCreated(\DateTimeInterface $created) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

Arguments

$created

\DateTimeInterface

Response

\Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setDescription

setDescription(string $description) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setExtension

setExtension(string $extension) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setFile

setFile(\Symfony\Component\HttpFoundation\File\File $file) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

Arguments

$file

\Symfony\Component\HttpFoundation\File\File

Response

\Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setFileSize

setFileSize(integer $fileSize) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setName

setName(string $name) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setPath

setPath(string $path) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setType

setType(string $type) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

setUserId

setUserId(integer $userId) : \Shopware\CustomModels\ViisonPickwareERP\AttachmentMedia\AttachmentMedia

Constants

DENYLIST

DENYLIST

ID

ID