Documentation

AddParam
in package
implements iTransformation

Assuming value is an URL, adds a given query parameter value.

If a parameter already exists in the query string, the parameter is turned into an array.

Tags
author

zozlak

Table of Contents

Interfaces

iTransformation
An interface for dissemination services parameters transformation

Methods

getName()  : string
Returns transformation name
transform()  : string
Adds a given query parameter value to the URL. If the parameter already exists in the query, it's turned into an array.

Methods

getName()

Returns transformation name

public getName() : string
Return values
string

transform()

Adds a given query parameter value to the URL. If the parameter already exists in the query, it's turned into an array.

public transform(string $value[, string $paramName = '' ][, string $paramValue = '' ]) : string
Parameters
$value : string

URL to be transformed

$paramName : string = ''

query parameter name

$paramValue : string = ''

query parameter value

Return values
string

        
On this page

Search results