Пример #1
0
 /**
  * Method that should parse the request and return a DTQueryConfiguration
  *
  * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns
  * @return QueryConfiguration the configuration the provider can use to prepare the data
  */
 public function parseRequest(array $columnConfiguration)
 {
     $request = $this->requestStack->getCurrentRequest();
     if (is_null($request)) {
         throw new \InvalidArgumentException("Can not parse a request that is null");
     }
     return $this->queryParser->parse($request, $columnConfiguration);
 }
 /**
  * Datatable19QueryParser constructor.
  * @param Request $request
  */
 public function __construct(Request $request)
 {
     parent::__construct($request);
 }
Пример #3
0
 /**
  * Method that should parse the request and return a DTQueryConfiguration
  *
  * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns
  * @return QueryConfiguration the configuration the provider can use to prepare the data
  */
 public function parseRequest(array $columnConfiguration)
 {
     return $this->queryParser->parse($this->getRequest(), $columnConfiguration);
 }