/** * Parses the request URL and returns an array of input parameters. * This method overrides the parent implementation. * The input parameters do not include GET and POST variables. * This method uses the request URL path to find the first matching pattern. If found * the matched pattern parameters are used to return as the input parameters. * @return array list of input parameters */ public function parseUrl() { $request = $this->getRequest(); foreach ($this->_patterns as $pattern) { $matches = $pattern->getPatternMatches($request); if (count($matches) > 0) { $this->_matched = $pattern; $params = array(); foreach ($matches as $key => $value) { if (is_string($key)) { $params[$key] = $value; } } if (!$pattern->getIsWildCardPattern()) { $params[$pattern->getServiceID()] = $pattern->getServiceParameter(); } return $params; } } return parent::parseUrl(); }