PHP Class Sulu\Component\Util\WildcardUrlUtil

Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

match() public static méthode

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

resolve() public static méthode

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