PHP 클래스 Acme\DemoBundle\Controller\TodoController

저자: Gordon Franke ([email protected])
상속: extends FOS\RestBundle\Controller\FOSRestController
파일 보기 프로젝트 열기: bayne/symfony-angular-todomvc

공개 메소드들

메소드 설명
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