/** * Passes allowed get params to the url as querystring * * @param string $url * @return string $url */ protected function processQueryString($url) { $queryDataKeys = array_intersect($this->config->getRedirectableGetParams(), array_keys($_GET)); $queryData = array_intersect_key($_GET, array_flip($queryDataKeys)); $connector = preg_match('/\\?/', $url) ? "&" : "?"; return count($queryData) ? $connector . http_build_query($queryData) : ""; }
/** * Returned the URL to the js-File * * @return string */ private function __getJsUrl() { return $this->__getHostUrl() . "/mobile_header/" . $this->config->getShopNumber() . ".js"; }
public function visitConfig(ShopgateConfig $c) { $properties = $this->iterateSimpleProperties($c->buildProperties()); $additionalSettings = $this->iterateSimpleProperties($c->returnAdditionalSettings()); $this->array = array_merge($properties, $additionalSettings); }
/** * returns the xsd file location * * @return string */ public function getXsdFileLocation() { return sprintf('%s/%s', ShopgateConfig::getCurrentXsdLocation(), $this->xsdFileLocation); }
public function buildScriptDefault($autoRedirect = true) { $this->redirectType = 'default'; $this->enableDefaultRedirect = $this->config->getEnableDefaultRedirect(); return $this->redirect($this->getShopUrl(), $autoRedirect); }