Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence de la classe Route

Fonctions membres publiques statiques

static _ ($url, $xhtml=true, $tls=self::TLS_IGNORE, $absolute=false)
 
static link ($client, $url, $xhtml=true, $tls=self::TLS_IGNORE, $absolute=false)
 

Champs de données

const TLS_IGNORE = 0
 
const TLS_FORCE = 1
 
const TLS_DISABLE = 2
 

Attributs privés statiques

static $_router = array()
 

Description détaillée

Route handling class

Depuis
1.7.0

Documentation des fonctions membres

◆ _()

static _ (   $url,
  $xhtml = true,
  $tls = self::TLS_IGNORE,
  $absolute = false 
)
static

Translates an internal Joomla URL to a humanly readable URL. This method builds links for the current active client.

Paramètres
string$urlAbsolute or Relative URI to Joomla resource.
boolean$xhtmlReplace & by & for XML compliance.
integer$tlsSecure state for the resolved URI. Use Route::TLS_* constants 0: (default) No change, use the protocol currently used in the request 1: Make URI secure using global secure site URI. 2: Make URI unsecure using the global unsecure site URI.
boolean$absoluteReturn an absolute URL
Renvoie
string The translated humanly readable URL.
Depuis
1.7.0

Références $app, $client, $url, Log\add(), Factory\getApplication(), null, et Log\WARNING.

◆ link()

static link (   $client,
  $url,
  $xhtml = true,
  $tls = self::TLS_IGNORE,
  $absolute = false 
)
static

Translates an internal Joomla URL to a humanly readable URL. NOTE: To build link for active client instead of a specific client, you can use JRoute::_()

Paramètres
string$clientThe client name for which to build the link.
string$urlAbsolute or Relative URI to Joomla resource.
boolean$xhtmlReplace & by & for XML compliance.
integer$tlsSecure state for the resolved URI. Use Route::TLS_* constants 0: (default) No change, use the protocol currently used in the request 1: Make URI secure using global secure site URI. 2: Make URI unsecure using the global unsecure site URI.
boolean$absoluteReturn an absolute URL
Renvoie
string The translated humanly readable URL.
Exceptions

Références $app, $client, $uri, $url, elseif, ENT_COMPAT, Factory\getApplication(), Uri\getInstance(), et htmlspecialchars.

Documentation des champs

◆ $_router

$_router = array()
staticprivate

◆ TLS_DISABLE

const TLS_DISABLE = 2

Make URI unsecure using plain http (http).

Depuis
3.9.7

◆ TLS_FORCE

const TLS_FORCE = 1

Make URI secure using http over TLS (https).

Depuis
3.9.7

◆ TLS_IGNORE

const TLS_IGNORE = 0

No change, use the protocol currently used.

Depuis
3.9.7

La documentation de cette classe a été générée à partir du fichier suivant :