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

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

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

Метод Описание
createTopicAction ( Request $request, $articleNumber = null, $languageCode = null ) : Form Create new Topic
deleteTopicAction ( Request $request, $id ) Delete topic
getArticlesTopicsAction ( $number, $language ) Get article's topics
getTopicByIdAction ( $id ) Get single topic
getTopicsAction ( Request $request ) : array Get all topics
getTopicsArticlesAction ( Request $request, $id, $language ) Get topic articles
searchTopicsAction ( Request $request ) Search for topics by title

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

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

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

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

Create new Topic
public createTopicAction ( Request $request, $articleNumber = null, $languageCode = null ) : Form
$request Symfony\Component\HttpFoundation\Request
Результат Form

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

Delete topic
public deleteTopicAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

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

Get article's topics
public getArticlesTopicsAction ( $number, $language )

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

Get single topic
public getTopicByIdAction ( $id )

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

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

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

Returns array with articles under "items" key and requested topic "id" and "title"
public getTopicsArticlesAction ( Request $request, $id, $language )
$request Symfony\Component\HttpFoundation\Request

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

Get list of topics by given search query
public searchTopicsAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request