Method | Description | |
---|---|---|
__construct ( array $config, |
||
addAttachmentToArticle ( |
||
getAttachmentUrl ( $attachment ) | ||
getStorageLocation ( |
Get attachment storage location | |
getUnedited ( integer $userId ) : array | Return the ids of the file not edited yet. | |
remove ( |
||
removeAttachmentFormArticle ( |
||
upload ( Symfony\Component\HttpFoundation\File\UploadedFile $file, string $descriptionText, |
Upload new attachment |
Method | Description | |
---|---|---|
fillAttachment ( |
||
getFileName ( |
Get new attachment file name | |
getLevel1DirectoryName ( |
Get fist level directory name | |
getLevel2DirectoryName ( |
Get second level directory name | |
makeDirectories ( |
Make directories for attachments |
public __construct ( array $config, |
||
$config | array | |
$em | ||
$router | ||
$userService |
public addAttachmentToArticle ( |
||
$article | ||
$attachment |
public getStorageLocation ( |
||
$attachment | ||
return | string |
public getUnedited ( integer $userId ) : array | ||
$userId | integer | User id |
return | array |
public remove ( |
||
$attachment |
public removeAttachmentFormArticle ( |
||
$article | ||
$attachment |
public upload ( Symfony\Component\HttpFoundation\File\UploadedFile $file, string $descriptionText, |
||
$file | Symfony\Component\HttpFoundation\File\UploadedFile | |
$descriptionText | string | |
$language | ||
$attributes | array | |
$attachment | ||
return |