Documentation

UriPart
in package
implements iTransformation

Assuming value is an URL extracts given parts of the URL.

Tags
author

zozlak

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
string

transform()

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 #)

Return values
string

        
On this page

Search results