Util/DataGrid/DataGridRequestHandler.php
public function getPage(Request $request)
    {
        $parameters = $this->fixParameters($request->query->all());

        $transUnits = $this->storage->getTransUnitList(
            $this->localeManager->getLocales(),
            $request->query->get('rows', 20),
            $request->query->get('page', 1),
            $parameters
        );

        $count = $this->storage->countTransUnits($this->localeManager->getLocales(), $parameters);

        return array($transUnits, $count);
    }
public function getPage(Request $request)
    {
        $parameters = $this->fixParameters($request->query->all());

        $transUnits = $this->storage->getTransUnitList(
            $this->localeManager->getLocales(),
            $request->query->get('rows', 20),
            $request->query->get('page', 1),
            $parameters
        );

        $count = $this->storage->countTransUnits($this->localeManager->getLocales(), $parameters);

        return array($transUnits, $count);
    }
public function getPage ( Request $ request ) { $ parameters = $ this -> fixParameters ( $ request -> query -> all ( ) ) ; $ transUnits = $ this -> storage -> getTransUnitList ( $ this -> localeManager -> getLocales ( ) , $ request -> query -> get ( 'rows' , 20 ) , $ request -> query -> get ( 'page' , 1 ) , $ parameters ) ; $ count = $ this -> storage -> countTransUnits ( $ this -> localeManager -> getLocales ( ) , $ parameters ) ; return array ( $ transUnits , $ count ) ; }
Returns an array with the trans unit for the current page and the total of trans units

@param Request $request
@return array
Returns an array with the trans unit for the current page and the total of trans units