Manager/Manager.php
public function getSubjectsPager(Category $category, $page = 1, $max = 20)
    {
        $subjects = $this->forumRepo->findSubjects($category);

        return $this->pagerFactory->createPagerFromArray($subjects, $page, $max);
    }
public function getSubjectsPager(Category $category, $page = 1, $max = 20)
    {
        $subjects = $this->forumRepo->findSubjects($category);

        return $this->pagerFactory->createPagerFromArray($subjects, $page, $max);
    }
public function getSubjectsPager ( Category $ category , $ page = 1 , $ max = 20 ) { $ subjects = $ this -> forumRepo -> findSubjects ( $ category ) ; return $ this -> pagerFactory -> createPagerFromArray ( $ subjects , $ page , $ max ) ; }
Get the pager for the subject list of a category.

@param \Claroline\ForumBundle\Entity\Category $category
@param integer $page
@param integer $max

@return \Pagerfanta\Pagerfanta
Get the pager for the subject list of a category .