Factory to create translator classes.

package dstruct_mobile

 Methods

Create a translator class.

createTranslator(string $class, string $main, string $alt) : \URLTranslatorSubDomain | \URLTranslatorPath | \URLTranslatorExtension
Static

Currently available classes: main, path or subdomain. WARNING: Only path is currently implimented.

Parameters

$class

string

Class to create

$main

string

URL of main site

$alt

string

URL of alternative 'mobile' site

Exceptions

\DStructGeneralException

Returns