PHP Class Sulu\Component\Util\WildcardUrlUtil

Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
match ( string $url, string $portalUrl ) : boolean Matches given url with portal-url.
resolve ( string $url, string $portalUrl ) : string Replaces wildcards with occurrences in the given url.

Private Methods

Method Description
__construct ( ) Cannot instantiate this class.
getRegularExpression ( string $portalUrl ) : string Returns regular expression to match given portal-url.

Method Details

match() public static method

Matches given url with portal-url.
public static match ( string $url, string $portalUrl ) : boolean
$url string
$portalUrl string
return boolean

resolve() public static method

Replaces wildcards with occurrences in the given url.
public static resolve ( string $url, string $portalUrl ) : string
$url string
$portalUrl string
return string