FileController
class FileController extends BaseAdminController
Created by JetBrains PhpStorm.
Date: 8/19/13 Time: 3:24 PM
Control View and Action (Model) via Events Control Files and Images
Traits
Constants
EMPTY_FORM_NAME |
|
CONTROLLER_TYPE |
|
TEMPLATE_404 |
|
MODULE_RIGHT |
|
Methods
return an instance of \Swift_Mailer with good Transporter configured.
No description
Helper to append a message to the admin log.
This method process the rendering of view called from an admin page
Get the FileManager
Manage how a file collection has to be saved
Process file uploaded
Process file uploaded
Manage how a image collection has to be saved
Manage how a document collection has to be saved
Manage how a image list will be displayed in AJAX
Manage how a document list will be displayed in AJAX
Manage how an image list will be uploaded in AJAX
Manage how an document list will be uploaded in AJAX
Manage how an image is viewed
Manage how an document is viewed
Manage how an image is updated
Manage how an document is updated
Manage how a file has to be deleted
Manage how an image has to be deleted (AJAX)
Manage how a document has to be deleted (AJAX)
No description
No description
No description
No description
No description
No description
Details
in
BaseController at line 128
EventDispatcher
getDispatcher()
Return the event dispatcher,
in
BaseController at line 138
Translator
getTranslator()
return the Translator
in
BaseController at line 545
MailerFactory
getMailer()
return an instance of \Swift_Mailer with good Transporter configured.
in
BaseController at line 569
BaseForm
createForm($name, $type = 'form',
array $data = array(),
array $options = array())
in
BaseController at line 589
ContainerInterface
getContainer()
in
BaseAdminController at line 90
string
getControllerType()
in
BaseAdminController at line 52
adminLogAppend($resource, $action, $message, $resourceId = null)
Helper to append a message to the admin log.
in
BaseAdminController at line 71
Response
processTemplateAction(
string $template)
This method process the rendering of view called from an admin page
at line 55
FileManager
getFileManager()
Get the FileManager
at line 70
Response
saveFileAjaxAction(
int $parentId,
string $parentType,
string $objectType,
array $validMimeTypes = array(),
array $extBlackList = array())
Manage how a file collection has to be saved
at line 119
ResponseRest
processImage(
UploadedFile $fileBeingUploaded,
int $parentId,
string $parentType,
string $objectType,
array $validMimeTypes = array(),
array $extBlackList = array())
Process file uploaded
at line 145
ResponseRest
processFile(
UploadedFile $fileBeingUploaded,
int $parentId,
string $parentType,
string $objectType,
array $validMimeTypes = array(),
array $extBlackList = array())
Process file uploaded
at line 269
Response
saveImageAjaxAction(
int $parentId,
string $parentType)
Manage how a image collection has to be saved
at line 289
Response
saveDocumentAjaxAction(
int $parentId,
string $parentType)
Manage how a document collection has to be saved
at line 309
Response
getImageListAjaxAction(
int $parentId,
string $parentType)
Manage how a image list will be displayed in AJAX
at line 326
Response
getDocumentListAjaxAction(
int $parentId,
string $parentType)
Manage how a document list will be displayed in AJAX
at line 343
Response
getImageFormAjaxAction(
int $parentId,
string $parentType)
Manage how an image list will be uploaded in AJAX
at line 360
Response
getDocumentFormAjaxAction(
int $parentId,
string $parentType)
Manage how an document list will be uploaded in AJAX
at line 377
Response
viewImageAction(
int $imageId,
string $parentType)
Manage how an image is viewed
at line 411
Response
viewDocumentAction(
int $documentId,
string $parentType)
Manage how an document is viewed
at line 564
Response
updateImageAction(
int $imageId,
string $parentType)
Manage how an image is updated
at line 592
Response
updateDocumentAction(
int $documentId,
string $parentType)
Manage how an document is updated
at line 622
Response
deleteFileAction(
int $fileId,
string $parentType,
string $objectType,
string $eventName)
Manage how a file has to be deleted
at line 696
Response
deleteImageAction(
int $imageId,
string $parentType)
Manage how an image has to be deleted (AJAX)
at line 709
Response
deleteDocumentAction(
int $documentId,
string $parentType)
Manage how a document has to be deleted (AJAX)