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

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

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

Метод Описание
createPlaylistAction ( Request $request ) Create new playlist.
deletePlaylistAction ( Request $request, $id ) : Form Delete playlist.
getArticlesListAction ( Request $request, $id ) Get Articles List.
getArticlesListsAction ( Request $request ) Get Articles Lists.
getPlaylistsArticlesAction ( Request $request, $id ) Get list of articles from "playlist".
linkToPlaylistAction ( Request $request, $id ) Link article to playlist.
saveBatchActionsAction ( Request $request, $id ) Save many changes for playlist items.
unlinkFromPlaylistAction ( Request $request, $id ) Unlink article to playlist.
updatePlaylistAction ( Request $request, $id ) Update playlist.

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

Метод Описание
getNotConvertedLinks ( $request )
linkOrUnlinkResources ( $playlist, $request, $action = 'link' )

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

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

Create new playlist.
public createPlaylistAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

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

Delete playlist.
public deletePlaylistAction ( Request $request, $id ) : Form
$request Symfony\Component\HttpFoundation\Request
Результат Form

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

Get Articles List.
public getArticlesListAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

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

Get Articles Lists.
public getArticlesListsAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

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

Returns array with articles under "items" key and requested list "id" and "name"
public getPlaylistsArticlesAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

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

** articles headers**: header name: "link" header value: "" or with specific language header value: "" you can also specify position on list header value: ",<1; rel="article-position">"
public linkToPlaylistAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

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

example post data: 'actions' => array [ 0 => array [ "link" => ",<3; rel="article-position">" ] 1 => array [ "unlink" => "" ] 2 => array [ "link" => ",<1; rel="article-position">" ] ]
public saveBatchActionsAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

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

** articles headers**: header name: "link" header value: "" or with specific language header value: ""
public unlinkFromPlaylistAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

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

Update playlist.
public updatePlaylistAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request