PHP Class Newscoop\NewscoopBundle\Controller\CommentsController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
indexAction ( Request $request )
listAction ( Request $request )
replyAction ( Request $request, $id )
setRecommendedAction ( Request $request, $comments, $recommended )
setStatusAction ( Request $request )
updateAction ( Request $request, $id )

Private Methods

Method Description
buildFilterQuery ( array $filters, Doctrine\ORM\Query\Expr $query, Symfony\Component\HttpFoundation\ParameterBag $sessionParameter, Doctrine\ORM\QueryBuilder $queryBuilder ) : Doctrine\ORM\Query\Expr Creates query for given form filters
buildSessionFilters ( array $sessionData, Doctrine\ORM\Query\Expr $query, Doctrine\ORM\QueryBuilder $queryBuilder ) : Doctrine\ORM\Query\Expr Creates query for given filters in stored in session
createCommentsArray ( Knp\Bundle\PaginatorBundle $pagination, Newscoop\Services\ImageService $imageService ) : array Creates comments array for paginator

Method Details

indexAction() public method

public indexAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

listAction() public method

public listAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

replyAction() public method

public replyAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request

setRecommendedAction() public method

public setRecommendedAction ( Request $request, $comments, $recommended )
$request Symfony\Component\HttpFoundation\Request

setStatusAction() public method

public setStatusAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

updateAction() public method

public updateAction ( Request $request, $id )
$request Symfony\Component\HttpFoundation\Request