메소드 | 설명 | |
---|---|---|
deleteFile ( |
Delete a File from the database and storage. | |
getAttachmentFromStorage ( |
Get an attachment from storage. | |
saveNewFromLink ( string $name, string $link, integer $page_id ) : |
Save a new File attachment from a given link and name. | |
saveNewUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, integer $page_id ) : |
Store a new attachment upon user upload. | |
saveUpdatedUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, |
Store a upload, saving to a file and deleting any existing uploads attached to that file. | |
updateFile ( |
Update the details of a file. | |
updateFileOrderWithinPage ( array $attachmentList, $pageId ) | Updates the file ordering for a listing of attached files. |
메소드 | 설명 | |
---|---|---|
deleteFileInStorage ( |
Delete a file from the filesystem it sits on. | |
putFileInStorage ( $attachmentName, Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile ) : string | Store a file in storage with the given filename |
메소드 | 설명 | |
---|---|---|
getStorageBasePath ( ) : string | Get the file storage base path, amended for storage type. |
public deleteFile ( |
||
$attachment |
protected deleteFileInStorage ( |
||
$attachment |
public getAttachmentFromStorage ( |
||
$attachment | ||
리턴 | string |
protected putFileInStorage ( $attachmentName, Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile ) : string | ||
$attachmentName | ||
$uploadedFile | Symfony\Component\HttpFoundation\File\UploadedFile | |
리턴 | string |
public saveNewUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, integer $page_id ) : |
||
$uploadedFile | Symfony\Component\HttpFoundation\File\UploadedFile | |
$page_id | integer | |
리턴 |
public saveUpdatedUpload ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadedFile, |
||
$uploadedFile | Symfony\Component\HttpFoundation\File\UploadedFile | |
$attachment | ||
리턴 |
public updateFile ( |
||
$attachment | ||
$requestData | ||
리턴 |
public updateFileOrderWithinPage ( array $attachmentList, $pageId ) | ||
$attachmentList | array | |
$pageId |