PHP Класс RestBundle\Controller\RestController

Автор: Alfonso M. García Astorga ([email protected])
Наследование: extends FOS\RestBundle\Controller\FOSRestController
Показать файл Открыть проект

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

Метод Описание
deleteCommentAction ( integer $id ) : FOS\RestBundle\View\View Removes a comment.
deletePostAction ( integer $id ) : FOS\RestBundle\View\View Removes a post.
editCommentAction ( Request $request, Request $id ) : FOS\RestBundle\View\View | Response Partial update of an existing Comment.
editCommentFormAction ( $id ) : FOS\RestBundle\View\View Presents the form for partial update of an existing Comment.
editPostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View Partial update of an existing Post.
editPostFormAction ( $id ) : FOS\RestBundle\View\View Presents the form for partial update of an existing Post.
getCommentAction ( integer $id ) : FOS\RestBundle\View\View Get a specific comment.
getCommentsAction ( ) : FOS\RestBundle\View\View List all comments.
getCommentsFromPostAction ( integer $id ) : FOS\RestBundle\View\View List all comments from a post.
getPostAction ( integer $id ) : FOS\RestBundle\View\View Get a specific post.
getPostsAction ( ) : FOS\RestBundle\View\View List all posts.
indexApiAction ( ) : FOS\RestBundle\View\View List all resources available.
newCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View Creates a new comment from the submitted data.
newCommentFormAction ( ) : Form Presents the form to use to create a new comment.
newPostAction ( Request $request ) : FOS\RestBundle\View\View Creates a new post from the submitted data.
newPostFormAction ( ) : Form Presents the form to use to create a new post.
updateCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View | Response Update existing comment from the submitted data or create a new comment at a specific location.
updatePostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View Update existing post from the submitted data or create a new post at a specific location.

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

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

Removes a comment.
public deleteCommentAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
Результат FOS\RestBundle\View\View

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

Removes a post.
public deletePostAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
Результат FOS\RestBundle\View\View

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

Partial update of an existing Comment.
public editCommentAction ( Request $request, Request $id ) : FOS\RestBundle\View\View | Response
$request Symfony\Component\HttpFoundation\Request
$id Symfony\Component\HttpFoundation\Request
Результат FOS\RestBundle\View\View | Symfony\Component\HttpFoundation\Response

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

Presents the form for partial update of an existing Comment.
public editCommentFormAction ( $id ) : FOS\RestBundle\View\View
$id
Результат FOS\RestBundle\View\View

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

Partial update of an existing Post.
public editPostAction ( Request $request, integer $id ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
$id integer
Результат FOS\RestBundle\View\View

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

Presents the form for partial update of an existing Post.
public editPostFormAction ( $id ) : FOS\RestBundle\View\View
$id
Результат FOS\RestBundle\View\View

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

Get a specific comment.
public getCommentAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
Результат FOS\RestBundle\View\View

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

List all comments.
public getCommentsAction ( ) : FOS\RestBundle\View\View
Результат FOS\RestBundle\View\View

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

List all comments from a post.
public getCommentsFromPostAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
Результат FOS\RestBundle\View\View

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

Get a specific post.
public getPostAction ( integer $id ) : FOS\RestBundle\View\View
$id integer
Результат FOS\RestBundle\View\View

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

List all posts.
public getPostsAction ( ) : FOS\RestBundle\View\View
Результат FOS\RestBundle\View\View

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

List all resources available.
public indexApiAction ( ) : FOS\RestBundle\View\View
Результат FOS\RestBundle\View\View

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

Creates a new comment from the submitted data.
public newCommentAction ( Request $request, integer $id ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
$id integer
Результат FOS\RestBundle\View\View

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

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

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

Creates a new post from the submitted data.
public newPostAction ( Request $request ) : FOS\RestBundle\View\View
$request Symfony\Component\HttpFoundation\Request
Результат FOS\RestBundle\View\View

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

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

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

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

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

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