PHP Class Newscoop\GimmeBundle\Controller\ArticlesListController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Exibir arquivo Open project: sourcefabric/newscoop

Public Methods

Method Description
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.

Private Methods

Method Description
getNotConvertedLinks ( $request )
linkOrUnlinkResources ( $playlist, $request, $action = 'link' )

Method Details

createPlaylistAction() public method

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

deletePlaylistAction() public method

Delete playlist.
public deletePlaylistAction ( Request $request, $id ) : Form
$request Symfony\Component\HttpFoundation\Request
return Form

getArticlesListAction() public method

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

getArticlesListsAction() public method

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

getPlaylistsArticlesAction() public method

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

linkToPlaylistAction() public method

** 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() public method

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() public method

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

updatePlaylistAction() public method

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