/**
  * Returns an array with the trans unit for the current page and the total of trans units
  *
  * @param Request $request
  * @return array
  */
 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
  */
 public function getPage(Request $request)
 {
     $all = $request->query->all();
     $parameters = array();
     array_walk($all, function ($value, $key) use(&$parameters) {
         if ($key != '_search') {
             $key = trim($key, '_');
         }
         $parameters[$key] = $value;
     });
     $transUnits = $this->storage->getTransUnitList($this->managedLoales, $request->query->get('rows', 20), $request->query->get('page', 1), $parameters);
     $count = $this->storage->countTransUnits($this->managedLoales, $request->query->all());
     return array($transUnits, $count);
 }