Backend\Modules\Locale\Engine\Model::buildURLQueryByFilter PHP Method

buildURLQueryByFilter() public static method

Build a query for the URL based on the filter
public static buildURLQueryByFilter ( array $filter ) : string
$filter array The filter.
return string
    public static function buildURLQueryByFilter($filter)
    {
        $query = http_build_query($filter, null, '&', PHP_QUERY_RFC3986);
        if ($query != '') {
            $query = '&' . $query;
        }
        return $query;
    }

Usage Example

Example #1
0
 /**
  * Sets the filter based on the $_GET array.
  */
 private function setFilter()
 {
     $this->filter['language'] = $this->getParameter('language', 'array') != '' ? $this->getParameter('language', 'array') : BL::getWorkingLanguage();
     $this->filter['application'] = $this->getParameter('application');
     $this->filter['module'] = $this->getParameter('module');
     $this->filter['type'] = $this->getParameter('type', 'array');
     $this->filter['name'] = $this->getParameter('name');
     $this->filter['value'] = $this->getParameter('value');
     $this->filterQuery = BackendLocaleModel::buildURLQueryByFilter($this->filter);
 }
All Usage Examples Of Backend\Modules\Locale\Engine\Model::buildURLQueryByFilter