PHP Class Newscoop\GimmeBundle\Controller\ImagesController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
createImageAction ( Request $request ) : Form Create new image
deleteImageAction ( Request $request, $number ) : Form Delete image
getImageAction ( Request $request, $number ) : Form Get image
getImagesAction ( Request $request ) : array Get all images
getImagesForArticleAction ( $number, $language ) Get all images for specified article
searchImagesAction ( Request $request ) : array Search for images
updateImageAction ( Request $request, $number ) : Form Update image

Private Methods

Method Description
processForm ( Request $request, integer $image = null ) : Form Process image form

Method Details

createImageAction() public method

Request: Data should be send as multiparts formdata. Response: Succesful response will contain "X-Location" header with path to new resource.
public createImageAction ( Request $request ) : Form
$request Symfony\Component\HttpFoundation\Request
return Form

deleteImageAction() public method

Delete image
public deleteImageAction ( Request $request, $number ) : Form
$request Symfony\Component\HttpFoundation\Request
return Form

getImageAction() public method

Get image
public getImageAction ( Request $request, $number ) : Form
$request Symfony\Component\HttpFoundation\Request
return Form

getImagesAction() public method

Get all images
public getImagesAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

getImagesForArticleAction() public method

Get all images for specified article
public getImagesForArticleAction ( $number, $language )

searchImagesAction() public method

Search for images
public searchImagesAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

updateImageAction() public method

Update image
public updateImageAction ( Request $request, $number ) : Form
$request Symfony\Component\HttpFoundation\Request
return Form