Finds a named URL parameter (denoted by "$"-prefix in $url_handlers)
from the full URL, or a parameter specified in the route table

@param string $name
@return string Value of the URL parameter (if found)
323753
public function param($name)
    {
        $params = $this->params();
        if (isset($params[$name])) {
            return $params[$name];
        } else {
            return null;
        }
    }
1332218
protected function getParamFromRequest($name)
    {
        if (null !== $value = $this->requestStack->getCurrentRequest()->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getParentRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getMasterRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        return null;
    }
1215344
protected function getRouter($name)
    {
        if ($this->basic->exists($name)) {
            return $this->basic;
        }

        if ($this->dynamic->exists($name)) {
            return $this->dynamic;
        }
    }
853509
public function getUrl($name, $params = array())
	{
		if('http' === substr($name, 0, 4))
		{
			$domain = $name;
		}
		else
		{
			$domain = static::API_DOMAIN . $name;
		}
		return $domain . (empty($params) ? '' : ('?' . $this->http_build_query($params)));
	}
1237739
public static function extractOriginalQueryParam($name)
    {
        $index = strpos($_SERVER['QUERY_STRING'], $name.'=');
        $substring = substr($_SERVER['QUERY_STRING'], $index + strlen($name) + 1);
        $end = strpos($substring, '&');
        return $end ? substr($substring, 0, strpos($substring, '&')) : $substring;
    }
55013
private function Value($name)
    {
        $value = Request::PostData($this->prefix . $name);
        return Str::Trim($value);
    }
939432
public function getRouteByName($name)
    {
        if (!isset($this->routes[$name])) {
            return null;
        }
        return $this->routes[$name];
    }
1320117
public function getParameters(string $name = null)
    {
        if (is_null($name)) {
            return $this->getRoute('parameters');
        }

        return $this->getRoute('parameters', $name);
    }
920446
protected function getUrlFromRoute($name, Route $route)
    {
        $option = $route->getOption('sitemap');
        
        if ($option === null) {
            return null;
        }
        if (is_string($option)) {
            $decoded = json_decode($option, true);
            if (!json_last_error() && is_array($decoded)) {
                $option = $decoded;
            }
        }
        if (!is_array($option) && !is_bool($option)) {
            $bool = filter_var($option, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
            if (null === $bool) {
                throw new \InvalidArgumentException("The sitemap option for route $name must be boolean or array");
            }
            $option = $bool;
        }
        if (!$option) {
            return null;
        }
        $url = $this->router->generate($name);
        
        $urlObject = new Url(
                $url,
                (isset($option['lastMod']) ? $option['lastMod'] : null),
                (isset($option['priority']) ? $option['priority'] : null),
                (isset($option['changeFreq']) ? $option['changeFreq'] : null)
        );
        
        return $urlObject;
    }
664573
public function getParam($name){
        if(isset($this->getParams[$name])){
            return $this->getParams[$name];
        }else{
            return NULL;
        }
    }
569044
public function get($name) {
		return isset($_SESSION[$this->prefix . $name]) ? $_SESSION[$this->prefix . $name] : false;

	}
583730
protected function getURLArg ($name)
	{
		return isset ($this->request['get'][$name])? $this->request['get'][$name] : FALSE;
	}
182042
public function getParam($name) {
		if(isset($this->payload['params'][$name])) {
			return $this->payload['params'][$name];
		}
		return NULL;
	}
884228
public function get_param($name) {
        if (array_key_exists($name, $this->params)) {
            return $this->params[$name];
        } else {
            return null;
        }
    }
143121
public function routeByName($name)
	{
		if (isset($this->_routes[$name]))
				return $this->_routes[$name];

		if (isset($this->_customRoutes[$name]))
				return $this->_customRoutes[$name];

		throw new LookupException("No route named '$name'");
	}
367453
public static function url($name, array $params = null, $protocol = null)
    {
        $route = Route::get($name);
        return $route->isExternal()
            ? $route->uri($params)
            : Url::site($route->uri($params), $protocol);
    }
160354
public function find( $name ) {

		if ( ! is_array( $this->initialized ) ) {
			$this->initialized = [];

			/**
			 * Fires right before the first handler is to be registered.
			 *
			 * @param HandlersRegistry $handlers_registry
			 */
			do_action( self::ACTION_REGISTER, $this );
		}

		$name = $name instanceof HandlerInterface ? spl_object_hash( $name ) : (string) $name;

		if ( ! $this->has_handler( $name ) ) {
			return NULL;
		}

		$handler = $this->handlers[ $name ];

		if ( ! in_array( $name, $this->initialized, TRUE ) ) {
			$this->initialized[] = $name;

			/**
			 * Fires right after a handler has been registered.
			 *
			 * @param HandlerInterface   $handler
			 * @param string             $name
			 * @param ProcessorsRegistry $processors_registry
			 */
			do_action( self::ACTION_SETUP, $handler, $name, $this->processors_registry );
		}

		return $handler;
	}