Translates URLs which use different paths.

Will translate between urls such as: http://www.example.com <----> http://www.example.com/mobile

package dstruct_mobile

 Methods

Class constructor.

__construct(string $main, string $alt) 

Parameters

$main

string

URL of main site

$alt

string

URL of alternative 'mobile' site

(non-PHPdoc)

onAlternativePage() : boolean

(non-PHPdoc)

rewrite() : string

(non-PHPdoc)

setURL(string $url) 
see \URLTranslatorInterface::setURL()

Parameters

$url

string

URL of the page of interest.

 Properties

 

$alt : string
 

$main : string
 

$url : string
 

$urlparts : array