PHP Class Knp\Bundle\KnpBundlesBundle\Controller\BaseController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: KnpLabs/KnpBundles

Protected Methods

Method Description
getPaginator ( Doctrine\ORM\Query $query, integer $page, integer $limit = 10 ) : Pagerfanta\Pagerfanta Returns the paginator instance configured for the given query and page number
getRepository ( $class )
highlightMenu ( $menu )

Method Details

getPaginator() protected method

Returns the paginator instance configured for the given query and page number
protected getPaginator ( Doctrine\ORM\Query $query, integer $page, integer $limit = 10 ) : Pagerfanta\Pagerfanta
$query Doctrine\ORM\Query The query
$page integer The current page number
$limit integer Results per page
return Pagerfanta\Pagerfanta

getRepository() protected method

protected getRepository ( $class )

highlightMenu() protected method

protected highlightMenu ( $menu )