/**
  * Prepare form items for each scheme definition
  * Optional: get featureType by name from global context.
  *
  * @inheritdoc
  */
 public function getConfiguration()
 {
     $configuration = parent::getConfiguration();
     $configuration['debug'] = isset($configuration['debug']) ? $configuration['debug'] : false;
     $configuration['fileUri'] = $this->container->getParameter("mapbender.uploads_dir") . "/data-store";
     if (isset($configuration["schemes"]) && is_array($configuration["schemes"])) {
         foreach ($configuration["schemes"] as $key => &$scheme) {
             if (is_string($scheme['dataStore'])) {
                 $storeId = $scheme['dataStore'];
                 $dataStore = $this->container->getParameter('dataStores');
                 $scheme['dataStore'] = $dataStore[$storeId];
                 $scheme['dataStore']["id"] = $storeId;
                 //$dataStore = new DataStore($this->container, $configuration['source']);
             }
             if (isset($scheme['formItems'])) {
                 $scheme['formItems'] = $this->prepareItems($scheme['formItems']);
             }
         }
     }
     return $configuration;
 }
 /**
  * @return QueryBuilderConfig
  */
 public function getConfig()
 {
     return new QueryBuilderConfig(parent::getConfiguration());
 }
Beispiel #3
0
 /**
  * @inheritdoc
  */
 public function httpAction($action)
 {
     /** @var $requestService Request */
     $request = $this->getRequestData();
     if (isset($request['schema'])) {
         $this->setSchema($request);
     }
     return parent::httpAction($action);
 }