PHP Класс Newscoop\GimmeBundle\Controller\ImagesController

Наследование: extends FOS\RestBundle\Controller\FOSRestController
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
processForm ( Request $request, integer $image = null ) : Form Process image form

Описание методов

createImageAction() публичный Метод

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
Результат Form

deleteImageAction() публичный Метод

Delete image
public deleteImageAction ( Request $request, $number ) : Form
$request Symfony\Component\HttpFoundation\Request
Результат Form

getImageAction() публичный Метод

Get image
public getImageAction ( Request $request, $number ) : Form
$request Symfony\Component\HttpFoundation\Request
Результат Form

getImagesAction() публичный Метод

Get all images
public getImagesAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
Результат array

getImagesForArticleAction() публичный Метод

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

searchImagesAction() публичный Метод

Search for images
public searchImagesAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
Результат array

updateImageAction() публичный Метод

Update image
public updateImageAction ( Request $request, $number ) : Form
$request Symfony\Component\HttpFoundation\Request
Результат Form