Gets the query text for city lookups in the postcode database.

@return string
967489
public function getQueryText()
    {
        if (is_null($this->_queryText)) {
            if ($this->_getRequest()->getParam('billing')) {
                $tmp = $this->_getRequest()->getParam('billing');
                $this->_queryText = $tmp['city'];
            } elseif ($this->_getRequest()->getParam('shipping')) {
                $tmp = $this->_getRequest()->getParam('shipping');
                $this->_queryText = $tmp['city'];
            } else {
                $this->_queryText = $this->_getRequest()->getParam('city');
            }
            $this->_queryText = trim($this->_queryText);
            if (Mage::helper('core/string')->strlen($this->_queryText) > self::MAX_QUERY_LEN) {
                $this->_queryText = Mage::helper('core/string')->substr($this->_queryText, 0, self::MAX_QUERY_LEN);
            }
        }
        return $this->_queryText;
    }
162526
private function getStreetInterest(){
		$street = array();
		$requete ="
				SELECT r.idRue , r.nom , i.idRue
				FROM rue r
				LEFT JOIN _interetRue i on i.idRue = r.idSousQuartier
				WHERE i.idUtilisateur  = ".$this->userId."
						";
		$res = $this->connexionBdd->requete($requete);
		while ($fetch = mysql_fetch_assoc($res)) {
			$street[]=$fetch['nom'];
		}
		return $street;
	}
1230164
public function getCity() : ?string 
    {
        if ( ! $this->hasCity()) {
            $this->setCity($this->getDefaultCity());
        }
        return $this->city;
    }
353628
public function toHttpQuery()
    {
        return '?' . http_build_query(
            array_filter(
                [
                    'actorInstitution' => $this->actorInstitution,
                    'actorId'          => $this->actorId,
                    'name'             => $this->name,
                    'type'             => $this->type,
                    'secondFactorId'   => $this->secondFactorId,
                    'email'            => $this->email,
                    'institution'      => $this->institution,
                    'status'           => $this->status,
                    'orderBy'          => $this->orderBy,
                    'orderDirection'   => $this->orderDirection
                ],
                function ($value) {
                    return !is_null($value);
                }
            )
        );
    }
1007851
public function getQueryStr() {
		$queryData = (string)$this->_controller->request->query('query');
		$query = $this->_modelSearch->getQueryStr($queryData);

		return $query;
	}
44043
public function getSPARQL() {
		// add subqueries to the beginning because they are logically evaluated first
		$sparql = $this->formatSubqueries();

		foreach ( $this->conditions as $subject => $predicates ) {
			$sparql .= ' ' . $subject;
			$sparql .= $this->formatPredicates( $predicates ) . ' .';
		}

		$sparql .= $this->formatOptionals();
		$sparql .= $this->formatFilters();
		$sparql .= $this->formatUnions();

		return $sparql;
	}
1245000
private function searchQuery(): string
    {
        $url = \parse_url($this->app->utilities->page->URL('full'));
        \parse_str(($url['query'] ?? ''), $query_params);

        return $query_params['s'] ?? '';
    }
1149215
public function getSearchQuery()
    {
        $searchQuery = '';
        if (!empty(get_search_query())) {
            $searchQuery = get_search_query();
        } elseif (!empty($_GET['s'])) {
            $searchQuery = esc_attr($_GET['s']);
        }

        return $searchQuery;
    }
294991
public function getQueryString()
    {
        $qs = Request::normalizeQueryString($this->requestStack->getCurrentRequest()->server->get('QUERY_STRING'));

        return '' === $qs ? null : $qs;
    }
382906
protected function fetchZipCodeAddress()
    {
        $address = $this->parsedXML['consultaCEPResponse']['return'];
        $zipcode = preg_replace('/^([0-9]{5})([0-9]{3})$/', '${1}-${2}', $address['cep']);
        $complement = $this->getComplement($address);

        return [
            'zipcode' => $zipcode,
            'street' => $address['end'],
            'complement' => $complement,
            'district' => $address['bairro'],
            'city' => $address['cidade'],
            'uf' => $address['uf'],
        ];
    }
1324115
public function getQuery()
    {
        $queryParts = array_map(function ($value) {
            return ($value instanceof Operator) ? $value->expression() : $value;
        }, $this->queryParts);

        return implode('', $queryParts);
    }
1097567
public function getQuery() {
        $query = 'SELECT '.implode(', ', $this->fields)
                .' FROM '.implode(', ', $this->from);
        if (count($this->conditions) > 0) {
            $query = $query.' WHERE '.implode(' AND ', $this->conditions);
        }
        $query = rtrim($query).';';

        return $query;
    }
484840
public function toString() {

		$countryName	= !empty( $this->countryName ) ? $this->countryName : ( isset( $this->country ) ? $this->country->name : null );
		$provinceName	= !empty( $this->provinceName ) ? $this->provinceName : ( isset( $this->province ) ? $this->province->name : null );
		$cityName		= !empty( $this->cityName ) ? $this->cityName : ( isset( $this->city ) ? $this->city->name : null );

		$location = $this->title;

		if( isset( $cityName ) && strlen( $cityName ) > 0 ) {

			$location .= ", $cityName";
		}

		if( isset( $provinceName ) && strlen( $provinceName ) > 0 ) {

			$location .= ", $provinceName";
		}

		if( isset( $provinceName ) && isset( $countryName ) && strlen( $countryName ) > 0 ) {

			$location .= ", $countryName";
		}

		return $location;
	}
1347848
private function getCityInterest(){
		$citiesList = array();
		$requete = "
				SELECT v.idVille , v.nom , i.idVille
				FROM ville v
				LEFT JOIN _interetVille i on i.idVille = v.idVille
				WHERE i.idUtilisateur  = ".$this->userId."
						";

		$res = $this->connexionBdd->requete($requete);
		while ($fetch = mysql_fetch_assoc($res)) {
			$citiesList []=$fetch['nom'];
		}
		return $citiesList;
	}
231186
public static function city()
    {
        $format = static::$cityFormats[array_rand(static::$cityFormats)];

        $parts = array();
        foreach ($format['parts'] as $function) {
            $parts[] = call_user_func($function);
        }

        return vsprintf($format['format'], $parts);
    }
994521
public function getRawSql()
    {
        $search = array();
        $replace = array();
        $params = $this->getParams();
        ksort($params, SORT_STRING);
        foreach ($params as $key => $value) {
            if (is_int($key)) {
                $key = '?';
            }
            $search[] = $key;
            if (is_string($value)) {
                $value = "'$value'";
            }
            $replace[] = $value;
        }
        return str_replace($search, $replace, $this->getSql());
    }
461840
public function getQueryString()
    {
        $query = '';

        foreach ($this->query as $name => $value) {
            if ($query) {
                $query .= '&';
            }

            $query .= $name;
            if ($value) {
                $query .= '=' . $value;
            }
        }

        if ('' === $query) {
            return null;
        }

        return $query;
    }