library/QATools/QATools/PageObject/PageUrlMatcher/PageUrlMatcherRegistry.php
public function match($url, Page $page)
	{
		foreach ( $this->matchers as $page_url_matcher ) {
			$annotation_name = '@' . $page_url_matcher->getAnnotationName();
			$annotations = $this->annotationManager->getClassAnnotations($page, $annotation_name);

			if ( !$annotations ) {
				continue;
			}

			$this->ensureAnnotationsAreValid($annotations, $annotation_name);

			if ( $page_url_matcher->matches($url, $annotations) ) {
				return true;
			}
		}

		return false;
	}
public function match($url, Page $page)
	{
		foreach ( $this->matchers as $page_url_matcher ) {
			$annotation_name = '@' . $page_url_matcher->getAnnotationName();
			$annotations = $this->annotationManager->getClassAnnotations($page, $annotation_name);

			if ( !$annotations ) {
				continue;
			}

			$this->ensureAnnotationsAreValid($annotations, $annotation_name);

			if ( $page_url_matcher->matches($url, $annotations) ) {
				return true;
			}
		}

		return false;
	}
public function match ( $ url , Page $ page ) { foreach ( $ this -> matchers as $ page_url_matcher ) { $ annotation_name = '@' . $ page_url_matcher -> getAnnotationName ( ) ; $ annotations = $ this -> annotationManager -> getClassAnnotations ( $ page , $ annotation_name ) ; if ( ! $ annotations ) { continue ; } $ this -> ensureAnnotationsAreValid ( $ annotations , $ annotation_name ) ; if ( $ page_url_matcher -> matches ( $ url , $ annotations ) ) { return true ; } } return false ; }
Matches the url against the given page.

@param string $url  The URL.
@param Page   $page Page to match.

@return boolean
Matches the url against the given page .