PHP Class PartKeepr\UploadedFileBundle\Controller\FileController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: partkeepr/PartKeepr

Public Methods

Method Description
getFileAction ( integer $id ) : Response Returns the file. Directly sends the response to the browser.
getMimeTypeIconAction ( integer $id ) : Response Returns the mimetype icon for an uploaded file.

Protected Methods

Method Description
getEntityClass ( ) : string Returns the entity class (FQDN) for operation.

Method Details

getEntityClass() abstract protected method

Returns the entity class (FQDN) for operation.
abstract protected getEntityClass ( ) : string
return string

getFileAction() public method

Returns the file. Directly sends the response to the browser.
public getFileAction ( integer $id ) : Response
$id integer The ID of the file
return Symfony\Component\HttpFoundation\Response

getMimeTypeIconAction() public method

Returns the mimetype icon for an uploaded file.
public getMimeTypeIconAction ( integer $id ) : Response
$id integer The ID of the entity
return Symfony\Component\HttpFoundation\Response