PHP Класс Acme\DemoBundle\Controller\TodoController

Автор: Gordon Franke ([email protected])
Наследование: extends FOS\RestBundle\Controller\FOSRestController
Показать файл Открыть проект

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

Метод Описание
deleteTodosAction ( integer $id ) : Response Removes a todo.
editTodosAction ( integer $id ) : Response Presents the form to use to update an existing todo.
getTodoAction ( integer $id ) : Response Get a single todo.
getTodosAction ( ) List all todos.
newTodoAction ( ) : Symfony\Component\Form\FormTypeInterface Presents the form to use to create a new todo.
postTodosAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\RouteRedirectView Creates a new todo from the submitted data.
putTodosAction ( Request $request, integer $id ) : Response Update existing todo from the submitted data or create a new todo at a specific location.
removeTodosAction ( integer $id ) : Response Removes a todo.

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

deleteTodosAction() публичный метод

Removes a todo.
public deleteTodosAction ( integer $id ) : Response
$id integer the todo id
Результат Symfony\Component\HttpFoundation\Response

editTodosAction() публичный метод

Presents the form to use to update an existing todo.
public editTodosAction ( integer $id ) : Response
$id integer the todo id
Результат Symfony\Component\HttpFoundation\Response

getTodoAction() публичный метод

Get a single todo.
public getTodoAction ( integer $id ) : Response
$id integer the todo id
Результат Symfony\Component\HttpFoundation\Response

getTodosAction() публичный метод

List all todos.
public getTodosAction ( )

newTodoAction() публичный метод

Presents the form to use to create a new todo.
public newTodoAction ( ) : Symfony\Component\Form\FormTypeInterface
Результат Symfony\Component\Form\FormTypeInterface

postTodosAction() публичный метод

Creates a new todo from the submitted data.
public postTodosAction ( Request $request ) : Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\RouteRedirectView
$request Symfony\Component\HttpFoundation\Request the request object
Результат Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\View\RouteRedirectView

putTodosAction() публичный метод

Update existing todo from the submitted data or create a new todo at a specific location.
public putTodosAction ( Request $request, integer $id ) : Response
$request Symfony\Component\HttpFoundation\Request the request object
$id integer the todo id
Результат Symfony\Component\HttpFoundation\Response

removeTodosAction() публичный метод

Removes a todo.
public removeTodosAction ( integer $id ) : Response
$id integer the todo id
Результат Symfony\Component\HttpFoundation\Response