library/QATools/QATools/PageObject/PageUrlMatcher/ComponentPageUrlMatcher.php
protected function matchComponent(MatchUrlComponentAnnotation $annotation, $url)
	{
		$parser = new Parser($url);

		return $this->matchByProperty($annotation, $parser, 'path')
			&& $this->matchParams($annotation, $parser)
			&& $this->matchSecure($annotation, $parser)
			&& $this->matchByProperty($annotation, $parser, 'anchor', 'fragment')
			&& $this->matchByProperty($annotation, $parser, 'host')
			&& $this->matchByProperty($annotation, $parser, 'port')
			&& $this->matchByProperty($annotation, $parser, 'user')
			&& $this->matchByProperty($annotation, $parser, 'pass');
	}
protected function matchComponent(MatchUrlComponentAnnotation $annotation, $url)
	{
		$parser = new Parser($url);

		return $this->matchByProperty($annotation, $parser, 'path')
			&& $this->matchParams($annotation, $parser)
			&& $this->matchSecure($annotation, $parser)
			&& $this->matchByProperty($annotation, $parser, 'anchor', 'fragment')
			&& $this->matchByProperty($annotation, $parser, 'host')
			&& $this->matchByProperty($annotation, $parser, 'port')
			&& $this->matchByProperty($annotation, $parser, 'user')
			&& $this->matchByProperty($annotation, $parser, 'pass');
	}
protected function matchComponent ( MatchUrlComponentAnnotation $ annotation , $ url ) { $ parser = new Parser ( $ url ) ; return $ this -> matchByProperty ( $ annotation , $ parser , 'path' ) && $ this -> matchParams ( $ annotation , $ parser ) && $ this -> matchSecure ( $ annotation , $ parser ) && $ this -> matchByProperty ( $ annotation , $ parser , 'anchor' , 'fragment' ) && $ this -> matchByProperty ( $ annotation , $ parser , 'host' ) && $ this -> matchByProperty ( $ annotation , $ parser , 'port' ) && $ this -> matchByProperty ( $ annotation , $ parser , 'user' ) && $ this -> matchByProperty ( $ annotation , $ parser , 'pass' ) ; }
Matches components to url.

@param MatchUrlComponentAnnotation $annotation The used annotation.
@param string                      $url        The current url.

@return boolean
Matches components to url .