|
static | _ ($url, $xhtml=true, $tls=self::TLS_IGNORE, $absolute=false) |
|
static | link ($client, $url, $xhtml=true, $tls=self::TLS_IGNORE, $absolute=false) |
|
Route handling class
- Depuis
- 1.7.0
◆ _()
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 | $url | Absolute or Relative URI to Joomla resource. |
boolean | $xhtml | Replace & by & for XML compliance. |
integer | $tls | Secure 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 | $absolute | Return 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 | $client | The client name for which to build the link. |
string | $url | Absolute or Relative URI to Joomla resource. |
boolean | $xhtml | Replace & by & for XML compliance. |
integer | $tls | Secure 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 | $absolute | Return 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.
◆ $_router
◆ TLS_DISABLE
Make URI unsecure using plain http (http).
- Depuis
- 3.9.7
◆ TLS_FORCE
Make URI secure using http over TLS (https).
- Depuis
- 3.9.7
◆ TLS_IGNORE
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 :