src/UrlHandlers/UrlHandler.php
protected function getMatchingUrlFragment(Request $request, $currentUrlFragment = "")
    {
        if ($currentUrlFragment[strlen($currentUrlFragment) - 1] != "/") {
            $currentUrlFragment .= "/";
        }

        if (stripos($currentUrlFragment, $this->url) === 0) {
            return $this->url;
        }

        return false;
    }
protected function getMatchingUrlFragment(Request $request, $currentUrlFragment = "")
    {
        if ($currentUrlFragment[strlen($currentUrlFragment) - 1] != "/") {
            $currentUrlFragment .= "/";
        }

        if (stripos($currentUrlFragment, $this->url) === 0) {
            return $this->url;
        }

        return false;
    }
protected function getMatchingUrlFragment ( Request $ request , $ currentUrlFragment = "" ) { if ( $ currentUrlFragment [ strlen ( $ currentUrlFragment ) - 1 ] != "/" ) { $ currentUrlFragment .= "/" ; } if ( stripos ( $ currentUrlFragment , $ this -> url ) === 0 ) { return $ this -> url ; } return false ; }
Returns the portion of the URL that this handler would be able to return a response for.

@param \Rhubarb\Crown\Request\Request $request
@param string $currentUrlFragment
@return bool
Returns the portion of the URL that this handler would be able to return a response for .