CakeRequest::_processGet PHP Méthode

_processGet() protected méthode

Process the GET parameters and move things into the object.
protected _processGet ( ) : void
Résultat void
    protected function _processGet()
    {
        if (ini_get('magic_quotes_gpc') === '1') {
            $query = stripslashes_deep($_GET);
        } else {
            $query = $_GET;
        }
        $unsetUrl = '/' . str_replace(array('.', ' '), '_', urldecode($this->url));
        unset($query[$unsetUrl]);
        unset($query[$this->base . $unsetUrl]);
        if (strpos($this->url, '?') !== false) {
            list(, $querystr) = explode('?', $this->url);
            parse_str($querystr, $queryArgs);
            $query += $queryArgs;
        }
        if (isset($this->params['url'])) {
            $query = array_merge($this->params['url'], $query);
        }
        $this->query = $query;
    }