UriPart
in package
implements
iTransformation
Assuming value is an URL extracts given parts of the URL.
Tags
Table of Contents
Interfaces
- iTransformation
- An interface for dissemination services parameters transformation
Methods
- getName() : string
- Returns transformation name
- transform() : string
- Extracts given URL parts.
Methods
getName()
Returns transformation name
public
getName() : string
Return values
stringtransform()
Extracts given URL parts.
public
transform(string $value, string ...$parts) : string
Parameters
- $value : string
-
URL to be transformed
- $parts : string
-
parts to be extracted. One of: scheme (e.g. "https", "ftp", etc.), host, port, user, pass, path, query, fragment (part of the URL following #)