public function listElement(Request $request)
    {
        $baseIds = array_keys($this->getAclForUser()->get_granted_base([\ACL::CANADDRECORD]));

        $lazaretFiles = null;
        $perPage = 10;
        $page = max(1, $request->query->get('page', 1));
        $offset = ($page - 1) * $perPage;

        if (count($baseIds) > 0) {
            $lazaretFiles = $this->getLazaretFileRepository()->findPerPage($baseIds, $offset, $perPage);
        }

        return $this->render('prod/upload/lazaret.html.twig', [
            'lazaretFiles' => $lazaretFiles,
            'currentPage'  => $page,
            'perPage'      => $perPage,
        ]);
    }
public function listElement(Request $request)
    {
        $baseIds = array_keys($this->getAclForUser()->get_granted_base([\ACL::CANADDRECORD]));

        $lazaretFiles = null;
        $perPage = 10;
        $page = max(1, $request->query->get('page', 1));
        $offset = ($page - 1) * $perPage;

        if (count($baseIds) > 0) {
            $lazaretFiles = $this->getLazaretFileRepository()->findPerPage($baseIds, $offset, $perPage);
        }

        return $this->render('prod/upload/lazaret.html.twig', [
            'lazaretFiles' => $lazaretFiles,
            'currentPage'  => $page,
            'perPage'      => $perPage,
        ]);
    }
public function listElement ( Request $ request ) { $ baseIds = array_keys ( $ this -> getAclForUser ( ) -> get_granted_base ( [ \ ACL :: CANADDRECORD ] ) ) ; $ lazaretFiles = null ; $ perPage = 10 ; $ page = max ( 1 , $ request -> query -> get ( 'page' , 1 ) ) ; $ offset = ( $ page - 1 ) * $ perPage ; if ( count ( $ baseIds ) > 0 ) { $ lazaretFiles = $ this -> getLazaretFileRepository ( ) -> findPerPage ( $ baseIds , $ offset , $ perPage ) ; } return $ this -> render ( 'prod/upload/lazaret.html.twig' , [ 'lazaretFiles' => $ lazaretFiles , 'currentPage' => $ page , 'perPage' => $ perPage , ] ) ; }
List all elements in lazaret

@param Request     $request The current request

@return Response
List all elements in lazaret